How about rewriting save method complately and make additional
condition in WHERE clausule like this:
UPDATE ... WHERE id=666 AND mtime=object_mtime
Checking number of updated rows would give you information about
success and would guarantee that there is no data manipulation between
mtime che
I'd integrate javascript WYSIWYG editor like FCKEditor or TinyMCE to
edit TextField type fields.
--~--~-~--~~~---~--~~
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@
Theres earlier similar discussion.
http://groups.google.com/group/django-users/browse_frm/thread/d6e7eab4cc81c7b8
For unlimited landuage support check my post at this thread.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
I just got new idea that maybe I should use custom template tags to
call processing of all common subpage components. That would be even
more efficient and flexible, because I could have many different
premade templates to choose from in admin panel and each of them
having different set of compone
I'm quite new to django/python (migrating from php). I've been
developing cms-like web applications for years now. Now I'm trying to
create quite advanced CMS using django. Lately I moved from doing
simple tests in django to tearing other peoples django apps into
pieces to get the idea of best pra
I think that better idea would be doing something like that (I'm using
even more complicated models myself):
class Page(models.Model):
#parent page in tree of pages
parent = models.ForeignKey('self', related_name="children",
blank=True, null=True)
slug = models.SlugField(u
Thanx all for explanations :)
--~--~-~--~~~---~--~~
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 to [EMA
theres line of code in tutorial:
Poll.objects.all().order_by('-pub_date')[:5]
this gives 5 Poll objects. I wonder if this is efficient way of
getting them? Does django get all rows first and then sort it and then
slice it to get only 5? Or is it optimized somehow. The question is if
its simplifi
This was one of my most stupid problems. PyDev with RSE was not saving
file fo linux virtual machine correctly and this caused the problem.
Thank you for all the help. I hope, I'll come up with wiser problems
next time ;)
--~--~-~--~~~---~--~~
You received this mes
On Jan 18, 2:01 am, Rock <[EMAIL PROTECTED]> wrote:
> The templates have to be within a directory named "templates" found in
> the /var/www/ directory.
> BUT DON'T PUT TEMPLATES THERE! Put the templates dir in the same
> directory as your settings.py
> file and set the path accordingly in the se
On Jan 18, 1:11 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Jan 17, 2008 2:08 PM, code_berzerker <[EMAIL PROTECTED]> wrote:
>
[...]
> Check the value of settings.__file__ from python manage.py shell after
> importing settings, just to make sure it is u
> So, though the settings.py you posted has TEMPLATE_DIRS with your '/
> var/www...'directory listed, the one you are running with has no
> TEMPLATE_DIRS.
Yes I've noticed that, but I use settings.py listed above. Django uses
db configuration from that file and other things too. Somehow
TEMPLATE
Trying to solve the problem I added following code to settings.py:
ALLOWED_INCLUDE_ROOTS = (
'/var/www',
)
but it didnt help.
I skipped this error for a bit and continued with tutorial and heres
backtrace of what happened later and also my settings.py content.
*
On Jan 17, 5:33 am, Collin Grady <[EMAIL PROTECTED]> wrote:
> On Jan 16, 11:22 am, code_berzerker <[EMAIL PROTECTED]> wrote:
>
> > I put my templates somewhere in /var/www/ just beside project code and
> > media files.
>
> If /var/www is a web root, you
On Jan 16, 8:36 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> 1. settings.TEMPLATE_LOADERS contains the entry
> django.template.loaders.filesystem.load_template_source before the
> entry django.template.loaders.app_directories.load_template_source
the order is correct
> 2. the path specified in
In Django Tutorial02 theres TEMPLATE_DIRS setting with path to
templates. I copied some admin templates doing exactly as tutorial
says.
I'm using current SVN Django build.
I put my templates somewhere in /var/www/ just beside project code and
media files.
What may be the reason that django doesn
16 matches
Mail list logo