Report
Question
I’m deploying a Django app to a dev server and am hitting this error when i run pip install requirements.txt: Traceback (most recent call last): File "/var/www/mydir/virtualenvs/dev/bin/pip", line 5, in <module> from pkg_resources import load_entry_point ImportError: No module ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
22 Answer 28 views

Report
Question
I’m trying to convert a server side Ajax response script into a Django HttpResponse, but apparently it’s not working. This is the server-side script: /* RECEIVE VALUE */ $validateValue=$_POST['validateValue']; $validateId=$_POST['validateId']; $validateError=$_POST['validateError']; /* RETURN VALUE */ $arrayToJs = array(); $arrayToJs[0] = $validateId; $arrayToJs[1] = $validateError; if($validateValue =="Testuser"){ // Validate?? ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
10 Answer 16 views

Report
Question
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 URLs. How and when is this slug-thing ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
8 Answer 14 views

Report
Question
Inspired by the question series ‘Hidden features of …’, I am curious to hear about your favorite Django tips or lesser known but useful features you know of. Please, include only one tip per answer. Add Django version requirements if there are ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
30 Answer 34 views

Report
Question
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). I’ve already seen a few ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
9 Answer 17 views

Report
Question
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 calculations/updates on an automatic, ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
17 Answer 21 views

Report
Question
I have two models: class ModelA(models.Model): name = models.CharField(max_length=256) class ModelB(models.Model): user = models.ForeignKey(MyUser) model_a = models.ForeignKey(ModelA) points = models.IntegerField(default=0) How can I prevent creating the same object? For example: I have ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 34 views