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

1
vote
1answer
8 views

Checking if an item is contained in a ManyToManyField (django)

So I have a ManyToManyField relationship between Item1 and Item2. On a webpage, I want to display one of two messages based on whether the two items are connected or not. I'm just not sure how to ...
0
votes
0answers
7 views

Storing Facebook ads info

I need to store the metrics (displays, flags, reason for flagging) for my Facebook ads that are displaying on my pages. The problem is that I'm displaying these adds 50 times per second. Ideally, I ...
2
votes
1answer
40 views

Datetime objs will not come out correct when DST

I'm trying to import ical data to one of my Django apps. But it fail to consider DST (I think) so it show the time one hour wrong. If think this worked during winter time. This is a sample of ...
0
votes
1answer
10 views

Django model forms custom init returning tuple when initial given

I have a model form, which I'm trying to pass a model instance to initialize values: class ProjectModelForm(ModelForm): class meta: model = Project def __init__(self, project=None, ...
0
votes
0answers
10 views

Django - declare model field independent of database

I have a legacy database which is to be the base of a Django app. One such table is ContractPlans +---------------+--------------+------+-----+---------+-------+ | Field | Type | ...
0
votes
0answers
9 views

Django - Many to many model relationship and unique constraints

I have a legacy database that is going to be the base of a Django app. Currently, I'm in the process of defining the models and enforcing referential integrity through models.ForeignKey() ...
0
votes
0answers
32 views

Adding edit option to Django ManyToManyField filter widget

I have a pair of models like so: class Item(models.Model): name = models.CharField(max_length=100) def __unicode__(self): return self.name class Group(models.Model): items = ...
0
votes
0answers
14 views

Error: Vagrant assumes that this means the command failed

I am working my way through a video tutorial at http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/ I am working on win7 and using git-bash for my terminal. I have installed the ...
1
vote
1answer
13 views

how do you put a datepicker into a django app?

I'd like to put a datepicker type of widget into my Django app so that users don't have to try and use a textbox to enter a date and a time. I've found some references to widgets and forms but can't ...
1
vote
1answer
13 views

Display forms choice in template-Django

On the template, when I call person.health_issue, I am getting '1','2' instead of 'Abdominal pain','Anaphylaxis'. How to display the value ('Abdominal pain','Anaphylaxis') instead of the code(1 or2 ...
8
votes
6answers
2k views

Django-tastypie. Output in JSON to the browser by default

I see 'Sorry, not implemented yet. Please append "?format=json" to your URL.'. I need always append string "?format=json". Can I make a output in JSON by default? Regards, Vitaliy
1
vote
2answers
101 views

Working with django : Proxy setup

I have a local development django setup with apache. The problem is that on the deployment server there is no proxy while at my workplace I work behind a http proxy, hence the request calls fail. Is ...
0
votes
2answers
15 views

Django re-usable form csrf error

I'd like to add a form to log a user at more than one page on my website using Django. Instead of having to replicate the form multiple times, I want to use an "include" statement to import the same ...
0
votes
0answers
11 views

Multiple Abstract Classes creating clashes

I have two abstract base classes that create clashes: class DateModel(models.Model): created_by = models.ForeignKey(User, null=True, ...
0
votes
1answer
18 views

Django Raw Query SQL injection display attack

I am trying to write a website with Django that could display SQL injection for classroom purposes.However when i try to exploit the query nothing is getting returned. I am using a MYSQL database ...

1 2 3 4 5 3554
15 30 50 per page