class Post(models.Model): title = ... category = models.ForeignKey(Category) date = ....... class Category(models.Model):
How is this possible to make overloaded views in Django ? The problem is I have a view which may accept exactly one argument or none.
I have a model called book and in that model there is a foreignkey field (called author) to the user model.
I\'m using Pinax to create a new project.For this project I needed to create a new app \'Business\' which is much like Profiles but they wanted to keep everything seperate for Businesses.
I have a video object, which an administrator can feature. I want to be able to sort those featured videos by the date they were made featured.
I am new to Django and I would like to know how can I get the next and previous week links in my template using the week archive generic view. For the archive_month generic view there is a next_month
I have two models, City and State with State being a ForeignKey relation of City.My CityDetailView url is constructed as:
Assuming that I have function get_a_color in a Django views.py: from django.utils import simplejson def get_a_color(request):
I\'m writing a simple file uploader for a website. The user sees a form: <form enctype=\"multipart/form-data\" action=\"/uploader/\" name=\"upload\" method=\"post\">
I am trying to use flowplayer\'s overlayto load an external page that has a django form built in. However the overlay loads the page but the submit button simply refreshes the page.