Django is an open source Web 2.0 application framework, written in Python. Its primary goal is to ease the creation of complex database-driven websites.

learn more… | top users | synonyms | django jobs

0
votes
0answers
3 views

django admin - overriding my session id - how to solve it

I am trying to setup admin page for my site. sofar working fine. but once i log into admin, it is deleting my other session: sess_id. if i go back to normal page where i had that session, it is giving ...
1
vote
0answers
6 views

Django-mptt filter child from django template

I have used django-mptt to represent my hierarchical data. To get the data from database table I have used following code from my template. {% load mptt_tags %} {% recursetree nodes %} {{ node.name ...
0
votes
0answers
7 views

how to customize the radio button in Django

forms.py Date_Format = ( ('0', ' dd / mm / yyyy'), ('1', 'mm / dd / yyyy'), ) class SettingsForm(forms.ModelForm): date_format = forms.ChoiceField(widget=forms.RadioSelect(), ...
1
vote
0answers
8 views

How to automatically map url to template tree?

Let's suppose that we have the following templates files layout: templates/ base.html about/ company/ history.html base.html contains page layout and included in every other template. ...
0
votes
0answers
24 views

Django: recreate tables

I've been developing my Django project on my machine, and to test whether other users will be able to use the project on their machines, I created a new database to test out the project against the ...
0
votes
1answer
7 views

global constants in a separate file other than settings.py in django?

I expect to define a lot of constants in a project. I don't want to pollute settings.py with them. (as mentioned Defining Constants in Django) Where/How do you define global constants in django other ...
0
votes
1answer
8 views

Django replace ModelForm instance dynamically OR don't save Form data [image]

data entry people keep adding and duplicating models because they can't easily search for an existing item inline so I added fields to the Brand ModelForm to allow autosuggesting a Brand model. The ...
0
votes
2answers
47 views

mongoengine django and encoding, 'utf8' codec can't decode byte

My mongodb use utf-8, and the django read data from it is not unicode, perhaps it is the answer,but how to solve this problem? the data in mongodb have some Chinese. If I use the other table totally ...
0
votes
0answers
11 views

Using cycle to Django?

I am developing a Django application, i had some problem, I hope to do the following effects on Django, <div id='cssmenu'> <ul> <li class='active'><a ...
1
vote
1answer
9 views

Authenticating Developers with APIKey and Users with BasicAuth/OAuth

I've looked around for this but can't seem to find a canonical answer. I'm trying to follow best practices. Maybe I'm thinking of it the wrong way. I'm thinking of my API users as two different ...
-1
votes
1answer
18 views

Passing a variable from view to HTML

Assuming in views.py I have the variable: a = 5 And I want to include this information in my HTML page where I can do something like: {%if a = 5%} Do something. {%endif%} I was wondering what ...
-3
votes
0answers
42 views

Is django right for me at this stage? [closed]

Sorry if this is a repetition but I just started programming in python, I have experience with other programming languages. My main concern is that is it OK for me to go ahead with django while ...
1
vote
0answers
12 views

Cannot save ManyToMany fields from Django Admin interface

My sqllite3 database and Django setup are working correctly except for this single situation involving the Admin interface: class Box(models.Model): name = models.CharField(max_length=200, ...
0
votes
0answers
18 views

How to debug Django unit tests?

I have a Django unit test, and I want to put print statements in it for debugging purposes but apparently django is suppressing them. How else can I print the value of a variable? I may be able to ...
0
votes
0answers
25 views

Python - Can a web server avoid imporing for every request?

I'm working on a Python project, currently using Django, which does quite a bit of NLP work in a form post process. I'm using the NLTK package, and profiling my code and experimenting I've realised ...

1 2 3 4 5 3428
15 30 50 per page