Re: URLs Syntax Error

2008-09-03 Thread mccomas . chris
try it without the {} (r'^$','archive_index', dict(archive_dict, template_name='blog/ archive.html')), On Sep 3, 9:07 am, Daniel Hepper <[EMAIL PROTECTED]> wrote: > > could do dict(archive_dict, {'template_name': 'blog/archive.html'} ) > > I don't think it's that easy. I get this: > > >>>

Re: URLs Syntax Error

2008-09-03 Thread Daniel Hepper
> could do dict(archive_dict, {'template_name': 'blog/archive.html'} ) I don't think it's that easy. I get this: >>> dict(archive_dict, {'template_name': 'blog/archive.html'} ) Traceback (most recent call last): File "", line 1, in TypeError: dict expected at most 1 arguments, got 2 The

URLs Syntax Error

2008-09-02 Thread djandrow
Hi, I have the following URLs.py from django.conf.urls.defaults import * from akonline.views import current_datetime from django.views.generic import date_based from akonline.blog.models import Category, Entry archive_info = { "queryset" : Entry.objects.all(), "date_field" :

Re: Unaccountable syntax error

2008-08-30 Thread Leaf
Of course. I just look at the error actually occurs on, not the context. I guess even Python's awesome debugging still has limits. What happened was that I forgot a parenthesis at the end of the previous line. Thanks for giving me the tip. On Aug 30, 9:57 am, "Karen Tracey" <[EMAIL PROTECTED]>

Re: Unaccountable syntax error

2008-08-30 Thread Karen Tracey
On Sat, Aug 30, 2008 at 9:50 AM, Leaf <[EMAIL PROTECTED]> wrote: > > I'm having a problem when I try to validate my models. The interpreter > somehow takes offense at this line: > >box_text_color = models.ColorField("Box Text Color") > > I'm using a custom "ColorField" here. What I don't

Unaccountable syntax error

2008-08-30 Thread Leaf
I'm having a problem when I try to validate my models. The interpreter somehow takes offense at this line: box_text_color = models.ColorField("Box Text Color") I'm using a custom "ColorField" here. What I don't understand is that it seems almost identical to this ColorField, which it did

Re: Unexplainable syntax error

2008-07-07 Thread Daniel Ellison
Errors like that usually indicate errors further up in your code. if you have pasted line 10 properly, you're just missing a closing parenthesis. On Jul 7, 2:43 pm, Leaf <[EMAIL PROTECTED]> wrote: > After resolving the URLConf problem, I wrote some views without > templates to make sure that I

Re: Unexplainable syntax error

2008-07-07 Thread Karen Tracey
On Mon, Jul 7, 2008 at 2:43 PM, Leaf <[EMAIL PROTECTED]> wrote: > > After resolving the URLConf problem, I wrote some views without > templates to make sure that I had the syntax right. When I tried to > visit localhost:8000/styles/css/classic-b-and-w/ again, I recieved the > error "SyntaxError

Unexplainable syntax error

2008-07-07 Thread Leaf
After resolving the URLConf problem, I wrote some views without templates to make sure that I had the syntax right. When I tried to visit localhost:8000/styles/css/classic-b-and-w/ again, I recieved the error "SyntaxError at /styles/css/classic-b-and-w/ - invalid syntax (views.py, line 12)". The

Re: Syntax error: "can't assign to operator"

2008-07-07 Thread bruno desthuilliers
On 5 juil, 04:33, Leaf <[EMAIL PROTECTED]> wrote: > Okay. I'll run a quick find-and-replace to set all my identifiers to > use underscores instead of hyphens. I'm not that familiar with Python, > so I assumed that it would recognize hyphens as a seperator and not a > minus sign. There are very

Re: Syntax error: "can't assign to operator"

2008-07-04 Thread Leaf
: > >     Style-Name = models.CharField("Style Name", Max_length = 32, > > Default = "Styles Upon Styles", Help_text = "A user-friendly name for > > the style.") > > > Before resyncing the database, I hit the "Check Syntax" but

Re: Syntax error: "can't assign to operator"

2008-07-04 Thread Malcolm Tredinnick
eld("Style Name", Max_length = 32, > Default = "Styles Upon Styles", Help_text = "A user-friendly name for > the style.") > > Before resyncing the database, I hit the "Check Syntax" button in > PythonWin, and it returned "syntax error - c

Syntax error: "can't assign to operator"

2008-07-04 Thread Leaf
les", Help_text = "A user-friendly name for the style.") Before resyncing the database, I hit the "Check Syntax" button in PythonWin, and it returned "syntax error - can't assign to operator (models.py, line 37)". Line 37 is the one beginning with Style-Name. I tri

Re: Syntax Error (line out of range), get_callable, urlresolvers

2007-12-30 Thread l5x
On Dec 31, 12:19 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Is 534 one past the last line of views.py? Yes. > I expect you have a syntax error > such as a missing closing paren or bracket in your views.py file, which is > causing the parser to keep scann

Re: Syntax Error (line out of range), get_callable, urlresolvers

2007-12-30 Thread Karen Tracey
t; Is 534 one past the last line of views.py? I expect you have a syntax error such as a missing closing paren or bracket in your views.py file, which is causing the parser to keep scanning until it reaches the end of the file and then report the error on one line past the end of the file. The er

Syntax Error (line out of range), get_callable, urlresolvers

2007-12-30 Thread l5x
ption Type: SyntaxError at / Exception Value: invalid syntax (views.py, line 534) Interesting thing is that line (534) is out of range... When I'm trying to visit admin page, I get Syntax Error with the same line and: Traceback: File "/home/user/django_src/django/core/handlers/base.py&q

Syntax error in file upload

2007-10-05 Thread jacoberg2
Hey, I've been working on this view for a while and I keep hitting road blocks, the newest one actually hits the save method in my view, but stops on a weird syntax error. This is the traceback. Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/han

Re: Apache + Django - syntax error

2007-09-06 Thread David Reynolds
On 6 Sep 2007, at 11:06 am, b3n wrote: > I wasn't sure if the syntax was different for Unix/Windows. I think it > would be helpful if the tutorial made a statement to that effect. Surely not saying anything implies that there are no differences between the two? -- David Reynolds [EMAIL

Re: Apache + Django - syntax error

2007-09-06 Thread b3n
I wasn't sure if the syntax was different for Unix/Windows. I think it would be helpful if the tutorial made a statement to that effect. On 29 Aug, 23:39, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Aug 29, 11:06 pm, b3n <[EMAIL PROTECTED]> wrote: > > > Hey I managed to get Apache to find

Re: Apache + Django - syntax error

2007-08-29 Thread Graham Dumpleton
On Aug 29, 11:06 pm, b3n <[EMAIL PROTECTED]> wrote: > Hey I managed to get Apache to find Django! > > > SetHandler python-program > PythonHandler django.core.handlers.modpython > PythonPath "['C:\Python'] + sys.path" > SetEnv DJANGO_SETTINGS_MODULE bookmarks.settings >

Re: Apache + Django - syntax error

2007-08-29 Thread b3n
Ahh never mind. I hadn't started the MySQL server. Doh. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from

Re: Apache + Django - syntax error

2007-08-29 Thread b3n
Hey I managed to get Apache to find Django! SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath "['C:\Python'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE bookmarks.settings PythonDebug On Now I get a nice Django-styled error instead of the

Re: Apache + Django - syntax error

2007-08-29 Thread b3n
Still says a syntax error when I navigate to http://localhost/ MOD_PYTHON ERROR ProcessId: 1420 Interpreter:'localhost' ServerName: 'localhost' DocumentRoot: 'C:/xampp/htdocs' URI:'/' Location: '/' Directory: None Filename: 'C:/xampp/htdocs

Re: Apache + Django - syntax error

2007-08-29 Thread daev
Try simple: PythonPath "C:\Python" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email

Apache + Django - syntax error

2007-08-29 Thread b3n
I'm trying to get Django working on my local Apache (v2). I'm on Windows XP. SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE bookmarks.settings PythonDebug On PythonPath "C:\Python\bookmarks" If I take out PythonPath I

Re: Syntax error with render_to_response call

2007-01-25 Thread Tipan
Hi Christian, I think you are right, I was using a PHP IDE as my editor and when I reverted to Notepad, it showed a different layout. I modified it and it worked fine. Really frustrating and such a waste of time. Is there a popular IDE that makes editing quick and easy? Tim

Re: Syntax error with render_to_response call

2007-01-25 Thread Christian Joergensen
gt; return HttpResponseRedirect("/hive/codeoutput/") > else: > errors = new_data = {} > code_list=CodeTest.objects.all() > return render_to_response('codeview.html', {'code_list':code_list}) > > This always generates a Django Syntax Error on the retur

Syntax error with render_to_response call

2007-01-25 Thread Tipan
of data in the table and displays another page. However, I get a Syntax error from my render_to_response line in the function. Code is as follows in View.py: def codeview(request): manipulator = CodeViewManipulator() if request.method == 'POST': new_data = request.POST.copy

get_absolute_url syntax error ?

2006-11-13 Thread Kamil Wdowicz
('adress URL', prepopulate_from=("title",)) in_menu = models.BooleanField() (line:35)def get_absolute_url(self): return "/p/%s/" % self.slug Syntax Error in line 35 hmm who can help me ? Its not a

Re: syntax error with tutorial1 in "python manage.py sql polls" step

2006-03-25 Thread bruno modulix
maphew a écrit : > Hi, at the ''python manage.py sql polls'' step of the > [http://www.djangoproject.com/documentation/tutorial1/ poll tutorial] I > get a syntax error: (snip) > mod = __import__('django.models.%s' % submodule, '', '', ['']) > File "/home/matt/code/djtu

syntax error with tutorial1 in "python manage.py sql polls" step

2006-03-24 Thread maphew
Hi, at the ''python manage.py sql polls'' step of the [http://www.djangoproject.com/documentation/tutorial1/ poll tutorial] I get a syntax error: {{{ [EMAIL PROTECTED]:~/code/djtutor$ python manage.py sql polls Traceback (most recent call last): File "manage.py"

<    1   2