Re: I'm missing something with Models and database migrations

2015-12-27 Thread Peter of the Norse
OK. Let’s take a look at the documentation . Here is what you are looking for: class Invoice(models.Model): invoice_date = models.DateField(‘created date’, auto_now=True) line_item_set =

Display form errors above its respective field with ajax

2015-12-27 Thread Robin Lery
I have a contact form through which users would be able to contact me. I am using django with ajax, and it works fine if there's no error. I would like to show the errors if there's any like it displays above the input fields and not just the errors, but both the input and the errors. It does

Re: settings.py variables in fixtures

2015-12-27 Thread Russell Keith-Magee
Hi Salvatore, On Mon, Dec 28, 2015 at 12:09 AM, Salvatore Scaramuzzino < salvatorescaramuzz...@gmail.com> wrote: > hi to everyone > > i'm newbye in django, but i really appreciate this useful framework. I > have a simple question but i don't know if is appropriate. > > i have a fixture written

Re: testing django migrations

2015-12-27 Thread Gergely Polonkai
I'm also interested in that, except that I'd like to test RunPython steps. On Dec 28, 2015 12:32 AM, "Dan Tagg" wrote: > Hi, > > I used this: > https://github.com/plumdog/django_migration_testcase > > It's only worth writing tests if you are modifying code created by

Re: testing django migrations

2015-12-27 Thread Dan Tagg
Hi, I used this: https://github.com/plumdog/django_migration_testcase It's only worth writing tests if you are modifying code created by makemigrations. Dan On 27 December 2015 at 10:14, varun naganathan wrote: > Hi,I wanted to know how am i supposed to test

Re: django 1.9 - application does not

2015-12-27 Thread Sergiy Khohlov
Django toolbar does not work with 1.9 please comment it in and restart server 24 груд. 2015 19:36 "Shekar Tippur" пише: > Just for testing, I downgraded django to 1.8.4 > > # pip-3.4 install Django==1.8.4 > > You are using pip version 6.1.1, however version 7.1.2 is available.

Re: Using API's efficiently in the framework

2015-12-27 Thread Andrew Farrell
It looks like you several words. To pre-empt a question you might be asking, if you are trying to call out to an API during the request-response cycle, you can find that the request to your app times out. To solve this, people often use a task-runner such as celery

Using API's efficiently in the framework

2015-12-27 Thread Alistair Lobo
I'm a beginner to using API's -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

settings.py variables in fixtures

2015-12-27 Thread Salvatore Scaramuzzino
hi to everyone i'm newbye in django, but i really appreciate this useful framework. I have a simple question but i don't know if is appropriate. i have a fixture written in JSON and i use it to provide initial data to my webapp. i want to provide in this fixture absolute paths in order to

React.js with django-rest-framework using SessionAuthentication: How to include CSRF-Token documentation has not helped me :/

2015-12-27 Thread lnzy35en
  Hi, I am getting crazy finding out how to submit data to the django-rest-api via react.js to include a valid CSRF token by using SessionAuthentication. My template is very basic: {% extends "base.html" %} {% load staticfiles %} {% block title %} ToDo List {% endblock %} {% block content

testing django migrations

2015-12-27 Thread varun naganathan
Hi,I wanted to know how am i supposed to test the working of django migrations.As in how the migrations generate the SQL query.Basically I want to inspect how the sql query generated as in the output of "./manage.py sqlmigrate" is being generated.I've generally used "pdb" along wth

Re: Running unittests on different databases

2015-12-27 Thread varun naganathan
Thanks a lot.That really helped. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email