Re: syntax error while trying to run '$ django-admin startproject mysite' command on command terminal

2020-08-17 Thread coolguy
roject and was welcomed > by the blinking '...'. i then typed $ $ django-admin startproject mysite > and I go syntax Error: invalid syntax. please help by pointing me in the > right direction so that I could continue to learn. Thank you. -- You received this message because you are subscribed to th

syntax error while trying to run '$ django-admin startproject mysite' command on command terminal

2020-08-16 Thread Michael O
hello, i cd into the directory by cd\ to start a project and was welcomed by the blinking '...'. i then typed $ $ django-admin startproject mysite and I go syntax Error: invalid syntax. please help by pointing me in the right direction so that I could continue to learn. Thank you. -- You

Re: syntax error: export DJANGO_DEBUG=False

2019-10-12 Thread fishbite
Hi there, Thank you for your answer, which is correct! Much appreciated. On Saturday, October 12, 2019 at 5:16:43 AM UTC+1, WD Wang wrote: > > hi, > > export DJANGO_DEBUG=False > This is a shell command, you shouldn't add this to your settings.py. > > On Fri, Oct 11, 2019 at 9:51 PM fishbite >

Re: MDN Locallibrary project - syntax error on 'export DJANGO_DEBUG=False'

2019-10-12 Thread fishbite
e > >: > >  > Hi there, > > I've been working on the MDN Locallibrary project and am just preparing to > publish the website on Heroku. > > I seem to be stumbling at the first hurdle though and hope someone can > help. > > The problem is a syntax error pointin

Re: syntax error: export DJANGO_DEBUG=False

2019-10-11 Thread wd
hi, export DJANGO_DEBUG=False This is a shell command, you shouldn't add this to your settings.py. On Fri, Oct 11, 2019 at 9:51 PM fishbite wrote: > Hi there, > > My first post to this group! > > I've built the locallibrary project following the MDN tutorial and I'm now > preparing to deploy

Re: MDN Locallibrary project - syntax error on 'export DJANGO_DEBUG=False'

2019-10-11 Thread Daniel Hepper
am just preparing to > publish the website on Heroku. > > I seem to be stumbling at the first hurdle though and hope someone can help. > > The problem is a syntax error pointing to the following line of code in my > settings.py file: > > export DJANGO_DE

Re: MDN Locallibrary project - syntax error on 'export DJANGO_DEBUG=False'

2019-10-11 Thread John Martin
on Heroku. I seem to be stumbling at the first hurdle though and hope someone can help. The problem is a syntax error pointing to the following line of code in my settings.py file: | exportDJANGO_DEBUG=False | the following lines precede this with no errors: | *importos**SECRET_KEY

syntax error: export DJANGO_DEBUG=False

2019-10-11 Thread fishbite
Hi there, My first post to this group! I've built the locallibrary project following the MDN tutorial and I'm now preparing to deploy the site on Heroku as described in the same tutorial and have added these lines to my settings.py file: *import os* *SECRET_KEY =

MDN Locallibrary project - syntax error on 'export DJANGO_DEBUG=False'

2019-10-11 Thread fishbite
Hi there, I've been working on the MDN Locallibrary project and am just preparing to publish the website on Heroku. I seem to be stumbling at the first hurdle though and hope someone can help. The problem is a syntax error pointing to the following line of code in my settings.py file: export

Re: Syntax Error django, python issue

2019-07-28 Thread Kean
Hi James, Yes this worked. Thanks. Best, K On 28 Jul 2019, at 19:45, James Schneider wrote: > > On Sun, Jul 28, 2019, 10:54 AM Kean wrote: > Hi Chetan > > pls see setup below > > It looks like you may have copied in the ellipses (...) from the example. > Remove those lines and try

Re: Syntax Error django, python issue

2019-07-28 Thread James Schneider
On Sun, Jul 28, 2019, 10:54 AM Kean wrote: > Hi Chetan > > pls see setup below > It looks like you may have copied in the ellipses (...) from the example. Remove those lines and try again. -James > -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Syntax Error django, python issue

2019-07-28 Thread Kean
Hi Chetan pls see setup below settings.py This is copied from https://django-allauth.readthedocs.io/en/latest/installation.html Please can clarify in this context? Best, K On 28 Jul 2019, at 18:46, Chetan Ganji wrote: > AUTHENTICATION_BACKENDS =

Re: Syntax Error django, python issue

2019-07-28 Thread Chetan Ganji
AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend', # your backends goes here, ] Regards, Chetan Ganji +91-900-483-4183 ganji.che...@gmail.com http://ryucoder.in On Sun, Jul 28, 2019

Syntax Error django, python issue

2019-07-28 Thread Karreerchange
Hi, Installing the authentication backend code in settings.py (copy paste..) server crashed after save reporting the following, File "/Users/ProductionEnv/Desktop/devbnt/project/bnt/bnt/settings.py", line 130 'django.contrib.auth.backends.ModelBackend',

I am trying to create a search button in an input field . I have inserted an HTML code inside ma code but I hv got a syntax error. Can anyone go through my code and help me please . I need help my fel

2019-04-11 Thread Nanjuki Saidat
the beginning of the code # -*- coding: utf-8 -*- from __future__ import unicode_literals import logging from datetime import timedelta from django.db import models from crispy_forms.layout import Div from crispy_forms.helper import FormHelper from crispy_forms.layout import

Re: syntax error

2018-07-25 Thread deepali pandey
nt (django.VERSION) > > > On Wed, Jul 25, 2018, 4:54 PM Akhil Reddy > wrote: > >> So what is the solution for this pblm.. >> >> >> On Wed 25 Jul, 2018 7:38 am deepali pandey, >> wrote: >> >>> $ python -m django --version showing syntax e

Re: syntax error

2018-07-25 Thread akash kandpal
In the she'll try this python import django print (django.VERSION) On Wed, Jul 25, 2018, 4:54 PM Akhil Reddy wrote: > So what is the solution for this pblm.. > > > On Wed 25 Jul, 2018 7:38 am deepali pandey, > wrote: > >> $ python -m django --version showing syntax

Re: syntax error

2018-07-25 Thread Akhil Reddy
So what is the solution for this pblm.. On Wed 25 Jul, 2018 7:38 am deepali pandey, wrote: > $ python -m django --version showing syntax error? also i am unable to > create a file.. i am using python 3.7 and django is already installed in my > system, version of django is 2.

syntax error

2018-07-24 Thread deepali pandey
$ python -m django --version showing syntax error? also i am unable to create a file.. i am using python 3.7 and django is already installed in my system, version of django is 2.0.7(which is compatible with python 3.7 -- You received this message because you are subscribed to the Google Groups

Re: Syntax error

2018-05-30 Thread Caleb Bryson
t; > basic.html', {'content' > Hope that helps! > > On 5/30/2018 5:45 PM, Caleb Bryson wrote: > > I can not seem to figure out what the syntax error is in line 7 of this > code, can anyone help > > from django.shortcuts import render > def index(request): > return

Re: Syntax error

2018-05-30 Thread Michael MacIntosh
Hi Caleb, I think there should be a comma here basic.html' {'content' so it should be basic.html', {'content' Hope that helps! On 5/30/2018 5:45 PM, Caleb Bryson wrote: I can not seem to figure out what the syntax error is in line 7 of this code, can anyone help from django.shortcuts

Syntax error

2018-05-30 Thread Caleb Bryson
I can not seem to figure out what the syntax error is in line 7 of this code, can anyone help from django.shortcuts import render def index(request): return render(request, 'hybridair/home.html') def contact(request): return render(request, 'hybridair/basic.html' {'content' : ['contact

template syntax error

2018-03-04 Thread harsh sharma
i created a model in which i have an image filed but when ever i am trying to get an uploaded image on the in my model.py image = models.ImageField(upload_to='static/pictures',) setting.py STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static", "./static"),

Re: Syntax Error when trying to migrate to Postgresql

2018-02-17 Thread PASCUAL Eric
n behalf of Joe <joe.tennis6...@gmail.com> Sent: Thursday, February 15, 2018 4:12:54 AM To: Django users Subject: Re: Syntax Error when trying to migrate to Postgresql The problem was with the quotes being weird format, had to copy and paste the correct quotes in for it. Thanks for the help!! On

Re: Syntax Error when trying to migrate to Postgresql

2018-02-14 Thread Joe
The problem was with the quotes being weird format, had to copy and paste the correct quotes in for it. Thanks for the help!! On Wednesday, February 14, 2018 at 9:59:06 PM UTC-5, Joe wrote: > > I used TextEdit on Mac to edit the files, maybe using a different editor > would work better. > > On

Re: Syntax Error when trying to migrate to Postgresql

2018-02-14 Thread Joe
I used TextEdit on Mac to edit the files, maybe using a different editor would work better. On Wednesday, February 14, 2018 at 5:41:24 PM UTC-5, larry@gmail.com wrote: > > On Wed, Feb 14, 2018 at 5:32 PM, Joe > wrote: > > > > DATABASES = { > > 'default': { >

Re: Syntax Error when trying to migrate to Postgresql

2018-02-14 Thread Larry Martell
On Wed, Feb 14, 2018 at 5:32 PM, Joe wrote: > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.postgresql', > 'NAME': ‘postgres’, > 'USER': ‘postgres’, > 'PASSWORD': ‘*’, > 'HOST': ‘localhost’, > 'PORT':

Re: Syntax Error when trying to migrate to Postgresql

2018-02-14 Thread Joe
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': ‘postgres’, 'USER': ‘postgres’, 'PASSWORD': ‘*’, 'HOST': ‘localhost’, 'PORT': ‘8000’, } } On Wednesday, February 14, 2018 at 3:58:59 AM UTC-5, Andy wrote: > >

Re: Syntax Error when trying to migrate to Postgresql

2018-02-14 Thread Andy
Could you post a few more lines of this settings.py? Preferably the whole DATABASES definition. Just in case there actually is a weird invisible character try retyping 'postgresql', but more likely it looks as if you are using wrong quotation marks other than ' or ". I dont even have on my

Syntax Error when trying to migrate to Postgresql

2018-02-13 Thread Joe
I have installed django, Postgresql, and psycopg2 and went to migrate a project to a new database I created on postgresql, This is the error message I got. Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File

Syntax error with TruncDay

2018-02-07 Thread Andrea
TruncDate with TruncDay or TruncMonth: Test.objects.annotate(day_start=TruncDay(ExpressionWrapper(F('date_start') - timedelta(hours=5), output_field=models.DateField())) I get the following error: ProgrammingError: syntax error at or near "%" LINE 1: ...TE_TRUNC('day', ("test_te

Re: django.db.utils.OperationalError: near ")": syntax error ERROR at $ python3 manage.py migrate

2016-11-14 Thread Simon Charette
uto_20161114_1254...Traceback (most recent call > last): > > File > "/usr/local/lib/python3.4/site-packages/django/db/backends/utils.py", line > 64, in execute > > return self.cursor.execute(sql, params) > > File > "/usr/local/lib/python3.4/si

django.db.utils.OperationalError: near ")": syntax error ERROR at $ python3 manage.py migrate

2016-11-14 Thread Peter Sels
ackends/sqlite3/base.py", line 337, in execute return Database.Cursor.execute(self, query, params) sqlite3.OperationalError: near ")": syntax error The above exception was the direct cause of the following exception: Traceback (most recent call last)

Re: develeopment servers stops at syntax error.

2014-09-17 Thread Collin Anderson
I think it's because of the new check framework. The check framework runs and validates more of the website and looks for errors long before the the "runserver" management command has a chance to start the reloading process. -- You received this message because you are subscribed to the Google

Re: develeopment servers stops at syntax error.

2014-09-13 Thread Yunus Koçyiğit
in django 1.6 on syntax error server also stops. but not fully. when i fix the issue and save server restarts without i need to write "runserver" command. On Saturday, September 13, 2014 12:59:37 PM UTC+3, Andréas Kühne wrote: > > That's strange. A syntax error in my djang

Re: develeopment servers stops at syntax error.

2014-09-13 Thread Andreas Kuhne
That's strange. A syntax error in my django 1.6 also stops the server, without restarting it. I think that's the way it should be, because the server cannot continue processing invalid python files. Regards, Andréas 2014-09-13 10:19 GMT+02:00 Yunus Koçyiğit <ykocyi...@pragmasoft.com

Re: develeopment servers stops at syntax error.

2014-09-13 Thread Yunus Koçyiğit
on django 1.7 if i made a syntax error on purpose like" a = [ 'blablabla' " development server stops immediately with this error : System check identified no issues (0 silenced). September 13, 2014 - 08:18:01 Django version 1.7, using settings 'learning_sit

develeopment servers stops at syntax error.

2014-09-12 Thread Lee
Providing the actual error and traceback would be the only way we can really help you. Could you paste that here? Thanks -- 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

develeopment servers stops at syntax error.

2014-09-12 Thread Yunus Koçyiğit
when i change source code of a model at django 1.7 with python 2.7. development server stops immediately when a syntax error occurs. am i need option with runserver ? also in my settings.py debug= true -- You received this message because you are subscribed to the Google Groups "Django

Re: 1.7a1 - Migration syntax error

2014-02-04 Thread Pradip Caulagi
On Wednesday 05 February 2014 04:49 AM, Russell Keith-Magee wrote: This is the 0001_initial migration - did you manually write or update this migration, or is this code entirely automatically generated? If it's manually written or edited, then fix what you wrote :-) If it's the result of

Re: 1.7a1 - Migration syntax error

2014-02-04 Thread Russell Keith-Magee
Hi Pradip, On Tue, Feb 4, 2014 at 5:18 PM, Pradip Caulagi wrote: > I am using the following (simplified) model that doesn't migrate using the > new migrations in Django 1.7a1 - > > ... > File "/tmp/bar/blog/migrations/0001_initial.py", line 17 > ('created',

1.7a1 - Migration syntax error

2014-02-04 Thread Pradip Caulagi
I am using the following (simplified) model that doesn't migrate using the new migrations in Django 1.7a1 - $ $ pip freeze Django==1.7a1 argparse==1.2.1 distribute==0.6.34 wsgiref==0.1.2 $ $ cat blog/models.py from django.db import models from django.utils import timezone class

Re: Template Syntax Error

2013-09-25 Thread SHANTANU SRIVASTAVA
Thanks ! The urls.py can be viewed here : http://dpaste.com/hold/1394929/ On Tuesday, September 24, 2013 1:10:57 AM UTC+5:30, Alagappan Ramu wrote: > > Looks like the is an issue in Django being able to resolve URLs in your > application. Can you paste your urls.py for more info. > > > Regards,

Re: Template Syntax Error

2013-09-23 Thread Alagappan
Looks like the is an issue in Django being able to resolve URLs in your application. Can you paste your urls.py for more info. Regards, Alagappan R Twitter: @_alagappan Thanks & Regards, Alagappan Ramu +1 (716) 598 2730 Graduate Student in Computer Science

Re: where the syntax error?

2013-01-14 Thread donarb
if self.data_venda < datetime.now - timedelta(days=2) <- > The syntax error refers to the missing colon at the end of the condition. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: where the syntax error?

2013-01-14 Thread John
On 14/01/13 20:39, Érico Oliveira wrote: > class Imovel(models.Model): > disponivel = models.BooleanField(choices=DISPO) > data_venda = models.DateTimeField(auto_now_add=True, blank=True) > > def validaData(self): > if self.data_venda < datetime.now - timedelta(days=2) <-

where the syntax error?

2013-01-14 Thread Érico Oliveira
class Imovel(models.Model): disponivel = models.BooleanField(choices=DISPO) data_venda = models.DateTimeField(auto_now_add=True, blank=True) def validaData(self): if self.data_venda < datetime.now - timedelta(days=2) <- -- You received this message because you are

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread donarb
Correction, the syntax has changed between 1.4 and 1.5. You are now required to quote the name in the url tag. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread donarb
Except, the Django documentation states that url names with dashes are acceptable and the examples show url tags using unquoted names. It even says you can use any character you want: *The string used for the URL name can contain any characters you like. You are not restricted to valid Python

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread Larry Martell
On Mon, Dec 3, 2012 at 7:31 AM, Loai Ghoraba <loai1...@gmail.com> wrote: > Hi > > I have this in my urls.py > > url(r'^accounts/login/$', login,name="accounts-login") > > and in a template base.html > login > > And when I try to open the site,

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread Loai Ghoraba
okay I found it: it should be login with quotes. Thanks. On Mon, Dec 3, 2012 at 2:50 PM, Loai Ghoraba wrote: > not working, giving: Reverse for '' with arguments '()' and keyword > arguments '{}' not found. > > also I want to know about this dash (sorry for using the term

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread Loai Ghoraba
not working, giving: Reverse for '' with arguments '()' and keyword arguments '{}' not found. also I want to know about this dash (sorry for using the term score in the previous post ) thing On Mon, Dec 3, 2012 at 2:34 PM, Nikhil Verma wrote: > {% url auth_login %} --

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread Nikhil Verma
open the site, this error is raised: Template syntax > error: Could not parse the remainder: '-login' from 'accounts-login' > > But when I change the name of the url in both urls.py and base.html to > something without the score '-', it works: like :accountslogin. > > So

Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread Loai Ghoraba
Hi I have this in my urls.py url(r'^accounts/login/$', login,name="accounts-login") and in a template base.html login And when I try to open the site, this error is raised: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login' But when I chang

Re: cannot locate syntax error in urls.py

2012-04-23 Thread r0pewalker
My bad. Thanks for the quick hint, turns out I was not looking the right way.. On 23 Apr, 16:42, Daniel Roseman wrote: > On Monday, 23 April 2012 15:03:35 UTC+1, r0pewalker wrote: > > > Hi everybody. I recently started working on a project involving heavy > > Django usage.

Re: cannot locate syntax error in urls.py

2012-04-23 Thread Daniel Roseman
On Monday, 23 April 2012 15:03:35 UTC+1, r0pewalker wrote: > > Hi everybody. I recently started working on a project involving heavy > Django usage. > I basically retrieve data in xml from a SOAP web service using suds, > parse the xml into a db and then (I should) popuate a web page. > I'm a

Re: Syntax Error at requested method GET !!!

2011-06-13 Thread Gagan (GPS)
Yes... Thank You... On Jun 10, 6:22 pm, Tom Evans wrote: > On Fri, Jun 10, 2011 at 7:27 AM, Gagan (GPS) wrote: > > I have experienced this error on my Ubuntu 11.04. I am unable to even > > view the / page on this site. Kindly help. I was trying

Re: Syntax Error at requested method GET !!!

2011-06-10 Thread Tom Evans
On Fri, Jun 10, 2011 at 7:27 AM, Gagan (GPS) wrote: > I have experienced this error on my Ubuntu 11.04. I am unable to even > view the / page on this site. Kindly help. I was trying to learn > Django by following the video regarding creating a wiki on > showmedo.com . The

Syntax Error at requested method GET !!!

2011-06-10 Thread Gagan (GPS)
return _compile(pattern, flags) File "/usr/lib/python2.7/re.py" in _compile 245. raise error, v # invalid expression Exception Type: error at / Exception Value: syntax error -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Syntax Error

2011-01-04 Thread hank23
there, just to see if there's an obvious python > syntax error. > > HTH > > c > > On Jan 4, 8:08 am, hank23 <hversem...@stchas.edu> wrote: > > > > > After removing the commented code, saving urls.py, restarting the > > server and then requesting the sites

Re: Syntax Error

2011-01-04 Thread cewing
Is it possible that the problem is not in this urls.py, but rather in 'polls.urls'? I'd check line 20 there, just to see if there's an obvious python syntax error. HTH c On Jan 4, 8:08 am, hank23 <hversem...@stchas.edu> wrote: > After removing the commented code, saving urls.py, r

Re: Syntax Error

2011-01-04 Thread hank23
After removing the commented code, saving urls.py, restarting the server and then requesting the sites admin page now I get the admin login screen. But after I type in my username and pw then it again gives me the following screen: TemplateSyntaxError at /admin/ Caught SyntaxError while

Re: Syntax Error

2011-01-04 Thread Piotr Zalewa
what happens if you'remove the commented lines? On 01/04/11 15:22, hank23 wrote: > Can someone explain to me what the following error is trying to tell > me: > > SyntaxError at /polls/1 > invalid syntax (urls.py, line 20)Request Method: GET > Request URL: http://127.0.0.1:8000/polls/1 > Django

Syntax Error

2011-01-04 Thread hank23
Can someone explain to me what the following error is trying to tell me: SyntaxError at /polls/1 invalid syntax (urls.py, line 20)Request Method: GET Request URL: http://127.0.0.1:8000/polls/1 Django Version: 1.2.3 Exception Type: SyntaxError Exception Value: invalid syntax (urls.py, line 20)

Re: Newbie Question: Syntax Error - Form Class, trying to set e-mail field to required=False

2010-07-22 Thread strayhand
il or email or something and you should be good to go > > On 22 July 2010 06:10, strayhand <tobyb...@gmail.com> wrote: > > > I apologize in advance if i'm posting this question in the wrong area. > > I'm learning about django's form class in "The Definitive Guide To >

Re: Newbie Question: Syntax Error - Form Class, trying to set e-mail field to required=False

2010-07-22 Thread Simon Holness
y 2010 06:10, strayhand <tobyb...@gmail.com> wrote: > I apologize in advance if i'm posting this question in the wrong area. > I'm learning about django's form class in "The Definitive Guide To > Django" and for some reason that's beyond me I keep getting a syntax >

Newbie Question: Syntax Error - Form Class, trying to set e-mail field to required=False

2010-07-22 Thread strayhand
I apologize in advance if i'm posting this question in the wrong area. I'm learning about django's form class in "The Definitive Guide To Django" and for some reason that's beyond me I keep getting a syntax error. I've been over my code a dozen times and I'm hoping that someone ca

Re: URL dispatch with name argument throws syntax error

2010-04-22 Thread vjimw
Thanks! That was it! I had completely overlooked that and the url() function was even in another URLs file in our project. On Apr 22, 10:45 am, kmtracey wrote: > On Thu, Apr 22, 2010 at 11:34 AM, vjimw wrote: > > Adding the name argument seems

Re: URL dispatch with name argument throws syntax error

2010-04-22 Thread kmtracey
On Thu, Apr 22, 2010 at 11:34 AM, vjimw wrote: > Adding the name argument seems pretty straight forward, but I must be > doing something wrong. I am writing tests and have the URLs named > seems like the easiest way to look them up. > > My URL dispatch file was

URL dispatch with name argument throws syntax error

2010-04-22 Thread vjimw
Adding the name argument seems pretty straight forward, but I must be doing something wrong. I am writing tests and have the URLs named seems like the easiest way to look them up. My URL dispatch file was working before I added any of the name='this- name' arguments. Here is my file: from

Re: Template Syntax Error: url config module not found

2009-11-09 Thread m3mitsuppe
ot;portfolio" one. It's > of course the interesting part where a photo portfolio is shown. > > When I click on that link, Django issues a Template Syntax Error > saying that the module "tina.urls" cannot be importet. That's kind of > strange, because it must h

Template Syntax Error: url config module not found

2009-11-08 Thread m3mitsuppe
en I click on that link, Django issues a Template Syntax Error saying that the module "tina.urls" cannot be importet. That's kind of strange, because it must have been imported this exact module for rendering the home page and the other pages that do work. As this happens during template

Re: uncaught exception: Syntax error, unrecognized expression: %}, on using ajax

2009-11-04 Thread Nicu Marcu
2009/11/4 Nicu Marcu > I'm getting in that specific url, means test_ajax1 view. I test this. It do > the render_to response. I put a print and a raw_input() in that specific > view, and it fire up, on that click event. I think the problem is when that > #test_div is

Re: uncaught exception: Syntax error, unrecognized expression: %}, on using ajax

2009-11-04 Thread Nicu Marcu
I'm getting in that specific url, means test_ajax1 view. I test this. It do the render_to response. I put a print and a raw_input() in that specific view, and it fire up, on that click event. I think the problem is when that #test_div is updated. 2009/11/4 Tom Evans >

Re: uncaught exception: Syntax error, unrecognized expression: %}, on using ajax

2009-11-04 Thread Tom Evans
On Wed, Nov 4, 2009 at 9:50 AM, NMarcu wrote: > > Hello all, > > I got an error, and I don't know how to pass on it. I got this > error when I try to use ajax from django templates. > I use this, from jquery: > $('#create-user').click(function() { >$(

Re: uncaught exception: Syntax error, unrecognized expression: %}, on using ajax

2009-11-04 Thread Nicu Marcu
I see it with firebug. 2009/11/4 Daniel Roseman > > On Nov 4, 9:50 am, NMarcu wrote: > > Hello all, > > > >I got an error, and I don't know how to pass on it. I got this > > error when I try to use ajax from django templates. > > I use this,

Re: uncaught exception: Syntax error, unrecognized expression: %}, on using ajax

2009-11-04 Thread Daniel Roseman
On Nov 4, 9:50 am, NMarcu wrote: > Hello all, > >    I got an error, and I don't know how to pass on it. I got this > error when I try to use ajax from django templates. > I use this, from jquery: > $('#create-user').click(function() { >                 $( '#test_div'

uncaught exception: Syntax error, unrecognized expression: %}, on using ajax

2009-11-04 Thread NMarcu
Hello all, I got an error, and I don't know how to pass on it. I got this error when I try to use ajax from django templates. I use this, from jquery: $('#create-user').click(function() { $( '#test_div' ).load( "{% url test_ajax %}"); }); I have this button: Add a new

RE: syntax error what am i doing wrong???

2009-10-26 Thread Vincent Jones
Thanks...it worked. -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of Daniel Roseman Sent: Monday, October 26, 2009 7:01 PM To: Django users Subject: Re: syntax error what am i doing wrong??? On Oct 26, 10:35 pm, "jon...@co

Re: syntax error what am i doing wrong???

2009-10-26 Thread Daniel Roseman
On Oct 26, 10:35 pm, "jon...@cox.net" wrote: > SyntaxError at / > > ('invalid syntax', ('c:\\Users\\Vincent\\Documents\\django_bookmarks\ > \..\\django_bookmarks\\bookmarks\\views.py', 15, 20, 'return Http > Response(output)\n')) > > SCRIPT FROM VIEWS.PY > > from django.http

Re: syntax error what am i doing wrong???

2009-10-26 Thread Antoni Aloy
2009/10/26 jon...@cox.net : > > SyntaxError at / > > ('invalid syntax', ('c:\\Users\\Vincent\\Documents\\django_bookmarks\ > \..\\django_bookmarks\\bookmarks\\views.py', 15, 20, 'return Http > Response(output)\n')) > > SCRIPT FROM VIEWS.PY > > from django.http import HttpResponse

syntax error what am i doing wrong???

2009-10-26 Thread jon...@cox.net
SyntaxError at / ('invalid syntax', ('c:\\Users\\Vincent\\Documents\\django_bookmarks\ \..\\django_bookmarks\\bookmarks\\views.py', 15, 20, 'return Http Response(output)\n')) SCRIPT FROM VIEWS.PY from django.http import HttpResponse def main_page(request) : output = ''' %s

SQL syntax error in Admin

2009-10-24 Thread Tim Valenta
If there's nothing I can determine here, I'll move over to submitting a ticket on the matter. Wanted to check in here first. Using... Django 1.2 SVN revision 11653, (updated just 2 minutes ago) MySQL 5.1.31 Models: class Category(models.Model): category = models.CharField() class

Re: Named URL Patterns -- Syntax Error

2009-09-25 Thread W3
Thanks, that was it. Bit of a simple one I probably should have spotted. Andrew On 25 Sep, 19:42, Tim Chase <django.us...@tim.thechases.com> wrote: > > Can somebody tell me why i get a syntax error with this named URL > > pattern? > > > urlpatterns = patterns(

Re: Named URL Patterns -- Syntax Error

2009-09-25 Thread Tim Chase
> Can somebody tell me why i get a syntax error with this named URL > pattern? > > urlpatterns = patterns('', > url(r'^feed/(?P.*)/$', > 'django.contrib.syndication.views.feed', > {'feed_dict': feeds} looks like a missing comma here... >

Named URL Patterns -- Syntax Error

2009-09-25 Thread When ideas fail
Can somebody tell me why i get a syntax error with this named URL pattern? urlpatterns = patterns('', url(r'^feed/(?P.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds} name="feed"), ) This is the traceback: Trace

Re: Syntax error

2009-09-15 Thread Maksymus007
On Tue, Sep 15, 2009 at 1:28 PM, Gonzalo Delgado wrote: > El Tue, 15 Sep 2009 12:49:02 +0200 > Maksymus007 escribió: > >> {% if gates.forms %} >> >>     {% for form in gates.forms %} >> >>         {% if forloop.first %} >> >>         {% else

Re: Syntax error

2009-09-15 Thread Gonzalo Delgado
El Tue, 15 Sep 2009 12:49:02 +0200 Maksymus007 escribió: > {% if gates.forms %} > >     {% for form in gates.forms %} > >         {% if forloop.first %} > >         {% else %} > >         {% endif %} > > >     {% endfor $} < ? > > > >>

Syntax error

2009-09-15 Thread Maksymus007
Whats wrong with such template (entire one):? Django returns TemplateSyntaxError at /scratchcards/ Invalid block tag: 'else' pointing at tag marked by >> {% if gates.forms %}     {% for form in gates.forms %}         {% if forloop.first %}         {% else %}         {% endif %}     {%

Re: rank newbie - working thru 2.0 Book- basic template Tags give 'syntax error' on {%

2009-03-10 Thread Jonquille
Great - the 2.0 book/Chap. 4, moves smoothly from code examples to Tags without that mention. Thanks for the quick responses. Jon On Mar 10, 3:02 pm, Alex Gaynor wrote: > On Tue, Mar 10, 2009 at 1:58 PM, Jonquille wrote: > > > python manage.py

Re: rank newbie - working thru 2.0 Book- basic template Tags give 'syntax error' on {%

2009-03-10 Thread James Bennett
On Tue, Mar 10, 2009 at 1:58 PM, Jonquille wrote: > What am I missing please, and thank you. You're missing the idea that templates are not Python code and are not typed at a Python prompt -- they're placed in template files and templates are loaded and rendered according

rank newbie - working thru 2.0 Book- basic template Tags give 'syntax error' on {%

2009-03-10 Thread Jonquille
python manage.py shell Python 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> {% if 1 %} File "", line 1 {% if 1 5} ^ SyntaxError: invalid syntax What am I

Re: ultra-n00b models.Model syntax error

2008-09-21 Thread Karen Tracey
On Sun, Sep 21, 2008 at 4:21 PM, notatoad <[EMAIL PROTECTED]> wrote: > > i just set up django and started on the tutorial. i get this after > calling 'python manage.py sql polls' > > [snip] > File "/usr/local/django-apps/mysite/../mysite/polls/models.py", line 3 > >class

ultra-n00b models.Model syntax error

2008-09-21 Thread notatoad
i just set up django and started on the tutorial. i get this after calling 'python manage.py sql polls' ceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "/usr/lib/python2.4/site-packages/django/core/management/ __init__.py", line

Re: Unaccountable syntax error

2008-09-04 Thread guillaume
Sorry guys, I just need a tip : where do you get your models.ColorField from ? I've upgraded to django 1.0, and don't have it ! Regards, Guillaume On 30 août, 16:03, Leaf <[EMAIL PROTECTED]> wrote: > Of course. I just look at the error actually occurs on, not the > context. I guess even

Re: URLs Syntax Error

2008-09-03 Thread djandrow
I'm a bit confused here, what is dict, is it the same as archive infor? And what has happened to date_based.archive_index? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: URLs Syntax Error

2008-09-03 Thread Daniel Hepper
Adding a comma will probably not help, because you then have 5 values in the tuple, but the expected format is: (regular expression, Python callback function [, optional dictionary [, optional name]]) Either you put the argument 'template_name' into the archive_info dict or you make two

Re: URLs Syntax Error

2008-09-03 Thread mccomas . chris
i believe you need a comma after archive_info and before {'template_name': 'blog/archive.html'} On Sep 3, 7:40 am, djandrow <[EMAIL PROTECTED]> wrote: > Can no one help me with this, its just these two lines: > >  (r'^archive/$', date_based.archive_index,archive_info > {'template_name':

Re: URLs Syntax Error

2008-09-03 Thread mccomas . chris
right. could do dict(archive_dict, {'template_name': 'blog/archive.html'} ) On Sep 3, 8:40 am, Daniel Hepper <[EMAIL PROTECTED]> wrote: > Adding a comma will probably not help, because you then have 5 values in > the tuple, but the expected format is: > > (regular expression, Python callback

Re: URLs Syntax Error

2008-09-03 Thread djandrow
Can no one help me with this, its just these two lines: (r'^archive/$', date_based.archive_index,archive_info {'template_name': 'blog/archive.html'}), (r'^archive/(?Pd{4})/?$',date_based.archive_year, archive_info {'template_name': 'blog/archive.html'}), Please? Andrew

  1   2   >