really this path will be constant to all flatpages and all what i need
is how i could get the path from the database and put it in the template
is their a way for that
On Tue, 2006-02-21 at 20:02 -0500, Tom Tobin wrote:
> On 2/22/06, Mary Adel <[EMAIL PROTECTED]> wrote:
> >
> > how to call in fla
Giving each menu item an id : OK
"and in each section of the site, assign a class to
the body tag based on the section you're in."
i cant't do that i use a template which follow this way :
---
[...]
{% include "header" %}
{% inc
I am running Ubuntu 5.10, Python 2.4.2, MySQL 4.1.12, and MySQLdb
1.2.1c3, and I have the same problem. It may be that this is a problem
introduced in a recent release, because all three of us have brought it
up around the same time. I will post a solution if I find one, but for
now, I have to k
Dmitry Medvedev wrote:
> i've encountered really weird problem on FreeBSD 5.4 , python 2.4.2 ,
> py24-MySQL-db-1.2.0 and mysql , i've moved my project from Gentoo Linux,
> used subversion to get latest branch of django, created mysql
> database, set correct values in setting.py , mysql client lo
Hiya.
I am completely lost. I want to use the standard AddManipulators
provided. They are cool.
But, I also want to make use of the RequiredIfOtherFieldEquals
validator from django.core.validators.py.
I have searched and searched, but I can't seem to find any reference to
how to implement it (or
When I click "logout" I get a blank screen but I am logged out,
because if I try to access an admin url the login form appears. Opera
8.5, Windows XP.
On 2/21/06, gabor <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> is there anyone using opera8?
>
> because for me it seems that i am unable to log out u
Sorry for the bump. I'm still trying to figure this out. The
extra_lookup_kwargs field of the info_dict seems like it comes close to
doing what I want to do but I can't drive it from a search form so I'm
still stumped. Do I really need to make a custom view if I want to
filter the list results via
On 2/22/06, Mary Adel <[EMAIL PROTECTED]> wrote:
>
> how to call in flatpage a content i have saved in the database
> ex i saved the path of the css and java script in the database and i
> need to call it in my flatpage so how i could do this
If those files change on a flatpage-by-flatpage basis,
On 2/22/06, Mary Adel <[EMAIL PROTECTED]> wrote:
>
> I need to save the Css and the Java script file in the database so as i
> can make the user change it easily so how i can do this in an easy way
You could clone Flatpages for the other file types and ForeignKey each
flatpage to a CSS entry and a
On Tue, Feb 21, 2006 at 09:22:25PM -, Jan Rademaker wrote:
> The 'archive_day' you see in urlpatterns is the name of the view, eg.
> django.views.generic.date_based.archive_day and not some string that's
> appended to the module's name.
Thanks... for some reason, I had the perception that th
On 2/22/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
>
> On 2/21/06, limodou <[EMAIL PROTECTED]> wrote:
> >
> > I don't know if it's a bug in Admin.
> >
> > Any suggestion?
>
> Have you checked the bug database? There are a few bugs logged with the
> Admin system, and a few more with one-t
On 2/21/06, limodou <[EMAIL PROTECTED]> wrote:
I don't know if it's a bug in Admin.Any suggestion?Have you checked the bug database? There are a few bugs logged with the Admin system, and a few more with one-to-one fields - the error trace you mention seems vaguely familiar to me.
Yours,Russ Magee
Jason F. McBrayer wrote:
> On Tue, 2006-02-21 at 23:52 +0100, gabor wrote:
>
>> i wanted to have in the user-manager form a way to do the normal
>> password-thing (2 password fields, check if they are equal, and so on).
>>
>> so, i created a page-template, put it to the right place so that it
>
On Tue, 2006-02-21 at 23:52 +0100, gabor wrote:
> i wanted to have in the user-manager form a way to do the normal
> password-thing (2 password fields, check if they are equal, and so on).
>
> so, i created a page-template, put it to the right place so that it
> overrides the django-users-mana
how to call in flatpage a content i have saved in the database
ex i saved the path of the css and java script in the database and i
need to call it in my flatpage so how i could do this
--~--~-~--~~~---~--~~
You received this message because you are subscribed
I need to save the Css and the Java script file in the database so as i
can make the user change it easily so how i can do this in an easy way
Thanks,
Mary
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
Jason F. McBrayer wrote:
> Gábor Farkas <[EMAIL PROTECTED]> writes:
>
>> at the end, i did the followin:
>>
>> - no javascript-visibility tricks
>> - the form's submit buttons are written out using document.write
>> - i added a tag to warn the user to enable javascript
>>
>> this way, if javascri
hi,
is there anyone using opera8?
because for me it seems that i am unable to log out using opera8.* from
the admin interface.
so before i start digging deeper...does anyone else has this problem?
thanks,
gabor
--~--~-~--~~~---~--~~
You received this message b
Kirk McDonald wrote:
> PS: The following hackish thing occurs to me:
>
> class User(users.User):
> node = meta.OneToOneField(Node, db_column='id')
> id = meta.IntegerField(db_column='id', editable=False)
> class META:
> replaces_module = 'auth.users'
> module_name
It is working now thanks
On Wed, 2006-02-22 at 03:36 +, Mary Adel wrote:
> I did and i have the tables in the database
> :(
> On Tue, 2006-02-21 at 11:24 +, coulix wrote:
> > did you run pythob manage.py install flatpage ?
> >
> >
> >
> >
>
>
>
>
--~--~-~--~~-
Glenn,
The 'archive_day' you see in urlpatterns is the name of the view, eg.
django.views.generic.date_based.archive_day and not some string that's
appended to the module's name. The default template names for date
based views happen to be the same as the name of the corresponding
view. The defa
thanks - that worked.
patrick
>
> On Tue, Feb 21, 2006 at 08:12:30PM +0100, patrick k wrote:
>> 1. is the django development-server only meant for local use? i?m asking
>> because i tried to use it with dreamhost and it doesn?t seem to work.
>
> You need to specify the hostname and port with
On Tue, Feb 21, 2006 at 08:12:30PM +0100, patrick k wrote:
> 1. is the django development-server only meant for local use? i?m asking
> because i tried to use it with dreamhost and it doesn?t seem to work.
You need to specify the hostname and port with runserver.
i.e. python manage.py runserver
Hi David,
I have a solution for you that works for everything except ManyToMany
fields (I believe). If there's an easier way to do this, I'd love to
hear about it, and if anyone has an idea how I could push further to
tackle ManyToMany fields I'd love to hear it.
from: /contrib/admin/views/main
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tue, Feb 21, 2006 at 08:12:30PM +0100, patrick k wrote:
> 1. is the django development-server only meant for local use? i´m asking
> because i tried to use it with dreamhost and it doesn´t seem to work.
No, it can be used publicly. I've run it on
Hi there,
In my existing application, I have a user object/table to track all of our
users. Users optionally have a foreign_info object with them too, if
they are foreigners.
So it's a one-to-one relationship. Here's simplified:
class User:
userbase_id = ... the primary key
lots of ot
1. is the django development-server only meant for local use? i´m asking
because i tried to use it with dreamhost and it doesn´t seem to work.
2. with using apache/mod_python in production, one has to restart apache
when changing stuff (e.g. models). with my current customers, there are
changes a
gabor <[EMAIL PROTECTED]> writes:
> i'll set up something "serious" then there. i think i'll go with the
> lighttpd+fcgi approach.
You can also build mod_fastcgi for Apache 1.3.
--
++
| Jason F. McBrayer [
After the tutorials I was looking over the source code for the djangoproject.com
site.
(1) in djangoproject.com/apps/blog/urls/blog.py I see:
from django.conf.urls.defaults import *
info_dict = {
'app_label': 'blog',
'module_name': 'entries',
'date_field': 'pub_date',
}
urlpatter
Mary,
In your templates directory you need a template named default.html.
Here is what mine looks like:
http://www.w3.org/TR/REC-html40/loose.dtd";>
{{ flatpage.title }}
{{ flatpage.content }}
--~--~-~--~~~---~--~~
You received this message because you are
Gábor Farkas <[EMAIL PROTECTED]> writes:
>
> at the end, i did the followin:
>
> - no javascript-visibility tricks
> - the form's submit buttons are written out using document.write
> - i added a tag to warn the user to enable javascript
>
> this way, if javascript is disabled, the user cannot s
Thanks for the hint ;-)
--~--~-~--~~~---~--~~
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 [EMAIL P
Hi everyone,
I've had a good search on the web, the wiki and the list archives, as
well as asking on IRC, and I'm yet to come up with a good solution to
this problem.
Basically, I'm trying to run a custom validator on a field which is
part of a model linked by a ForeignKey and set to
edit_inline
You can also do this with CSS and not change your navigation HTML at
all. Just give each of your navigation items an id (#nav-about,
#nav-contact, etc.) and in each section of the site, assign a class to
the body tag based on the section you're in.
Then you can create CSS rules for the "current"
Hello list,
Newbie question: I wonder how I can filter or search lists by foreign
keys. Assuming a 0.91 model like:
class Country( meta.Model):
name = meta.CharField( _("Name"), maxlength=255)
class City( meta.Model):
name = meta.CharField( _("Name"), maxlength=255)
countr
how come it is looking for a template, is it wanted ?
--~--~-~--~~~---~--~~
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
I have some model just like:
EDITOR_TYPES = (
(1, 'Text Editor'),
(2, 'Rich Text Editor'),
)
class BlogProfile(models.Model):
blog_editor = models.IntegerField(_('Editor'), choices=EDITOR_TYPES)
blog_name = models.CharField(_('Blog name'), maxlength=100)
blog_short_descriptio
I did and i have the tables in the database
:(
On Tue, 2006-02-21 at 11:24 +, coulix wrote:
> did you run pythob manage.py install flatpage ?
>
>
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django u
On 2/21/06, iGL <[EMAIL PROTECTED]> wrote:
>
> Hi,
> As I suppose, the Django's concept of separation of application from
> a project, when several apps form the latter, is a very nice
> abstraction of the traditional MVC. It would enable one to re-use apps
> in an extent exceeding what is provided
It looks like something wrong with your code: appname =
'taravar.apps.pages', No module named apps...
On 2/20/06, Lachlan Cannon <[EMAIL PROTECTED]> wrote:
>
> I've been having 500 errors at Dreamhost too. The week before last I finished
> my
> site, had it up and running and everything was fi
did you run pythob manage.py install flatpage ?
--~--~-~--~~~---~--~~
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
thanks ! thats cool
--~--~-~--~~~---~--~~
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 [EMAIL PROTE
I manage to save the image,
first make sure to have :
picture: {{form.image_file}} {{
form.image }}
in your template
then the view :
#post a form
def create_recette(request):
manipulator = recettes.AddManipulator()
#12 being image_fil , recettes.AddManipula
I am still having problem with Django flatepages and here is the error:
I am using appach server and i didn't write anything in the url.py or
even in the view.py i just added in the setting.py file the
in the middle class:
"django.contrib.flatpages.middleware.FlatpageFallbackMiddleware",
and
A simple solution is to indicate the current page (or section) in the
context. You can do it in your urls.py (see
http://www.djangoproject.com/documentation/url_dispatch/#passing-extra-options-to-view-functions
) or in views.py.
Let's say you have inserted {'section': 'ajouter'} in your context.
Brett Parker wrote:
> On Mon, Feb 20, 2006 at 10:36:38PM +, Graham King wrote:
>> You could make the form invisible using css:
>>
>> #theFormId {
>>display: none;
>> }
>>
>> then use Javascript to change this to display = block. If they don't
>> have Javascript the form won't appear.
i have this website :
http://ozserver.no-ip.com:345/cefinban/recette/1
i would like to highlight the menu link representing the current page,
for example if its "contacts" , the ">> contacts link in the menu
should be bold.
using template i could load a different menu block for each page ? :/
an
I have expanded auth.User (gosh that seems to be a popular thing to do)
according to the instructions here:
http://code.djangoproject.com/wiki/ExtendedUserModel
The particulars are more complicated to explain than the code itself:
class User(users.User):
id = meta.OneToOneField(Node, d
On Mon, Feb 20, 2006 at 10:36:38PM +, Graham King wrote:
>
> You could make the form invisible using css:
>
> #theFormId {
>display: none;
> }
>
> then use Javascript to change this to display = block. If they don't
> have Javascript the form won't appear.
>
> Or you could use J
Hi,
As I suppose, the Django's concept of separation of application from
a project, when several apps form the latter, is a very nice
abstraction of the traditional MVC. It would enable one to re-use apps
in an extent exceeding what is provided with the "classic" MVC.
However, to do so, one has t
I'd like to have a search form drive a generic list/detail view. Is
there a way to filter the db query that generates object_list based on
a search form? It doesn't seem like I should have to write a custom
view just to filter list results.
Thanks
Charlie
--~--~-~--~~~
51 matches
Mail list logo