nothing i can do about "CSRF token missing or incorect" -- beginner

2014-09-02 Thread aseds
i searched and tried what i found to solve it, but... here is my edit.html which contains my form: {{ page_name }} - Editing Editing {{ page_name }} {% csrf_token %} {{ content }} and here is my views.py: # ... def edit_page(request, page_name): try: page = Page.objects.get(pk =

Re: Cannot start tutorial that begins with '"jango-admin.py startproject mysite"

2014-09-02 Thread aseds
for me django-admin.py does not work, but django-admin does work. i don't know why. On Friday, August 29, 2014 10:13:55 AM UTC+4:30, Jo MM wrote: > > Hello. > I believe I have successfully installed Django based on having no problems > with testing "import django" at the command prompt and

Re: New user - struggling with database design

2014-09-02 Thread Derek
That looks like a database error - check in your database as to which tables have been created. On Thursday, 28 August 2014 18:05:01 UTC+2, Jason G wrote: > > Ok - here is where I am stuck now. Any thoughts? > > If I try to render {{ vessel.CurrentBrew }} in a view, I get something > like this:

Re: How quickly do Django unit tests run?...

2014-09-02 Thread Benjamin Scherrey
What DB were you testing on before? Unless you're going to launch this thing into production with SQLite I would recommend you switch back to whatever DB you're planning for production and test with it as you probably have some serious performance considerations to work out asap. If they're archite

Re: Apache on Windows & multiple Django apps

2014-09-02 Thread DJ-Tom
Most likely the docs refer to this section of wsgi.py: # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This > breaks > # if running multiple sites in the same mod_wsgi process. To fix this, use > # mod_wsgi daemon mode with each site in its own daemon process, or use > # os.env

Re: Apache on Windows & multiple Django apps

2014-09-02 Thread Tom Evans
On Tue, Sep 2, 2014 at 12:08 PM, DJ-Tom wrote: > Most likely the docs refer to this section of wsgi.py: > >> # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This >> breaks >> # if running multiple sites in the same mod_wsgi process. To fix this, use >> # mod_wsgi daemon mode wit

Re: nothing i can do about "CSRF token missing or incorect" -- beginner

2014-09-02 Thread François Schiettecatte
Did you check that the csrf_token is actually inserted into the form by looking at the HTML in the browser? François On Sep 2, 2014, at 3:57 AM, aseds wrote: > i searched and tried what i found to solve it, but... > here is my edit.html which contains my form: > > > > > {{ page_name

Re: nothing i can do about "CSRF token missing or incorect" -- beginner

2014-09-02 Thread aseds
it suddenly got solved. i don't know how but now it's working. anyway i didn't know exactly what this CSRF do but thanks to you i now do know. thanks again.. On Tuesday, September 2, 2014 4:25:11 PM UTC+4:30, François Schiettecatte wrote: > > Did you check that the csrf_token is actually inserte

Bug in Webkit when redirecting with anchor/fragment

2014-09-02 Thread saintger
Hello, I would like a workaround for this 5.5 year old Webkit bug which remove the anchor when redirecting: https://bugs.webkit.org/show_bug.cgi?id=24175 https://code.djangoproject.com/ticket/9967 Using language prefix in the URL (https://docs.djangoproject.com/en/dev/topics/i18n/translation/#l

Re: Apache on Windows & multiple Django apps

2014-09-02 Thread Robert Grant
Waitress runs fine on Windows; just install with pip. On Tuesday, 2 September 2014 13:51:28 UTC+2, Tom Evans wrote: > > On Tue, Sep 2, 2014 at 12:08 PM, DJ-Tom > > wrote: > > Most likely the docs refer to this section of wsgi.py: > > > >> # We defer to a DJANGO_SETTINGS_MODULE already in the e

i18n and overriding django.auth translations

2014-09-02 Thread paul . connell
I've got some basic translations working in de_de (German), but it seems that django has brought it's own translations along for the ride after I compile. I has not translated 'Password' in my locale files but DJango is doing it automatically (I assume from the django.admin module?). That's f

Re: crispy forms two forms and context

2014-09-02 Thread Brad Rice
I wrote an app that allows people to login to fill out an application. It has quite a few text areas that have to be filled out, so the idea was to allow them to fill out partial and come back and work on it and eventually submit it. The last stage before submit I pull all the data into a final

Re: How quickly do Django unit tests run?...

2014-09-02 Thread Fred Stluka
Benjamin, Thanks for the followup! I've been using MySQL. For normal (non-testing) use, it seems fast enough on our development machines (Mac laptop) and in our TEST and PROD environments (Linux on AWS). Page loads are typically sub-second. It was only when I used the command: % python ma

Re: i18n and overriding django.auth translations

2014-09-02 Thread Avraham Serour
is this a theoretical question or did you try and it is not working? On Tue, Sep 2, 2014 at 1:26 PM, wrote: > I've got some basic translations working in de_de (German), but it seems > that django has brought it's own translations along for the ride after I > compile. I has not translated 'Pas

Re: Apache on Windows & multiple Django apps

2014-09-02 Thread DJ-Tom
Am Dienstag, 2. September 2014 13:51:28 UTC+2 schrieb Tom Evans: > The most obvious and simple solution is to not use Windows. > lol - ever heard of the "box of pandora"? :-) My knowledge of Linux boxes is very close to zero - so setting up a server that is not based on Windows would be the

Re: Cannot start tutorial that begins with '"jango-admin.py startproject mysite"

2014-09-02 Thread Collin Anderson
django-admin (without .py) only works in django 1.7 what version are you using? -- 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...@googleg

Re: Apache on Windows & multiple Django apps

2014-09-02 Thread Collin Anderson
setdefault is what's causing your trouble. Change it to an explicit: os.environ['DJANGO_SETTINGS_MODULE'] = 'app.settings' -- 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

Re: Apache on Windows & multiple Django apps

2014-09-02 Thread DJ-Tom
*facepalm*... honestly, I did not spot the difference, i believed the line I had was right!!! thanks anyways, I will try that tomorrow. Am Dienstag, 2. September 2014 17:45:37 UTC+2 schrieb Collin Anderson: > > setdefault is what's causing your trouble. Change it to an explicit: > > os.environ[

Possible bug: delete_cookie() causes malformed Set-Cookie header

2014-09-02 Thread Tao Bojlen
Hi, I'm trying to delete a cookie on user logout. The issue is that the Set-Cookie header in the response is malformed, and thus the cookie doesn't get deleted. This is the header: Set-Cookie: "{{ cookie_name }}=; Domain={{ cookie_domain }}; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; P

Re: Guidance needed - Real time and django

2014-09-02 Thread Robin Lery
Thank you Amirouche! I will surely look onto that. And I saw many tutorials on django + node.js and socket.io, and was just curious as to what your thoughts are on this as the new version of socket.io has also been released? On Mon, Sep 1, 2014 at 3:09 AM, Amirouche Boubekki < amirouche.boube...@

celery problems

2014-09-02 Thread Dima
The question is not really about Django, but can someone faced. Trying to run on the server - /manage.py celeryd -l INFO output Running a worker with superuser privileges when the worker accepts messages serialized with pickle is a very bad idea! If you really want to continue then you have to

Re: celery problems

2014-09-02 Thread Dima
tried to run as a different user, now - IOError: [Errno 13] Permission denied: '/home/linguion/log/ supervisord/supervisord.log' help( вторник, 2 сентября 2014 г., 21:43:21 UTC+3 пользователь Dima написал: > > The question is not really about Django, but can someone faced. Trying to > run on the

Database configuration errors saying 'ENGINE' isn't set when it is

2014-09-02 Thread Shaun Kruger
I have a django 1.4.3 application (upgrading to 1.4.14 made no difference) that is behaving oddly. I know 1.4 isn't officially supported, but I'm hoping to come up with some understanding about what is going wrong so I can get by for the next few weeks until we can start our upgrade to 1.7. I

Concern about FastCGI deprecation

2014-09-02 Thread Shawn H
While my preference would be to run Django on Linux Apache and run mod_wsgi, I'm limited to a IIS web server for production. What options will those of us stuck in this situation have, now that FastCGI support is being removed? Please provide a lifeline to those of us who love Django but have t

Re: Concern about FastCGI deprecation

2014-09-02 Thread Javier Guerra Giraldez
On Tue, Sep 2, 2014 at 2:15 PM, Shawn H wrote: > Please provide a lifeline to those of us who love Django but have to use > IIS. Thanks. FastCGI isn't a Django concern, as it is a WSGI-only framework (like most Python frameworks). flup used to be a reasonable FastCGI WSGI container, but it's n

Re: Concern about FastCGI deprecation

2014-09-02 Thread James Bennett
On Tue, Sep 2, 2014 at 3:08 PM, Javier Guerra Giraldez wrote: > FastCGI isn't a Django concern, as it is a WSGI-only framework (like > most Python frameworks). flup used to be a reasonable FastCGI WSGI > container, but it's no longer supported, so it's unreasonable to ask > the Django foundatio

Re: Does Django detect changes in models Meta ?

2014-09-02 Thread David Los
Very, very good question. I am experiencing the same issues with Django 1.7rc2 and 1.7rc3. Syncdb and sql statements are intended for Django < 1.7. Would love to hear a solution! Op vrijdag 22 augustus 2014 09:32:43 UTC+2 schreef termopro: > > Hi there, > > I am using Django 1.7 RC2. > I have c

runserver error

2014-09-02 Thread Swathi Rajanna
python manage.py runserver Traceback (most recent call last): File "manage.py", line 11, in execute_from_command_line(sys.argv) File "/home/swathi/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line utility.execute() Fi

Re: runserver error

2014-09-02 Thread Collin Anderson
don't use quotes in your url conf: from whatever import password_reset url(r'^reset_password/$', password_reset), # not this url(r'^reset_password/$', "password_reset"), -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Does Django detect changes in models Meta ?

2014-09-02 Thread Norman Bird
OK, I found out that in order to change the schema of the tables one has to install and run a migration tool. I used south. just install south and check out their website for basic use and you basically run a few commands from the command line and it sees the changes you made and migrate the change

Re: Concern about FastCGI deprecation

2014-09-02 Thread Shawn H
Thank you both for the response, and the explanation of why the FastCGI support was deprecated. I will look into both of your suggestions, though I will also look to see if http://pytools.codeplex.com/wikipage?title=wfastcgi (which I found after posting this question) will work. Microsoft appare

Re: runserver error

2014-09-02 Thread Swathi Rajanna
(r'^resetpassword/passwordsent/$',django.contrib.auth.views.password_reset_done), (r'^resetpassword/$',django.contrib.auth.views.password_reset), #(r'^reset/(?P[0-9A-Za-z]+)-(?P.+)/$','django.contrib.auth.views.password_reset_confirm'), url(r'^reset/(?P[0-9A-Za-z_\-]+)/(?P[0-9A-Za-z]{1,13}-[0

Re: runserver error

2014-09-02 Thread Swathi Rajanna
gave* On Wed, Sep 3, 2014 at 2:57 AM, Swathi Rajanna wrote: > > > (r'^resetpassword/passwordsent/$',django.contrib.auth.views.password_reset_done), > (r'^resetpassword/$',django.contrib.auth.views.password_reset), > > #(r'^reset/(?P[0-9A-Za-z]+)-(?P.+)/$','django.contrib.auth.views.password

Re: Does Django detect changes in models Meta ?

2014-09-02 Thread Collin Anderson
The newest version of django, version 1.7, has migrations built in. -- 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

[ANNOUNCE] Django 1.7 released

2014-09-02 Thread James Bennett
Django 1.7 is now available: https://www.djangoproject.com/weblog/2014/sep/02/release-17-final/ Alongside this are bugfix releases for 1.4, 1.5 and 1.6. The bugfix 1.5 release is the final releae in the 1.5 series, as Django 1.5 has now reached end-of-life. -- You received this message because

Re: [ANNOUNCE] Django 1.7 released

2014-09-02 Thread Carlos Aguilar
congratulations!!! And thank you for a really good job! Best Regards On Tue, Sep 2, 2014 at 4:13 PM, James Bennett wrote: > Django 1.7 is now available: > > https://www.djangoproject.com/weblog/2014/sep/02/release-17-final/ > > Alongside this are bugfix releases for 1.4, 1.5 and 1.6. The bugf

Add/update form

2014-09-02 Thread Jagger
Hi Everyone! I intend to write an add/update form. *models.py*: class NewsTickerItem(models.Model): #Content content = models.CharField(max_length=60) #Highlighted is_highlighted = models.BooleanField() #Active is_active = models.BooleanField() # Ordering number

Re: Add/update form

2014-09-02 Thread Jagger
I realized, this could be the solution: I changed spadmin_newstickeritem_changeform.html this way: {% extends "spweb/spadmin/spadmin_base_ext.html" %} {% block content %} {% if newstickeritem_id %} {% else %} {% endif %} {% csrf_token %} {{ form.as_p }} {% endblock %} 2014. szeptember 3.

Re: Database configuration errors saying 'ENGINE' isn't set when it is

2014-09-02 Thread Shaun Kruger
After a few more hours of going over this I determined the root cause and now I simply do not understand how this was not a problem in dev instances or any other environments. This was a circular import issue. local_settings.py started with an import that fetched defaults from the app. from .se

Writing your first Django App Part 1

2014-09-02 Thread Max Nathaniel Ho
I'm following the instructions in the tutorial but am stuck at this part. We are told to type in "python manage.py shell" and explore the database API. Thereafter there is a chunk of code that is presented. Am I supposed to type it into my Command Prompt box, and when I do, it will be saved a

Re: Writing your first Django App Part 1

2014-09-02 Thread Jonathan Querubina
Just tupe in. Do not worry. Is just for learning about the shell and its power Sent from my iPhone > On Sep 2, 2014, at 20:07, Max Nathaniel Ho wrote: > > I'm following the instructions in the tutorial but am stuck at this part. > > We are told to type in "python manage.py shell" and explore

Re: [ANNOUNCE] Django 1.7 released

2014-09-02 Thread Nikolas Stevenson-Molnar
+1 I've been trying out 1.7 for a new project and the migrations are awesome! _Nik On 9/2/2014 3:15 PM, Carlos Aguilar wrote: > congratulations!!! > > And thank you for a really good job! > > Best Regards > > > On Tue, Sep 2, 2014 at 4:13 PM, James Bennett > wrote:

Re: How create a custom permission for a model?

2014-09-02 Thread YusufSalahAdDin
Wel wel wel, my code is it : news.models.py class New(models.Model): author = models.ForeignKey(User, verbose_name='Autor', related_name= 'news') content = RichTextField(verbose_name='Contenido') created_date = models.DateTimeField(auto_now_add=True, verbose_name='Fecha y Hora')

Re: How create a custom permission for a model?

2014-09-02 Thread YusufSalahAdDin
Hi men, now i have my model is thus: from django.core.mail import send_mail, mail_admins from django.db import models from django.template.defaultfilters import slugify from django.core.urlresolvers import reverse from django.contrib.auth.models import User from ckeditor.fields import RichText

Re: Writing your first Django App Part 1

2014-09-02 Thread Max Nathaniel Ho
Thanks! For the codes, do I save them in views.py? On Wednesday, September 3, 2014 7:23:07 AM UTC+8, Jonathan Querubina wrote: > > Just tupe in. Do not worry. > > Is just for learning about the shell and its power > > Sent from my iPhone > > > On Sep 2, 2014, at 20:07, Max Nathaniel Ho > wrot

Re: [ANNOUNCE] Django 1.7 released

2014-09-02 Thread Sithembewena Lloyd Dube
Awesome! Thanks to everyone who's made this release possible. On Wed, Sep 3, 2014 at 12:13 AM, James Bennett wrote: > Django 1.7 is now available: > > https://www.djangoproject.com/weblog/2014/sep/02/release-17-final/ > > Alongside this are bugfix releases for 1.4, 1.5 and 1.6. The bugfix 1.5 >

Re: Guidance needed - Real time and django

2014-09-02 Thread Amirouche Boubekki
2014-09-02 18:15 GMT+02:00 Robin Lery : > Thank you Amirouche! I will surely look onto that. And I saw many > tutorials on django + node.js and socket.io, and was just curious as to > what your thoughts are on this as the new version of socket.io has also > been released? > I will look at the new

Re: runserver error

2014-09-02 Thread Swathi Rajanna
> > I added password_reset import to > /home/swathi/env/local/lib/python2.7/site-packages/django/utils/importlib.py > then I got this python manage.py runserver Traceback (most recent call last): File "manage.py", line 9, in from django.core.management import execute_from_command_line

Re: crispy forms two forms and context

2014-09-02 Thread James Schneider
You'll probably want to look at setting up a FormWizard to break up your workflow into steps (fill out some fields, click next to continue, etc.). Django handles the multi-step forms for you very nicely. https://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/ I find wizards to be