django
How to access HttpRequest from urls.py in Django 1.2
I need to do the same thing asked in How to access HttpRequest from urls.py in Django but using version 1.2. Sorry, is what I have. I don\'t want to clutter the urls.py, so the two solutions given are[详细]
2023-04-01 02:56 分类:问答Automatically import all db tables in manage.py shell
Is there a snippet or easy way to impo开发者_运维技巧rt all of my django tables when entering the prompt?[详细]
2023-04-01 02:24 分类:问答Creating a ModelForm for a Modified User Auth django
I have the following code: class UserForm(ModelForm): email = forms.EmailField(widget = forms.TextInput(attrs ={ \'id\':\'email\'}), required=True)[详细]
2023-04-01 02:22 分类:问答django-keyedcache: NameError: global name 'tid' is not defined
Can\'t put my finger on this error. In other parts of the application it works fine, but not in this one, the only thing that is different that this code runs in threaded server while the other runs i[详细]
2023-04-01 02:10 分类:问答Django - admin changeForm extra content beside a field
In the admin change_form of one of my objects I need to have extra content in a certain field (like buttons which will do some javascript modifications on this field)[详细]
2023-04-01 01:59 分类:问答Django. Multiple form validation scenarios
I have a form that has a set of fields. For example it could be: name, surname and email. Form has two submit button on it: save and close. And there are two validation scenarios.[详细]
2023-04-01 01:42 分类:问答jquery and dynamic forms help?
I\'m very new to jquery, and I\'m trying to make a dynamic form in the following manner (and its not working). I want the form to have an initial value of \"hello\" as stated in the header region.[详细]
2023-04-01 01:23 分类:问答Django multipleselect selected data
I\'ve been trying to crack this nut for a while but I cannot seem to be able to set selected values for multipleselect. What I have is:[详细]
2023-04-01 01:17 分类:问答Django Newbie Question: Activation View Being Called Twice ... 99% of the time - Invalid token error
Hi and thank you for looking at my question. When a user clicks activation link in their email, they get a token invalid error page.The user is activated and can use the site.[详细]
2023-04-01 00:48 分类:问答Web app with Django for remote code execution
I\'m trying to develop a web app with Django that would let users to run C programs on a server. The steps that I\'m currently following are:[详细]
2023-04-01 00:28 分类:问答