do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-30 Thread fábio andrews rocha marques
Let's say i have a "register a new user" View and on this page, when the user forgets to inform a password or a username, i show a message to him on the same page saying "you forgot the password". The way i do this is by doing this(on my View.py in a function called cadastrarprofessor):

Re: QuerySet.extra and ticket #28756

2017-10-30 Thread Tim Graham
You aren't using Value correctly -- it's not for wrapping raw SQL. https://docs.djangoproject.com/en/dev/ref/models/expressions/#value-expressions What I was trying to suggest is that you write your own expression class that generates the FIELD(...) SQL.

QuerySet.extra and ticket #28756

2017-10-30 Thread Brandon
In my original ticket (https://code.djangoproject.com/ticket/28756) I explained this: I have reoccurring situation, when in a view.py function I need a queryset ordered by a set of identifiers. The order of those identifiers is dependent on factors outside of my control. Essentially in my view

Re: how to create path for sqlite3 in django? I'm unable to access my database.

2017-10-30 Thread Etienne Robillard
Hi, you may need to install sqlite3 for windows and set your PATH to the directory where sqlite3 executable is found. Etienne Le 2017-10-30 à 03:52, bonagiri abhishek a écrit : C:\Users\admin\cricwebsite>python manage.py dbshell CommandError: You appear not to have the 'sqlite3' program

channels working in runserver but "Still in CONNECTING state" then "ERR_CONNECTION_TIMED_OUT" in production

2017-10-30 Thread Adam
Hello, I am following "getting started" in the django channel docs as well as "django channels form the ground up" https://artandlogic.com/2016/06/django-channels-ground-part-2/ tutorial in the django, using REDIS, NGINX and GUNICORN on digital ocean. Based on console errors in the

Re: Creating a server problem

2017-10-30 Thread James Schneider
On Oct 30, 2017 9:09 AM, "md fahad" wrote: Hey I am just new to django i have a problem using the term "from django.http import HttpResponce it is showing error to it so plz help me out Check your spelling: from django.http import HttpResponse -James -- You received

Creating a server problem

2017-10-30 Thread md fahad
Hey I am just new to django i have a problem using the term "from django.http import HttpResponce it is showing error to it so plz help me out -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: I am new in django

2017-10-30 Thread Anish Chapagain
Hi, Please follow tutorials on djangoproject.com and simpleisbetterthancomplex.com Sent from my iPhone > On Oct 30, 2017, at 20:46, cjacque...@gmail.com wrote: > > Hi ! > > I liked it : https://tutorial.djangogirls.org/en/ > > Le lundi 30 octobre 2017 15:45:49 UTC+1, Rafael Mauricio Builes

Re: I am new in django

2017-10-30 Thread cjacquemet
Hi ! I liked it : https://tutorial.djangogirls.org/en/ Le lundi 30 octobre 2017 15:45:49 UTC+1, Rafael Mauricio Builes Marin a écrit : > > Hi everybody, I would like to know what is the best way for learn to use > Django and how mach knowledge of django I need. > Thank you > > El contenido de

I am new in django

2017-10-30 Thread Rafael Mauricio Builes Marin
Hi everybody, I would like to know what is the best way for learn to use Django and how mach knowledge of django I need. Thank you -- El contenido de este mensaje y sus anexos son únicamente para el uso del destinatario y pueden contener información clasificada o reservada. Si usted no es

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-30 Thread cjacquemet
Ok, i finally found where the problem was : the admin class (UserAdmin) of my custom user class was in models.py and must be in admin.py. I found the solution here : https://stackoverflow.com/questions/45783147/django-lookuperror-app-accounts-doesnt-have-a-user-model -- You received this

how to create path for sqlite3 in django? I'm unable to access my database.

2017-10-30 Thread bonagiri abhishek
C:\Users\admin\cricwebsite>python manage.py dbshell CommandError: You appear not to have the 'sqlite3' program installed or on your path. Can anyone please explain me the problem? I'm unable to access the database as it is showing the above CommandError. -- You received this message because you

TruncHour with tzinfo throws AmbiguousTimeError

2017-10-30 Thread Vincent T.
I have a model with a datetime field that is filled with UTC datetime values (time_aware) I am trying to aggregate data by hours on another timezone ('Europe/Paris'). Last sunday at 2am there has been the day-saving-time impact to local time. pytz.exceptions.AmbiguousTimeError: 2017-10-29

[ANNOUNCE] Django-livestore 1.0-beta1 is out

2017-10-30 Thread Etienne Robillard
Hi guys, I'm pleased to announce the first beta release of Django-livestore 1.0! Django-livestore is a fork of the Satchmo framework to develop ecommerce web applications in Django. This release is for developers only. It is not suitable for production use. Whats new: - Python 3.5.3

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-30 Thread cjacquemet
An additional information : the settings.py was generated with Django 1.9.7 Le lundi 30 octobre 2017 08:35:44 UTC+1, cjacq...@gmail.com a écrit : > > > Yes, there is my INSTALLED_APPS (it was ok with Django 1.10) : > > INSTALLED_APPS = [ > #django > 'django.contrib.admin', >

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-30 Thread cjacquemet
Yes, there is my INSTALLED_APPS (it was ok with Django 1.10) : INSTALLED_APPS = [ #django 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles',

Re: MultipleChoiceField records down choices as a list, but CharField converts them to a list?

2017-10-30 Thread James Schneider
On Thu, Oct 26, 2017 at 7:54 AM, Jack wrote: > I have a model field for choosing multiple options. Here is the code for > models and forms: > > *models.py:* > CONDO_APARTMENT = 'Condo Apartment' > DETACHED_HOUSE = 'Detached House' > SEMI_DETACHED =

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-30 Thread James Schneider
> > File "/Library/Python/2.7/site-packages/django/contrib/auth/forms.py", > line 22, in > UserModel = get_user_model() > File "/Library/Python/2.7/site-packages/django/contrib/auth/__init__.py", > line 198, in get_user_model > "AUTH_USER_MODEL refers to model '%s' that has not been

Re: Localtunnel with my Django Project

2017-10-30 Thread yingi keme
Thanks alot I did it and it worked, added the address to ALLOWED_HOSTS in my settings.py Thanks once again Yingi Kem > On 30 Oct 2017, at 2:02 AM, shreekant bohra wrote: > > Hi > > You don't need to integrate localtunnel with django. Open django test server > in one