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:
>
> >>>
> 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
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" :
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]>
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
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
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
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
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
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
:
> > 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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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
('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
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
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"
101 - 131 of 131 matches
Mail list logo