South migration error: NoMigrations exception for django.contrib.auth
I have been using South on my project for a while, but I recently did a huge amount of development and changed development machine and I think something messed up in the process. The project works...
View ArticleCan you give a Django app a verbose name for use throughout the admin?
In the same way that you can give fields and models verbose names that appear in the Django admin, can you give an app a custom name? Solution: You can give your application a custom name by defining...
View ArticleExtending the User model with custom fields in Django
What’s the best way to extend the User model (bundled with Django’s authentication app) with custom fields? I would also possibly like to use the email as the username (for authentication purposes)....
View Articleappending multiple querystring variables with curl
I keep getting a 401 response when I try to use authentication = ApiKeyAuthentication() in my ModelResource. I looked at Django Tastypie: How to Authenticate with API Key and he uses the get parameters...
View ArticleIn Django, how do I check if a user is in a certain group?
I created a custom group in Django’s admin site. In my code, I want to check if it’s in this group. How do I do that? Solution: You can access the groups simply through the groups attribute on User....
View ArticleUsing Django time/date widgets in custom form
How can I use the nifty JavaScript date and time widgets that the default admin uses with my custom view? I have looked through http://www.djangoproject.com/documentation/forms/, and it brefly mentions...
View ArticleWhat is a “slug” in django?
When I read django code I often see in models what is called a “slug”. I am not quite sure what this is but I do know it has something to do with URL:s. How and when is this slug-thing supposed to be...
View ArticleDjango – Set Up A Scheduled Job?
I’ve been working on a web app using Django, and I’m curious if there is a way to schedule a job to run periodically. Basically I just want to run through the database and make some...
View ArticleWhat’s the best Django search app? [closed]
I’m building a Django project that needs search functionality, and until there’s a django.contrib.search, I have to choose a search app. So, which is the best? By “best” I mean… easy to install / set...
View ArticleNeed a minimal Django file upload example
As a newbie to Django, I am having difficulty to make an upload app in Django 1.3. I could not find any up-to-date example/snippet. So I appreciate if you could post here or refer me to a minimal but...
View Article
More Pages to Explore .....