Hi
I think a 'problem' of Django is that it is produced by programmers
and doesn`t mention that programming is the minor important part of a
successfull site.
Far more important is content and the visual way content is presented
in a brain catching way to the customer.
Both isn`t comprised in
django template"
in the future :)
If there is a more elegant way to solve this, just tell me. I'm always
eager to learn more!
Best regards,
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django user
Thanks Andy for the help and Alex for clarifying. I'll do as Andy said
and denormalize the data and add a comments counter field to the entry
model.
(Deconfuse: I changed my display name from Marlun to my whole name
after creating this thread.)
-Martin
On May 16, 3:58 pm, Alex Gaynor
Hi,
You can define a custom save_models method in the ModelAdmin class
you're associating with your Post class (i.e. in your admin.py file
for the app in which Post resides). You can then access the user from
the request (request.user).
More info available at:
http://docs.djangoproject.com/en/d
I'm having an interesting problem. After inserting a bunch of records
into my database ( about 400,000), it the database starts refusing
connections. Even after restarting the database daemon, I can not
query the database (django lets me query, but returns nothing in the
querysets). The only me
I'm interested in projects that have used Django with an xml database
such as eXist or Berkeley. I'm aware of one project along those lines
but would like to find out about others.
It is easy to imagine projects that combine data some of which are
more easily stored in XML and some in SQL. If the
Hello,
Should the years variable contain dates for years in the future (if
I've got posts in the future) if I have NOT set allow_future to True?
Right now it is being displayed and the link which I create using /
{{d.year}}/ links to a page giving 404 error.
-Martin
--
You received
I am very new to Django but can't this be handled by middleware
instead? It should have access to user and page data should it not?
-Martin
On Thursday, November 19, 2009, Fabio Natali
wrote:
> Hi there!
>
> I have a Django based website with a few dozen users. Only logged
> us
You can limit your search by year, month or day.
See http://docs.djangoproject.com/en/dev/ref/models/querysets/#year
On Nov 20, 1:59 pm, Simon wrote:
> Hi all,
>
> I am sure this must be a real noob question as it's so easy to do in
> SQL.
> I am trying to replicate something like the following
Is it not that you forget to give the published property a value?
On Sat, Nov 28, 2009 at 9:07 AM, onoxo wrote:
> Hi!
>
> when i go to create Actual class. i get this error:
> Cannot assign None: "Actual.published" does not allow null values.
>
> and it makes this error with each class that has
ation backends works
sounds like the perfect fit.
Regards,
-Martin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django
That will improve the situation a lot, thanks! It doesn't change the fact
that it would feel more correct to have it in an authentication backend :)
On Mon, Apr 26, 2010 at 5:40 PM, Joe wrote:
>
> On Apr 26, 5:42 am, Martin Lundberg wrote:
> > I was told to create a middlewar
Hello,
I've source the django_bash_completion script but when I try to use it
by hitting TAB I get this:
$ django-admin.py heType 'django-admin.py help' for usage.
I hit tab after 'he' but it is not working and I get the above message
instead.
Any idea what I'm
or your answers,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more opt
Anyone on OSX who has had this same problem? I'm going crazy here. Would
really want it to work since it would make it much easier to use
django-admin.
On Thu, Apr 29, 2010 at 12:01 AM, Martin Lundberg wrote:
> Hello,
>
> I've source the django_bash_completion script but w
Thanks, at least I know that it should work. Could it be that I don't have
bash-completion installed on osx? I've tried to install it with brew and it
seemed to work but I'm not sure if it is in fact installed and working and
I'm not sure how to test if it is.
-Martin
On Fr
". ~/Sources/django-trunk/extras/django_bash_completion"
if I run "printenv" DJANGO_AUTO_COMPLETE is not shown.
-Martin
On Fri, Apr 30, 2010 at 11:17 AM, Daniel Roseman wrote:
> On Apr 30, 7:55 am, Martin Lundberg wrote:
> > Thanks, at least I know that it should wor
I looked in the django_bash_completion script but didn't understand much.
Anyone who has any idea of what could be wrong? Why DJANGO_AUTO_COMPLETE is
not in the list of environment variables?
-Martin
On Fri, Apr 30, 2010 at 7:21 PM, Martin Lundberg
wrote:
> I'm taking a look i
neric.list_detail.object_list',
currency_by_date.update({"template_name":
"profil_spolocnosti.html"})),
...
If I have to use custom views what is the best way to include above
queryset result into templates without repeating it over every view?
Thank you for yo
x27;static2.site.com',
'static3.site.com' ]
I've been searching through the group, documentation and online but
couldn't find anything that addressed the subject.
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups
"Django users&q
r the answer,
Martin
On Jun 7, 10:46 am, Steven L Smith wrote:
> Hi Martin-
>
> I don't know what the "official" answer would be, but you could write your own
> context processor that had something like:
>
> from random import choice
> MEDIA_URLS = 's
Hi,
(Apologies in advance for the spam)
Our company, repustate.com, just launched our new natural language
processing API. It's totally open & free and is powered by Django. To
kick off our launch, we're having a contest to see who can create the
best mashup using our API and any others on the we
s.
I'll post a solution that I coded on my own, though I haven't yet
benchmarked it.
Best,
Martin
On Jun 8, 11:01 am, Steven L Smith wrote:
> Looks like my email client screwed up the indentation I've added some
> indents...
>
> random_media.py
> --
__unicode__(self):
self.current_url += 1
self.current_url %= len(self.media_urls)
return self.media_urls[self.current_url]
def context_proc (req):
return {'MEDIA_URL': RoundRobinMediaUrl()}
On Jun 11, 3:09 pm, Martin Siniawski wrote:
> Steven,
>
> T
I posted?
Best,
Martin
On Jun 8, 11:29 am, Alex Robbins
wrote:
> I haven't tested this, but it seems like you could do it one of two
> ways:
>
> Define media root as a function in your settings.py. If you pass a
> callable to the template, it will be called.
> MEDIA_ROOTS = [
know how to use it
for that thing. What should I do in a middleware to have e.g {{ news }}
template variable containing last x news?
Thanks for your advices,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this gr
g or Photo gallery or whatever you want and ask
for a help on specific problem you encounter during development, there are
many good people who will help you.
Regards,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To pos
On Thu, 08 Jul 2010 18:07:58 +0200, Martin Tiršel
wrote:
Hello,
I am programming a small CMS on Django, I have editable pages, now I
want to add news. I have a website where I want to display these news on
every page in right/left column. I have following questions:
1.) Where is the
ail to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
Best regards
Martin Melin
--
You received this message be
ALLED_APPS ?
Regards,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more
Hello,
if I use
prepopulated_fields = {"page_slug": ("page_title",)}
all spaces are replaced with hyphens. If I would like to use underscores
instead, is there a way how to change it?
Thanks,
Martin
--
You received this message because you are subscribed to the G
bject (e.g. "gal"), can I access to Image through
Gallery? Something like gal.Image[0] for first image in the gallery.
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-u
are right.
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more
On Mon, 19 Jul 2010 00:50:04 +0200, Martin Tiršel
wrote:
Hello,
I have:
class Gallery(models.Model):
...
class Image(models.Model):
gallery = models.ForeignKey(Gallery)
...
Now, on some page, I am listing all galleries and I want for every
gallery first three
Hi,
I'm having problems with running ./manage.py test. When it is running
some South migrations I'm getting this error: ValueError: Cannot
import the required field 'tagging.fields.TagField'. I don't know how
to fix it.
-Martin
--
You received this message because
No one who knows what could be causing it not to find the TagField
field? Do I have to do something special for South to find it? I don't
have any trouble with the field when it is used by django. Atleast not
what I've noticed.
On 23 Juli, 16:13, Martin Lundberg wrote:
> Hi,
&
wever the change to django-taggit does not seem to be picked up by
South. not I've got
tags = TaggableManager(), instead of the tagging TagField but when I
run a schemamigration check it finds nothing.
-Martin
On 25 Juli, 11:53, Martin Lundberg wrote:
> No one who knows what could be caus
out python path, eggs, *.pth files,
you will need this knowledge to understand how this whole import machinery
works, else it will be very confusing.
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group
and) or manualy alter table with SQL commands.
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr
me some examples I can learn from? Or perhaps
another approach to solve this problem.
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscrib
locale directory to all
possible places (minicms, minicms/plugins, userproject, ...) but
everything is only in english :(
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to
On Mon, 26 Jul 2010 03:46:10 +0200, Lachlan Musicman
wrote:
On Mon, Jul 26, 2010 at 11:16, Martin Tiršel wrote:
Gah, my eyes were closed.
Have you also added the appropriate Middleware product?
As you see here:
http://docs.djangoproject.com/en/dev/topics/i18n/deployment/#topics-i18n
s the tutorial goes, adding your newly created app to
INSTALLED_APPS is covered right here:
http://docs.djangoproject.com/en/dev/intro/tutorial01/#activating-models
Cheers,
Martin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
endif %}
{% endfor %}
What I have to do to add the label suffix?
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send e
dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.raw_id_fields
Cheers,
Martin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send
m?
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more optio
, but is it possible in template too?
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-user
away.
I'm curious to know if someone know why this was a problem?¨
-Martin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email
if self.request:
obj.user = self.request.user
obj.save()
class Meta:
model = Task
kwargs in __init__ is empty
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this
I will answer myself. The solution is ModelAdmin.save_model(...) method:
class TaskAdmin(admin.ModelAdmin):
exclude = ('user', )
def save_model(self, request, obj, form, change):
obj.user = request.user
obj.save()
Martin
On Wed, 18 Aug 2010 02:01:33 +02
hanks.
Martin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more opti
way, but I have my reasons why I am doing it so.
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email
n the documentation:
"(The caveat with using variables or computed values, as in the previous
two examples, is that Django's translation-string-detecting utility,
django-admin.py makemessages, won't be able to find these strings. More on
makemessages later.)"
But there is no &
don't know
about?
Thanks,
Martin
On Thu, 02 Sep 2010 17:03:01 +0200, Tom Evans
wrote:
On Thu, Sep 2, 2010 at 2:15 PM, Martin Tiršel
wrote:
I tried to create second .po file with manual translations, but had no
luck
either :( `compilemessages` creates the second .mo file, but doesn
I solved it by creating a new python file with:
# -*- coding: utf-8 -*-
from django.utils.translation import ugettext as _
translation_strings = [
_(u'string'),
_(u'another string'),
...
]
So easy :)
Martin
On Thu, 02 Sep 2010 13:33:36 +0200, Martin Tirše
Hi,
I understand that you can use whatever templating engine you so wish
with django, so if you feel that Mako or Genshi is better for you, you
can plug them into django and start using them. It might help to know
that Guido Van Rossum actually prefers django templates :)
Regards,
Martin
Hello,
I have a list of images from database I need to print in a table and this
seems to be more difficult as I expected. Is there an easy way how to
print results into table? Number of collumns depends on a constant in
settings.
Thanks,
Martin
--
You received this message because you
Thanks, this looks better, but one more thing - If I have for example 3
columns and 13 images, I end with:
what is not a correct table. I need to insert two more TDs or one with
colspan. Is there a solution for this?
Martin
On Thu, 30 Sep 2010 14:31:48 +0200, Xavier Ordoquy
wrote
Sorry, my bad, I thought that it has to be completed, so it is ok. Problem
would be only if I wanted to make cell borderds, around the empty cells
too.
Thanks,
Martin
On Thu, 30 Sep 2010 14:53:11 +0200, Carlton Gibson
wrote:
I think it's not a problem.
I just ran this via the (
ndfor %}
Martin
On Thu, 30 Sep 2010 15:29:58 +0200, aid wrote:
On Sep 30, 2:14 pm, Martin Tiršel wrote:
Sorry, my bad, I thought that it has to be completed, so it is ok.
Problem would be only if I wanted to make cell borderds, around the
empty cells too.
For the cells you don'
e you're describing is to
have a standalone script that runs periodically, triggered by cron.
For info on writing scripts that have access to your Django project's
models etc., have a look at Google's results for "django crontab" or
similar.
Good luck!
Best regards,
Marti
; How can I achieve this?
http://docs.djangoproject.com/en/dev/ref/models/fields/#help-text
Regards,
Martin Melin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscri
ge password" at
http://127.0.0.1:8000/admin/auth/user//password/ does not work
anymore: "user object with primary key u'/password' does not
exist."
How can I enable viewing / editing of user profiles while preserving
the original password functionality?
Regards,
Mart
Oh, thanks! Actually, it's much simpler this way.
On Oct 13, 12:29 pm, Jonathan Barratt
wrote:
> On 13 ต.ค. 2010, at 17:19, Martin Burger wrote:
>
> > Hello,
>
> > I implemented a user profile that is activated via AUTH_PROFILE_MODULE
> > in settings.py. In order
ld and new values, but I don't know how how to call a code after
load.
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this
First, I thought that I don't need all the functionality provided by
similar applications but after I spend some hours trying to do it myself
not being very successfull, I tried this app and after five minutes all
was up and running :)
Thanks,
Martin
On Sat, 30 Oct 2010 15:03:48
don't
know, where I should put the code. It have to be after all models are
saved, but where/when is it?
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googl
What about checking the raw POST for existence of data? So in your
form, checking self.data.has_key('some_key')
On Nov 8, 9:15 am, "Yo'av Moshe" wrote:
> Hey,
>
> I tried this method with no success.
>
> Adding .clean to my Article's ModelForm and checking it's
> self.instance.tags.all(), gives m
On Sun, 31 Oct 2010 20:15:19 +0100, Daniel Roseman
wrote:
On Oct 31, 4:46 pm, Martin Tiršel wrote:
If this is only needed for the admin, you probably want to override
the ModelAdmin's response_add method. This is called after the add
form has been processed and all the resulting ob
>
> Any hints?
I assume that the rest of the admin is working?
What version of Django are you using?
Have you done anything out of the ordinary in urls.py?
The problem seems to be that there is no URL pattern for the password
change form, which means the user edit URL pattern will
m/en/dev/ref/settings/#std:setting-LOGIN_URL
i.e. you should be using settings.LOGIN_URL and not
django.contrib.auth.LOGIN_URL since at least 1.0
Cheers,
Martin Melin
>
> The server says: GET /accounts/login/?login/=/save/ HTTP/1.1 404 2273
> I assume that it is going the path:
>
> /
x
>
> with 'startproject' highlighted. The django-admin.py file is in the
> directory I changed to.
django-admin.py is a program that should be run in your OS shell, not
in a Python interpreter which it looks like you're trying to do here.
Regards
Martin Melin
--
You received this
ent hostnames and when CSS files must be included from a
number of subdirectories.
What is the easiest solution?
Thanks
Martin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegro
Perhaps somebody could explain exactly what's going on.
I have a form whose labels are translatable strings:
class MyForm(forms.Form):
field1 = forms.CharField(label=_('Label 1'), max_length=20)
I generated the .po files, supplied the translations, generated
the .mo files, added the proper m
else:
return error_handler(u'Account disabled')
else:
return error_handler(u'Invalid login or password')
else:
return error_handler(u'Invalid input')
else:
form = LoginForm()
ulo
Yes and I forgot to mention, that I am a Python beginner too :) I had to
change the variable name and the function name (def login(request)) too.
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to
(administration
and customer parts are applications). Is there a way how to use Django's
features or I have to create custom decorator to check if the user is
logged in? Or I have to create separate project for internal and customer
access sharing the same database?
Thanks,
Martin
-
Hi,
I've never gotten any errors when using the admin pages untill today.
I am using Django 1.1. Not sure what information you guys need but
here is the error:
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/timetrack/work/
Django Version: 1.1.1
Python Version: 2.6.4
In
Thanks Thomasz! You were correct. It was my __unicode__ function in my model
which did something wrong.
2010/4/5 Tomasz Zieliński
>
>
> On 5 Kwi, 10:25, Martin Lundberg wrote:
>
> > File "/home/marlun/.virtualenvs/django/lib/python2.6/site-packages/
> > django/temp
Ah, great! Do you know the ticket or changeset for it? Curious to peek and
learn a little :)
On Mon, Apr 5, 2010 at 2:23 PM, Karen Tracey wrote:
> 2010/4/5 Tomasz Zieliński
>
>> that 'raise wrapped' line is placed in catch-all handler, which
>>
>> means that
>> probably some of your code called
.
Thanks in advance!
-Martin Lundberg
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@goog
and FreeBSD
6.0 with a manual install of PIL 1.1.6, so there might still be some
issues with the code.
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
ites many captchas
over each other for testing purposes. (so you can adjust width and
height of your captcha according to your font settings)
Hope you like it,
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
se I think, I'll stick with images in the filesystem.
In my opinion it's fast for most sites even with auto_cleanup, and for
really high volume sites just disable auto_cleanup, use your own
cronjob, and everything should be ok. Right now, I just can't see a
benefit i
runk soon? (can someone of the core developers inform me how
the chances are?)
Martin
--~--~-~--~~~---~--~~
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@go
Am Thu, 14 Jun 2007 14:53:42 -0700
schrieb "Evan H. Carmi" <[EMAIL PROTECTED]>:
> {{% object.title %}}
> {{% object.body %}}
this is a syntax error and should be:
{{ object.title }}
{{ object.body }}
They are variables, and not tags.
just check http://dja
chment
uploads, because in my opinion this is a very nice solution: After
choosing a file to upload, a new "Browse" button appears.
For me that would really be enough - please can you leave your current
behaviour at least as a fallback solution?
Martin
--~--~-~--~~--
any functions: from simple
pie charts (3D too) up to finance charts which gets data from
finance.yahoo.com
I took quite some time until I figured how matplotlib/pylab works, but
eventually I succeeded. Hopefully you'll get to some good results
f
I'm working on learning Django, and I'm having trouble getting a basic
"todo" app working.
I'm listing all my todo items in my template, with a checkbox next to each
one for "done".
I have an update button that goes to a view that updates all the item's done
values.
But, it's not working. It d
ECTED]> wrote:
>
>
> Nathaniel:
>
>
> On Jun 22, 3:42 pm, "Nathaniel Martin" < [EMAIL PROTECTED]> wrote:
> > I'm working on learning Django, and I'm having trouble getting a basic
> > "todo" app working.
> >
> > I'm lis
oftware design bug when one record in a table exceeds 5 MB?
If you have binary data, why don't you use FileField and ImageField?
That way you'd store the large data in the filesystem and only have a
reference to the file in the database.
Just my 2 eurocent
Martin
--~--~-~--~-
Am Tue, 3 Jul 2007 17:34:33 +0200
schrieb Martin Winkler <[EMAIL PROTECTED]>:
> If you have binary data, why don't you use FileField and ImageField?
> That way you'd store the large data in the filesystem and only have a
> reference to the file in the database.
M
Am Wed, 04 Jul 2007 01:19:16 -0700
schrieb lastmohican <[EMAIL PROTECTED]>:
> The Problem is, I want a dynamic image
> storage path, something like MEDIA_ROOT+"images/" wont work with
> hundreds of galleries, [...]
Since your primary concern seems to be too many files in one directory,
did you c
Hi there!
How can I configure django to put the session (request.session) in all
templates?
I want to put a 'Hello Username' for logged in Users, and I want to do a
dynamic login/logout button into the menu, depends on if there is a
logged in user or not.
Thanks,
Martin
sig
Am Mittwoch, den 11.07.2007, 12:26 -0400 schrieb Simon Drabble:
> On Wed, 11 Jul 2007, Martin Kaffanke wrote:
>
> > Hi there!
> >
> > How can I configure django to put the session (request.session) in all
> > templates?
> >
> > I want to put a 'Hel
Am Mittwoch, den 11.07.2007, 13:34 -0400 schrieb Simon Drabble:
> On Wed, 11 Jul 2007, Martin Kaffanke wrote:
>
> > Am Mittwoch, den 11.07.2007, 12:26 -0400 schrieb Simon Drabble:
> >> On Wed, 11 Jul 2007, Martin Kaffanke wrote:
> >>
> >>> Hi there!
>
Am Donnerstag, den 12.07.2007, 10:46 +0800 schrieb Russell Keith-Magee:
> On 7/12/07, Martin Kaffanke <[EMAIL PROTECTED]> wrote:
> > At the moment I use on some places a
> >
> > {'session': request.session} for the Context to render the template.
> &
your urls.py:
(r'^static/(?P.*)$', 'django.views.static.serve',
{ 'document_root': '/home/sodrian/versatility/static' }),
as your last entry in the urlpatterns = patterns( ... )
(Untested, hope you figure out troubles if there are any.)
cheers,
Martin
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
I think my post got lost last night... So here's my question again:
- Original Message -
From: django-users@googlegroups.com
To: Django users
Sent: Mon Jul 23 20:53:49 2007
Subject: Trouble with last bit of Tutorial
I'm trying to put the last bit on the tutorial. I'm running django
0
ange(128)
I am using the django trunk. Any ideas what I am doing wrong?
Thanks,
Martin.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us
101 - 200 of 565 matches
Mail list logo