django-1.3
Monday as first day of week for WeekArchiveView
How do I convin开发者_C百科ce WeekArchiveView that Monday is the first day of week?Juding by this diff, it is achieved by adding week_format parameter to urls.py:[详细]
2023-04-10 17:40 分类:问答how call a python function from Jquery script in django template
am new to django and jquery,I am searching for a \'hello world\' sample for jquery using django1.3, Where hello world is returned as a string /json from the server to the client when user press a butt[详细]
2023-04-10 06:03 分类:问答Django messages framework not working in template loop
I recently upgraded to Django 1.3 and I want to start using the Messages system. I have added my Middleware, Template context processors and also messages i开发者_如何学Pythonnto the INSTALLED_APPS[详细]
2023-04-09 05:59 分类:问答update foreignkey items from django shell
Following is the models.py: class UserProfile(models.Model): user = models.OneToOneField(User) belongs_to_user_category = models.ForeignKey(UserCustomCategory, null=True, blank=True)[详细]
2023-04-08 16:22 分类:问答Can I combine Create and List class based generic views using mixins?
I\'m looking for the easiest way to combine List and Create functionally with generic class views. I want to have a page that has an item list and a form to add a new item on the bottom.[详细]
2023-04-08 07:36 分类:问答django1.3 static file problem
hi, I am new to django,I doing user authentication for my project,Well its works properly. I have created a folder named \'static\' in my projects root folder[now am in local devlopment] and necessary[详细]
2023-04-06 09:29 分类:问答Why can't field be added to ModelForm in __init__() in Django 1.3
I have a ModelForm with a dynamically added field.It stopped working when I switched from Django 1.2 to Django 1.3.The following code is a minimal version which recreates the issue.[详细]
2023-04-06 06:08 分类:问答use of built in forms and views like PasswordChangeForm in django1.3
I am new to django,In django1.3 how can I use the Built-in forms like PasswordChangeForm 开发者_运维知识库,PasswordResetFormetcand the same usingbuilt-in views.Can any one share some liks or codes ,id[详细]
2023-04-06 04:08 分类:问答Django form.is_valid keeps throwing KeyError
I have this code in my view: def add_intern(request): if request.method == \'POST\': form = InternApplicationForm(request.POST)[详细]
2023-04-05 22:03 分类:问答How to fill model field value from a different ModelForm field with some calculation?
I want to have age fiel开发者_开发百科d in my ModelForm and use it to fill birth_year in the model.[详细]
2023-04-05 12:50 分类:问答