Hi,
As far as I know, you can not do it.
You are better using the generic views and crafting an add/update view
of your own.
Hope it helps,
G
On 2/28/07, Mary <[EMAIL PROTECTED]> wrote:
>
> Please any help will be appreciated i have a very soon deadline :(
>
> Thank you in advance;
> Mary Ade
Hi,
Try this (http://code.djangoproject.com/wiki/NewbieMistakes):
Django says "Unable to Open Database File" when using SQLite3 ¶
Problem ¶
You're using SQLite3, your DATABASE_NAME is set to the database file's
full path, the database file is writeable by Apache, but you still get
the above erro
Hi,
> This has been asked several times, but I am not clear on how people
> are solving it. From what I understand so far, a setting called
> "TEMPLATE_CONTEXT_PROCESSORS" can be tweaked to make this possible.
> However, I'm not seeing a clear way to do that.
A context processor is nothing more
Hi,
I have some web sites where some identification is needed. In those,
when I log in and do not explicitelly log out, I keep logged for days
and days, and when I go back to the page I'm still logged in.
i guess (and it's only a guess) that, because the authentification
work with sessions, you'
Maybe you need the allow_empty=True option in your urls.py.
G
On 1/20/07, Panos Laganakos <[EMAIL PROTECTED]> wrote:
>
> I'm using Django 0.95 release.
>
> I've got a simple blog, which I wanna move to generic views.
>
> in settings.py:
> TEMPLATE_DIRS = (
> '/home/panos/projects/panos/templ
In that case, the problem seems to be in your urls.py file.
The fact is, the name of yur app does not have to be the name of the
url to access your app.
I mean, you can have an app called 'fun' and access it as /fun/,
/now/, /whatever/,... this will be defined in urls.py.
Now, did you try to a
Hi,
You are simply supposed to run Apache (/etc/init.d/apache2 start) and,
if well configured, mod_python will take care of everything. With
Apache, you're not supposed to use manage.py in any way.
The thing you must think about is to add a web server to, well...
serve the /media files. For tha
Mmm... it's a bit confusing. If I get you, you have 2 projects.
Project1 has 2 apps that you would like to reuse in Project 2.
And you have 2 different DB, one for each. And you are wondering how
the projects will differenciate them?
There is right now a thread about project and application
dif
I place my templates inside the "app_name/templates/app_name"
directory. It seems template search path look for the template on this
directory first. So, to decouple the app, templates should be inside it
I think.
But what would happen in this case if two sites use very different
templates for
Hi,
I use SQlite with Apache mod_python for my (low traffic) web sites. I
find it really easy to manage, and it works just great up to now. It
has never crashed in 3 months, can accept several users concurrently,
is fast and has minimum configuration. I would recommend it for
development and lim
Hi,
I added it to the wiki, in a page linked to:
http://code.djangoproject.com/wiki/ServerArrangements
in a new index called "FastCGI init scripts" as you proposed.
Thanks,
G
On 1/12/07, Michael Radziej <[EMAIL PROTECTED]> wrote:
Hi,
could you put this into the wiki? This type of stuff is
Hi,
I've done something very similar myself and I've found the python
module 'calendar' very useful, specially the monthcalendar function.
If you're using the 2.5 version, they have the HTMLCalendar class,
that looks also very promising :-)
If you are interested in the specific code, send me a
must be started
#in a very specific way with manage.py. This must be done
#for each DJango web server that has to run.
### END INIT INFO
#
# Author: Guillermo Fernandez Castellanos
# <[EMAIL PROTECTED]>.
#
# Version: @(#)fastcgi 0.1 11-Jan-2007 [EMAIL PROT
Hi,
Another option that has been considered by more and more people is Nginx.
This page it's in polish, but the configuration files are pretty understandable:
http://www.python.rk.edu.pl/w/p/django-pod-serwerem-nginx/
A podcast is here:
http://mx.bw.rulez-forever.com/Django-Nginx-FastCGI-screenca
If you want only registered people to use comments use Comments
instead of FreeComments.
G
On 12/15/06, Milan Andric <[EMAIL PROTECTED]> wrote:
>
> In my urls.py, following the wiki docs on FreeComment, I'm using
> (r'^comments/', include('django.contrib.comments.urls.comments')),
>
> But th
Maybe middleware is what you are thinking of:
http://www.djangoproject.com/documentation/middleware/
G
On 12/11/06, Sigurdur Einarsson <[EMAIL PROTECTED]> wrote:
>
> Hello group,
>
> How can a call variables, objects, attributes within the skeleton
> template.
>
> For example if I would like a d
Hi,
For every page login form, check:
http://brehaut.net/blog/2006/08/21/django-user-logins/
No need to use the login view. Use the authenticate function instead.
Hope it helps,
G
On 12/4/06, Milan Andric <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm having the same problem as this thread:
>
> It almost seems that I could do away with the MINISTRY_CHOICES piece
> and just use the tags because if a tag name does not already exist the
> admin interface will allow one to be created from the Entries page. If
> that is the case then if I want a page to only display the posts for
> music (a
ok...
Try to do a ln -s (or simply move) of your django directory to the
/usr/local/lib/python2.4/site-packages directory, so you have:
/usr/local/lib/python2.4/site-packages/django/
Usually it's the place to put it. Maybe it's that...
G
On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Where is your django installation at the moment?
Where you able to manage.py shell before the migration?
Are you sure you have all the __init__.py's necessary?
Are you sure it is not a permission issue?
G
On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Yes, I have something very muc
> Thank you. That is what I was thinking but I wanted to get others
> opinions first. This will also help stay with the DRY ideals. I guess
> the real difficult part would be if a new ministry is added to the
> list. If I understand how it works I would have to make changes in the
> model and then
Ok... blind try.
If your my_project is in /path/to/my_project, and you have your
manage.py in that directory, tr adding those lines:
import sys
sys.path.append('/path/to)
I have to manually add the parent directory to the sys.path in order
to use my applications.
G
On 12/1/06, [EMAIL PROTECTE
Cheers,
I would do it in a single table.
Maybe i would add a field to the Post like:
MINISTRY_CHOICES = (
('MUS', 'music'),
('SIN', 'singles'),
('STU', 'students'),
)
ministry = models.CharField(ma
This might help you:
http://code.djangoproject.com/ticket/2070
G
On 12/1/06, Paul Childs <[EMAIL PROTECTED]> wrote:
>
>
> Paul Childs wrote:
>
>
> > 1. Is there an upper limit to the size of files that one can upload to
> > Django? I am able to upload files of about 5 MB or less with no
> > prob
Hi,
> > I suspect you hit one small Django controversy. The generic view
> > object_list would give you 404 error when the list it tries to show is
> > empty. The view is there, it works, finds the list -- all is Ok. It just
> > has this strange behavior by default. To overcome it you can add
> >
> The problem is that if I'm putting polls on every page of the blog,
> then I have to change each URL in the urlconf to optionally include a
> has_voted variable, right (since I'm returning people to their
> originating page via a redirect, not via the POST request itself)?
In this case, you can
Did you put the Stock model before the OrderItem model? Sometimes this
makes problems.
If you did, what about this as an alternate solution?
class Stock(models.Model):
price = models.FloatField(max_digits=10, decimal_places=2)
class OrderItem(models.Model):
quantity = models.SmallIntegerF
Mmm... you are writting your current view. So just add a variable
"has_voted" that will be true if the IP (or user) has voted.
I don't know if you are using the poll version of the tutorial or
mine. If you are using the version of the tutorial, you might be
interested in this, where I added suppo
And what about the admin "view on site" and the feeds? They both
depend on the get_absolute_url. How could this be 'integrated' as well
into your solution?
G
On 11/18/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
>
> Guillermo Fernandez Castellanos wrote:
> &g
aner'.
Another option would be to extract automatically my
GUINDILLA_CALENDAR_BASE from the views with a urlresolvers, but it's
even messier.
Thanks,
G
On 11/18/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
>
> Guillermo Fernandez Castellanos wrote:
> > In that case, pe
> One question though: Could you explain what GUINDILLA_CALENDAR_BASE
> refers to?
When you put an app somewhere it always comes with an urls.py that you
include in your main urls.py.
When you include that urls.py, you can include it under whatever name you want:
(r'^events/', include('g
I've just implemented this for a web page:
http://svn.guindilla.eu:8000/guindilla/trunk/guindilla/events/
It's probably not the most optimized solution, but it works for me.
I use a context processor to pass all the information I need to create
the calendar to all my views. I keep my events in t
There is a few examples if you look in the mailing list:
http://code.djangoproject.com/browser/djangoproject.com/django_website/apps/blog
http://www.fallingbullets.com/blog/2006/nov/02/falling-bullets-source-code-you-ninnies/
http://www.rossp.org/blog/2006/may/15/django-magic-removal-upgrade/
http
Check this:
http://www.djangoproject.com/documentation/forms/#c1576
I had the same error a few weeks ago :-)
Hope it helps,
G
On 11/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I have "models.DateTimeField defined in my model as "date_today".
>
> date_today
Hi,
You have the UserFlag option in the django.contrib.comments code as an
example of flagging applied to Comments. It might be easier to take
the code and make it general with Generic relations:
http://www.djangoproject.com/documentation/models/generic_relations/
or take it as an example for you
..
G
On 11/10/06, Sandro Dentella <[EMAIL PROTECTED]> wrote:
>
> On Fri, Nov 10, 2006 at 05:43:28PM +0100, Guillermo Fernandez Castellanos
> wrote:
> >
> > Hi,
> >
> > Maybe this will help you:
> > http://www.djangoproject.com/documentation/sites/
>
Hi,
Maybe this will help you:
http://www.djangoproject.com/documentation/sites/
G
On 11/10/06, sandro.dentella <[EMAIL PROTECTED]> wrote:
>
> hi all,
>
> how should I organize my configuration so that it's easy to have
> several django applications in the same apache (not as virtual
> domains
Got it!!
I tried the code at home, and it did not work for me neither.
I then tried object_list instead of archive_index and it worked well.
So i tried archive_index again with the allow_future=True option and it worked.
My guess:
You are not on the America/Seattle time zone, and for the syste
Hi,
Sorry... I might have written too fast, it does not seem to be your answer...
x
Please, send the models.py and the urls.py and we'll try to have a look.
G
On 11/6/06, Guillermo Fernandez Castellanos
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Try adding the option allow_emp
Hi,
Try adding the option allow_empty=True in your urls:
http://www.djangoproject.com/documentation/generic_views/#django-views-generic-date-based-archive-index
It is false by default, and when there's nothing to show, it throws a
404 error :-)
Hope it helps,
G
On 11/6/06, [EMAIL PROTECTED] <
Hi,
I had the same problem in Spanish.
You must save your templates as UTF-8. For example, in Windows Notepad
you can do a save-as and choose UTF- as encoding, instead of ASCII.
Hope it helps,
G
On 11/1/06, Italo Maia <[EMAIL PROTECTED]> wrote:
>
> Well, here's the problem, in portuguese(my id
Check this:
http://brehaut.net/blog/2006/08/21/django-user-logins/
If you want a complete and working example, tell me and I'll send you one.
Hope it helps,
G
On 11/1/06, MerMer <[EMAIL PROTECTED]> wrote:
>
> I am thinking about creating a small login form as an inclusion tag, to
> display wit
Hi,
I use the include tag:
{% for object in object_list %}
{% include "myapp/object.html" %}
{% endfor %}
The nice things is that include renders the template with the current
context, that is automagically passed to the myapp/object.html
template:
http://www.djangoproject.com/documentation/
It seems to me that you might have created the user but you did not
give him the privileges to enter the admin interface.
Enter the admin with your... admin user :-)
Go to Users, select the user and check the 'Is staff' option to allow
him to enter the admin site. Then, logout and try to enter wi
Hi,
I have a system with 3 levels of permissions in an app at work, and it
has been relatively easy to do.
You have three things that will help you:
- The ability of creating "groups" with different permissions.
- The @login_required and @permission_required, that will allow you a
per-view restr
Hi,
I've a model with a DateTimeField in it, and I'm creating a form to add objects.
So, I create the form for the DateTimeField. Up to here, everything
ok, it works.
Now I would like to add the js helpers we can find when we use the
admin to create an object (the little calendar and watch with
Well... I'm not sure you need to mimic anything.
Let's take an example:
class Friend(models.Model):
name = models.CharField(maxlength=79)
Now suppose I do a function like this:
def names():
for friend in Friend.objects.all():
print friend.name
if '__main__'==__name__:
names()
It's something I've often though about.
I've used databases in many projects, both web and not-web based. And
I am now sure that Django would have been a great help in those
non-web applications as well.
The problem would then be to strip Django of all those web-specific
libraries it's bundled w
/
and is sometimes difficult to answer such questions without the whole
code and some testing.
Hope it helps,
G
On 10/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Guillermo Fernandez Castellanos wrote:
> > Hi,
> >
> > Just guessing, but if I understood we
Hi,
Just guessing, but if I understood well the error you get, that's normal.
The KarmaScoreManager is not the amount of karma of a coment (or in
your case an object). It keeps in the database the karma score that a
given user gave to a specific comment (or object). As there is a
single score pe
You can find the actual code here. For the template tag:
http://svn.guindilla.eu:8000/guindilla/trunk/guindilla/polls/templatetags/guindilla_polls.py
Fo the html:
http://svn.guindilla.eu:8000/www_guindilla_eu/templates/guindilla/polls/open_polls.html
And for how to use it:
http://svn.guindilla.e
Cheers,
The nice thing is, you can import your models to any application.
For instance, you have app1/gallery with models.py inside that defines
Photo and Gallery, and you have app2/photorating with models.py
inside. You need for your Rating model in app2 to use the Photo model
of app1.
No worr
Hi,
Looking at the model, you can see that:
class KarmaScore(models.Model):
user = models.ForeignKey(User)
comment = models.ForeignKey(Comment)
[...]
So I would think that, if there's a comment of a given user, you can
know if he voted or not by doing a template tag that takes a comm
Cheers,
have a look at the Meta options order_with_respect_to and ordering:
http://www.djangoproject.com/documentation/model_api/#order-with-respect-to
Hope it helps,
G
On 10/24/06, John Lenton <[EMAIL PROTECTED]> wrote:
>
> Hi all.
> I've got an app where I have a table of nodes, and a table
Sorry, back from a trip.
Happy to see that some people tried it and that it works. Thanks!
> I've been looking at this as well. It appears that the ratings and
> comments are tied together and must be submitted together. Is this
> true? I'd like a user to submit a comment along OR rate it OR
Hi,
I've written a tutorial (well... actually two in one) about how to use
the Comment (not FreeComment) and Karma parts of Django:
http://www.guindilla.eu/blog/2006/10/21/comment-and-karma-functions-django-framework/
It involves some changes to the code, as I've found what seems to be a
bug. Th
Indeed... I made a mistake.
I was thinking of:
class Image(models):
image = models.ImageField(...)
post = models.ForeignKey(Post)
That way you can have all images of a post like p.image_set.all() and
you can construct the copy-and-paste URL.
Sorry for the confusion,
G
On 10/19/06, berto
That's it, thanks!
G
On 10/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Here is a link to the Django Powered Sites:
>
>
> http://code.djangoproject.com/wiki/DjangoPoweredSites#Variousapplications
>
> Look for WorkStyle. The project page is still up, but the sandbox was
> broken last
Hi,
I remember seing in the Django website, in the examples section, a
nice TODO application, developped with Django 0.91, with nice images
(cartoon faces in different colors) and a nice model. There was a
sandbox in the homepage to play with it.
I was looking for it recently and it seems to hav
I had a similar problem. I havent found any definitive solution, but
there is some solutions that might help:
Create a new model:
class Image(models):
image = models.ImageField(...)
Add to your post model:
images = models.ForeignKey(Image)
Then, create a special view to create posts, wh
Hi,
This might help you get going (see at the end). I modified a bit the
function that sends the mail in Django. It is probably very far from
as good as it could be.
I am actually surprised as well that there's no function for that.
Hope it helps,
G
# Use this module for e-mailing.
from djan
<[EMAIL PROTECTED]> wrote:
>
> On 13 Oct 2006, at 0:24, Guillermo Fernandez Castellanos wrote:
> > I am trying to keep a birthday field in the database. But i am only
> > interested in the day and month. Is there a way of using a DateField
> > but only with day and month f
Hi,
I am trying to keep a birthday field in the database. But i am only
interested in the day and month. Is there a way of using a DateField
but only with day and month fields? Or should I use another solution?
Thanks,
G
--~--~-~--~~~---~--~~
You received this m
> * Filter out __init__.py files and any other files not needed.
But take care.
Some __init__.py files have actually code inside (like the
/django/contrib/auth/__init__.py one)
G
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
Hi,
Some examples here:
http://groups.google.com/group/django-users/browse_thread/thread/5615ffe5707d9b92/de7eb2cd4060bad5?lnk=gst&q=code+examples&rnum=5#de7eb2cd4060bad5
Enjoy,
G
On 10/7/06, Marco Amato <[EMAIL PROTECTED]> wrote:
>
> Hi !
>
> I am not a big programmer , and I will found usefu
Hi,
This might help:
http://simon.incutio.com/archive/2005/08/15/request
Enjoy,
G
On 10/3/06, Tim Chase <[EMAIL PROTECTED]> wrote:
>
> >> Jay, I did read the documentation before jumping in - but
> >> it's not all necessarily clear for someone who hasn't alot
> >> of experience in Python of D
Hi,
> urlpatterns = patterns('probob.app1.views',
> (r'^$', 'index'),
> (r'^test/', 'XXX'),
> )
> where XXX I want to refer to 'probob.app2.views.foo'; however django is
> going to make it refer to 'probob.app.views.probob.app2.views.foo'. Is
> there a way to get around this?
Yes
Cheers,
> It's not totally clear to me why i would want to go the way of creating code
> & using manipulators
> if all that can be done automatically :)
It can indeed be automatically done for an object creation. But what
about sending a mail? Or what about a form involving two models? Or
made to
/search?q=label:django
> http://code.djangoproject.com/
>
> 2006/9/13, DavidA <[EMAIL PROTECTED]>:
> >
> >
> > Guillermo Fernandez Castellanos wrote:
> > > I am thinking of using the comments framework for a project, although
> > > besides the FreeComment t
Cheers,
I've been looking at Lost-theories code lately, and actually, after
looking at the Jeff's post, it seems that the smartypants filter is a
filter that he modifie and dropped in the python path:
"""
As for SmartyPants -- there is a Python port. I've found it to be not
quite as perfect as th
Cheers,
I don't know if this has to do with the flatpages framework, but
Django is sensitive to the trailing slash. I think some browsers add
the trailing slash automagically, and this may be the case of yours.
There is an option, the APPEND_SLASH in CommonMiddleware, that will
rewrite URLs that
Cheers,
I am thinking of using the comments framework for a project, although
besides the FreeComment there's no real documentation about it that I
have found besides the source.
My questions are:
- Did someone use it in a project accesible to others so I can get
inspired from his example?
- Wou
Cheers,
You're in a *NIX, aren't you?
The error tells you everything: OperationalError: attempt to write a
readonly database
Just make sure the web server has write rights on the sqlite3
database, and on the "directory" where your database is. It's a common
gotcha, and still now gives me nasty s
Cheers,
> i want to display a snippet of data from a html source, and i want to
> strip it of html because an unclose tag will make the rest of the page
> look like
You have the striptags tag:
http://www.djangoproject.com/documentation/templates/#striptags
You can also access the function from o
Cheers,
> Is there somoeone that have already built
> a "very very light weblog" app that I can studdy
> (I mean see the source code)
> to buld my personal weblog (django based).
> I have a simple weak and cheap webserver.
I found this to be a good example:
http://www.rossp.org/blog/2006/jun/08/d
> Ok; I just re-ran the tests with SQLite, and I am getting the same problem.
>
> Poking through the bug database, it looks like you are hitting Bug #2091.
> I've updated that ticket with the details of your problem, and what I've
> been able to work out so far.
Mmm... I'm used to look in the doc,
Hi,
> This seems to be correct. Perhaps it is a DB specific problem - what
> database are you using (my tests were with postgres)?
I am using sqlite3, with the latest django cvs tree.
> Also; after you have executed these queries, the following:
> from django.db import connection
> print connect
Hi,
I have two models:
class Class(models.Model):
name = models.CharField(unique=True,maxlength=79)
class Person(models.Model):
name = models.CharField(maxlength=79)
classes = models.ManyToManyField(Class,
blank=True)
i define some classes (Musi
Hi,
The prepare is actually a method of Manipulator that calls the prepare
method in each of the fields.
So you might want to call it from the Manipulator.save() method. Or in
the html2python by overiding it, calling first self.prepare() and then
Method.html2Python(self). But I'm just guessing,
= manipulator.get_validation_errors(new_data)
if not errors:
# ADD THIS LINE
manipulator.prepare(new_data)
manipulator.do_html2python(new_data)
new_data.getlist('groups')
Hope it helps other people.
G
On 9/4/06, Guillermo Fernandez Castellan
Hi,
It seems to me that TextField has a maximum number of text.
In the code /django/forms/__init__.py:
class TextField(FormField):
def __init__(self, field_name, length=30, maxlength=None,
is_required=False, validator_list=None, member_name=None):
It seems to be maxlength. You can see it us
Hi,
Databases can handle much larger files than that. People use databases
to keep the entrances of the blogs, and some of them can be pretty
large (see some of the django developper blogs as an example).
Hope it helps.
G
On 9/5/06, cyberco <[EMAIL PROTECTED]> wrote:
>
> Thanks for the pointer
Hi,
I read in the documentation that CheckboxSelectMultipleField has an
identical interface to SelectMultipleField. But this does not seem to
work for me.
I define a Manipulator with SelectMultiple field:
forms.SelectMultipleField(field_name="groups", choices=(('My Test
1','My Test 1'),('My Test
Hi,
> I have been on your SVN, but how do i tell Django that each little app has
> its own urls.py? is putting it in the directory enough to automatically let
> django know that each little app has its own urls.py?
Afterwards you can define a urls.py for each project.
Check for those urls.py in:
Hi,
I did my own homepage (www.haruki.eu) where I have several
"applications" done together.
As I understood after asking in the list and looking at several
project svn trees, the 2nd way seems to be prefered for a sizable
application. It allows modularity and reusability.
What I do is have a n
Sorry, my email was sent earlier than expected. Complete email here.
Hi,
I have been putting up several web sites with django. I use a single
media server, with symlinks from the different projects. This includes
the admin interface.
In the /django/contrib/admin/media you find an admin folder f
Hi,
I have been putting up several web sites with django. I use a single
media server, with symlinks from the different projects. This includes
the admin interface.
In the \django\contrib\admin\media you find an admin folder for
--~--~-~--~~~---~--~~
You received
With SVN (http://subversion.tigris.org/).
On the command line:
svn co http://svn.sourceforge.net/viewvc/django-userlibs/trunk/ some_directory
But if you are under Windows, I recommend TortoiseSVN
(http://tortoisesvn.tigris.org/).
In this case create an empty directory, right click on it, chose
"
Hi,
I'm using those:
http://www.hostip.info/
They have a very handy API:
http://www.hostip.info/use.html
Enjoy,
G
On 8/16/06, David Blewett <[EMAIL PROTECTED]> wrote:
> You could combine the maxmind GeoIP database 1 + cross-referencing that with
> the CivicSpace ZIP code database 2.
>
> David
What about this? (disclaimer: I'm just starting in Django)
First, we create a model where you simply have the name of the view
and the number of times hitted. This model increases it's "counter"
variable each time it is saved.
class NbViews(models.Model)
viewname=models.TextField(maxlength=30
ariable?
Thanks a lot, I fid those organization questions are non-trivial for me.
G
On 7/31/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
>
> On 31-Jul-06, at 1:45 AM, Guillermo Fernandez Castellanos wrote:
>
> > Or more like:
> > /site1/templates
> >
. How
will you integrate all this?
Thanks,
G
On 7/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Guillermo Fernandez Castellanos wrote:
> > Hi,
> >
> of course ,the second model is better,the first one is too much
> confused
> > I've seen thi
Hi,
I've seen this subject several times in the mailing lists without
being able to find a definite/useful answer in the mailing list.
I'm going to have a server with several domain names serve a few
applications (blog, photo gallery,...). But I'm a bit at a loss when
dealing with how to organiz
u be looking for something like direct-to-template?
> http://www.djangoproject.com/documentation/generic_views/#django-views-generic-simple-direct-to-template
>
>
> Guillermo Fernandez Castellanos wrote:
> > hi,
> >
> > I have an index.html file with django templa
hi,
I have an index.html file with django template language.
I could do a wrapper in a views.py to display it, in which i would
simply make a render_to_response.
But I was just wondering if there was a quicker way to do this
directly in the urls.py file, something like (I'm inventing here):
urlp
Don't know if this answers your question:
http://www.b-list.org/weblog/2006/07/03/django-tips-scaling-application
Good luck!
G
On 7/14/06, Joe Murphy <[EMAIL PROTECTED]> wrote:
>
> Hi y'all,
>
> This week my boss sprang a new project on me: Build a community blog
> app (multiple blogs and multi
Hi,
I did identify my problem (user not in context) doing this (thanks Joshua):
{% if user %}
user in context
{% else %}
user not in context
{% endif %}
It's difficult to know where your problem might be without looking at
the code...
G
On 7/12/06, hotani <[EMAIL PROTECTED]> wrote:
>
> I think
Ok, got my problem. May be your problem as well, mamcxyz.
I was using the user variable in a menu. In order to make my webpage
as generic as possible, I had defined a menu.html that I included with
a tag:
register = Library()
def make_menu(context):
pass
make_menu = register.inclusion_tag('s
Hi,
I do actually have a very similar problem, and I've also checked the
more common errors (settings file,...).
I put in my templates:
{% if user.is_anonymous %}
Welcome, new user. Please log in.
{% else %}
Welcome, {{ user.username }}. Thanks for logging in.
{% endif %
But then, I onl
I've done the same thing here:
> http://svn.zyons.python-hosting.com/trunk/zilbo/common/utils/middleware/lastseen.py
>
> by the looks of it you are forgetting to actually store it.
> ie
> request.session['sysvortex_last_visit'] = datetime.datetime.now()
>
1 - 100 of 124 matches
Mail list logo