Re: How to encode the url ??

2008-09-08 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-09-08, o godz. 08:12, przez Grzegorz Szymański How to encode the url ??make the non-English looks like %CD %E2%C6%C5%BC %D2 >>> >>> http://docs.python.org/lib/module-urllib.html >>> quote, unquote >> >> Neither of which work with unicode strings in

Re: filter_vertical is not defined

2008-09-08 Thread Daniel Roseman
On Sep 8, 9:47 am, nsash <[EMAIL PROTECTED]> wrote: > Hello, > > I use latest Django official version - 1.0. I want to use in my admin > view > filter_vertical('categories',)  or > filter_horizontal('categories',)        for a ManyToMany Field. > > But I  only get the error message "name 'filter_v

newforms: construct 1 widget from 2 fields

2008-09-08 Thread martydotcom
Hi guys, Does anyone know if it's possible to construct a single widget from 2 model fields? I want to make a "Select" widget, with a primary value, and a related value eg: object whos id is 1, and whose foreign key is 7 Any ideas much appreciated. Thanks, Martin --~--~-~--~~

Comments customization

2008-09-08 Thread Jarek Zgoda
Is there any document with new comment framework customization tips? I'd like to switch finally to 1.0 but I don't know how to accomplish few things (or have ugly workarounds): * do not display preview page after succesful posting of comment, go to commented document instead (currently I

Link to CSS and JS files other than in base.html

2008-09-08 Thread Bobo
Hi everyone, I’ve a question about loading CSS and JS files. The normal command for doing so is: I’m doing that in my Base.html because it’s the only HTML file which contain a tag. All the other templates just extend that. My question now, is there any way that I can make some kind of temp

Re: Upload images to database

2008-09-08 Thread nsash
Yes, I need to store them in database. I need to do this from the django admin. Do I have to make a custom field in the model? Or additional field in the database which is blob type? How can I override the save method , so that the image to be uploaded in the database, not in the file system? On

Re: Upload images to database

2008-09-08 Thread Erik Allik
I've been kinda wanting the same thing. I think you could implement a DbImageField and a database file storage back end. Keep us in touch, I'm interested. Erik On 08.09.2008, at 12:08, nsash wrote: > > How can I upload an image in the database? As it is now , in database > is saved only t

Re: gettext is not defined - js error in admin calendar.js

2008-09-08 Thread ykb
Could you please let us know in a little more detail on how to set the jsi18n path. Where is "/admin/jsi18n/" referring to? Thanks, Yadu. On Aug 20, 1:38 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > That did it. Many Thanks! > > On Aug 19, 3:09 pm, Daniel Roseman <[EMAIL PROTECTED]> > w

Re: Comments customization

2008-09-08 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-09-08, o godz. 14:19, przez Julien Phalip: >> * do not display preview page after succesful posting of comment, go >> to commented document instead (currently I have redirecting view and >> handle it in my urlconf before urlconf of django.contrib.comments is >> i

Re: Upload images to database

2008-09-08 Thread Ludwig
Is there a pressing need to do this? I think the design decision here was that serving image files to users is something that web-servers will be able to do with much less overhead. If you need to perform image manipulation on the fly, maybe have a look at sorl.thumbnail (http://code.google.com/p/

Re: Comments customization

2008-09-08 Thread Julien Phalip
Jarek Zgoda wrote: > Is there any document with new comment framework customization tips? > I'd like to switch finally to 1.0 but I don't know how to accomplish > few things (or have ugly workarounds): > > * do not display preview page after succesful posting of comment, go > to commented docume

Re: error when using User.get_profile()

2008-09-08 Thread sveri
On Sep 8, 1:34 pm, "Matthias Kestenholz" <[EMAIL PROTECTED]> wrote: > Hi, > > > > On Mon, Sep 8, 2008 at 12:42 PM, sveri <[EMAIL PROTECTED]> wrote: > > > Hi, > > > i am using Django 1.0 and try to extent the usermodel, which works so > > far > > for adding new users. > > > But when i want to ret

Re: error when using User.get_profile()

2008-09-08 Thread Matthias Kestenholz
Hi, On Mon, Sep 8, 2008 at 12:42 PM, sveri <[EMAIL PROTECTED]> wrote: > > Hi, > > i am using Django 1.0 and try to extent the usermodel, which works so > far > for adding new users. > > But when i want to retrieve a user profile i get a weird error: > > user = get_object_or_404(User, id=9) > user

filter_vertical is not defined

2008-09-08 Thread nsash
Hello, I use latest Django official version - 1.0. I want to use in my admin view filter_vertical('categories',) or filter_horizontal('categories',)for a ManyToMany Field. But I only get the error message "name 'filter_vertical' is not defined". In which module should I find it? Sorry

Re: Link to CSS and JS files other than in base.html

2008-09-08 Thread Scott Moonen
Hi, What I do is put an empty {% block extrahead %}{% endblock %} and {% block extrastyle %}{% endblock %} in my base.html. Then in any specific template that extends base or base_site, I can fill in those blocks with {% block extrastyle %}{% endblock %}. Otherwise it will be served up blank. Ho

Re: Link to CSS and JS files other than in base.html

2008-09-08 Thread Erwin Elling
Instead of using an "extra" head, you could do this: Put your main css/js declaration inside a block in your base.html: {% block headstuff %} blabla {% endblock %} In templates that extend base.html and you want to add to this, do as follows: {% block headstuff %} {{block.super}} more bla {% end

Upload images to database

2008-09-08 Thread nsash
How can I upload an image in the database? As it is now , in database is saved only the path to it. The image itself is in the file system. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

error when using User.get_profile()

2008-09-08 Thread sveri
Hi, i am using Django 1.0 and try to extent the usermodel, which works so far for adding new users. But when i want to retrieve a user profile i get a weird error: user = get_object_or_404(User, id=9) user.get_profile() Traceback (most recent call last): File "", line 1, in File "/usr/lib

Double Slash in URL

2008-09-08 Thread Thomas Guettler
Hi, I discovered, that double slashes get through my regular expressions. Is it possible to reject URLs with double slashes? http://.../...//test// (double slash before and after "test") project urls.py {{{ urlpatterns = patterns('', # MyApp (r'^', include('myapp.urls')), }}} myapp.url

Re: error when using User.get_profile()

2008-09-08 Thread Karen Tracey
On Mon, Sep 8, 2008 at 6:42 AM, sveri <[EMAIL PROTECTED]> wrote: > > Hi, > > i am using Django 1.0 and try to extent the usermodel, which works so > far > for adding new users. > > But when i want to retrieve a user profile i get a weird error: > > user = get_object_or_404(User, id=9) > user.get_p

Re: error when using User.get_profile()

2008-09-08 Thread Sven Richter
Karen Tracey wrote: > On Mon, Sep 8, 2008 at 6:42 AM, sveri <[EMAIL PROTECTED] > > wrote: > > > Hi, > > i am using Django 1.0 and try to extent the usermodel, which works so > far > for adding new users. > > But when i want to retrieve a user profile

Re: Upload images to database

2008-09-08 Thread Erik Allik
Since you're asking about the need, let me bring you an example: (images and documents are both just files so we can discuss storing files in the database not just images) I have a bunch of documents that my customer can upload through the admin interface. He can then assign read permissions

Re: Filtering related field attributes is not working

2008-09-08 Thread Wojtek Walczak
Steve Holden wrote: > Robocop wrote: >> Thank you for the suggestion, but first (with the right answer) come >> first serve. >> > So no fine romantic dinner for you, Wojtek. As for now, no, but I am looking forward for more questions from Robocop. I will try to answer before others do. Don't try

Article: "Persistent Django on Amazon EC2 and EBS - The easy way"

2008-09-08 Thread Jörn Paessler
Hi altogether, I found an interesting article "Persistent Django on Amazon EC2 and EBS - The easy way" on delicious hotlist: Best Jörn --~--~-~--~~~---~--~~ Yo

Re: Upload images to database

2008-09-08 Thread Ludwig
I see what you mean and I have wondered myself how to solve this problem. I thought there were two aspects to it: one is that there is nothing to stop someone who has legitimate access to view an image on the web, just to right-click and save the image (unless you do some javascript trickery, whic

Django-mptt admin

2008-09-08 Thread Erik Allik
Hi, Does anyone have actual working code for administering models that use django-mptt? It'd be nice if the code was free, but if it's not, maybe we can work something out. Erik Allik --~--~-~--~~~---~--~~ You received this message because you are subscribed

Introducing django-cms

2008-09-08 Thread Thomas Steinacher
Hello Djangonauts! I would like to introduce django-cms, a free, BSD-licensed content management system based on Django. It is seamlessly integrated with Django's admin interface and supports a hierarchical page structure, internationalization and much more. You can find the project page on http

Re: Django-mptt admin

2008-09-08 Thread Matthias Kestenholz
Hi, On Mon, Sep 8, 2008 at 4:09 PM, Erik Allik <[EMAIL PROTECTED]> wrote: > > Hi, > > Does anyone have actual working code for administering models that use > django-mptt? It'd be nice if the code was free, but if it's not, maybe > we can work something out. > I've implemented a drag-drop interf

URLs not matching

2008-09-08 Thread Griblik
Hi all, I'm having a problem with an app viewed through apache. I'm fairly sure it's going to be something obvious, I just can't see what it is. Basically, when I try to view the landing page for the project at / recipe/ I get a 404 as follows: "Using the URLconf defined in recipe.urls, Django

Re: New locations of mod

2008-09-08 Thread KillaBee
Thanks I thnk this is almost done. This is a pretty small app, but changing it over is teaching me a lot about django, and this admin error should be the last thing. I saw that it is not in the oldforms like formfields and validators, thus I get is this error: ViewDoesNotExist: Tried index in mo

Re: New locations of mod

2008-09-08 Thread KillaBee
Thanks I thnk this is almost done. This is a pretty small app, but changing it over is teaching me a lot about django, and this admin error should be the last thing. I saw that it is not in the oldforms like formfields and validators, thus I get is this error: ViewDoesNotExist: Tried index in mo

Re: How to encode the url ??

2008-09-08 Thread Grzegorz Szymański
On Monday 08 of September 2008 09:12:28 Jarek Zgoda wrote: > Wiadomość napisana w dniu 2008-09-08, o godz. 08:12, przez Grzegorz > Szymański > > How to encode the url ??make the non-English looks like %CD > %E2%C6%C5%BC > %D2 > >>> > >>> http://docs.python.org/lib/module-urllib.html

Re: New locations of mod

2008-09-08 Thread Rajesh Dhawan
On Sep 8, 10:39 am, KillaBee <[EMAIL PROTECTED]> wrote: > Thanks I thnk this is almost done.  This is a pretty small app, but > changing it over is teaching me a lot about django, and this admin > error should be the last thing.  I saw that it is not in the oldforms > like formfields and validat

Re: URLs not matching

2008-09-08 Thread Karen Tracey
On Mon, Sep 8, 2008 at 10:28 AM, Griblik <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm having a problem with an app viewed through apache. I'm fairly > sure it's going to be something obvious, I just can't see what it is. > > Basically, when I try to view the landing page for the project at / > r

Re: Introducing django-cms

2008-09-08 Thread David Zhou
Nice! I especially like the page reordering change you've made to the admin. Any chance you could talk a little about how you did that? On Sep 8, 2008, at 10:15 AM, Thomas Steinacher wrote: > > Hello Djangonauts! > > I would like to introduce django-cms, a free, BSD-licensed content > manage

WORK AT HOME?

2008-09-08 Thread jaipet
Sign up for top-rated Affiliate Program with SFI Marketing Group (SFI). Join millions of SFI affiliates worldwide! FREE sign-up at: http://www.quickinfo247.com/10276926/FREE. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: GIS admin: how to remove individual polygons from a MultiPolygonField?

2008-09-08 Thread springmeyer
HI Tyler, I'm glad the admin interface has been useful to you. Right now, based on the way the pre-built admin javascript works, you have the ability to delete all the multipolygons (see the `delete features`) link which should appear below each OL map in the admin, and you should have an OL mod

Help with Date Based Generic Views and Permalink

2008-09-08 Thread mccomas . chris
Hey all, I have this code: http://dpaste.com/76671/ When I go to the URL it doesn't display the page, but it also doesn't display and errors with the URL. What is wrong with the permalink instance? Also, is there a workaround for using multiple date based generic views and having them with dif

Re: Comments customization

2008-09-08 Thread Dmitry Dzhus
Jarek Zgoda wrote: > Is there any document with new comment framework customization tips? > I'd like to switch finally to 1.0 but I don't know how to accomplish > few things (or have ugly workarounds): > > * do not display preview page after succesful posting of comment, go > to commented

Re: New locations of mod

2008-09-08 Thread KillaBee
Thanks I thnk this is almost done. This is a pretty small app, but changing it over is teaching me a lot about django, and this admin error should be the last thing. I saw that it is not in the oldforms like formfields and validators, thus I get is this error: ViewDoesNotExist: Tried index in mo

Re: i18N with templates in separate directory

2008-09-08 Thread timc3
> I'd say that for being able to scan you project's locale/ subdir > (althouth this isn´t obvious from the docs) and the dirs listed in > LOCALE_PATHS you need specify the Python module path of > your settings file with the --settings command line switch > as explained in: > > http://docs.djangopr

Curso de Django

2008-09-08 Thread Javier Nievas
Buenas Os informo de que desde el 22 de septiembre al 1 de octubre se imparte en GRANADA un curso presencial de Django de 40 horas de duración. En el que se enseñan las bases para comenzar con este framework, así como su integración con Ajax. Aquí teneis el enlace: http://continua.ugr.es/data_h

Re: i18N with templates in separate directory

2008-09-08 Thread Ramiro Morales
On Mon, Sep 8, 2008 at 12:53 PM, timc3 <[EMAIL PROTECTED]> wrote: > >> I'd say that for being able to scan you project's locale/ subdir >> (althouth this isn´t obvious from the docs) and the dirs listed in >> LOCALE_PATHS you need specify the Python module path of >> your settings file with the --

Re: URLs not matching

2008-09-08 Thread Griblik
Fantastic, thanks Karen. That's been confusing me for days and that sorted it out. On Sep 8, 3:54 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Sep 8, 2008 at 10:28 AM, Griblik <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I'm having a problem with an app viewed through apache. I'm fai

Re: Best place for additional model constraints

2008-09-08 Thread TheShark
bruno desthuilliers wrote: > I'm afraid that if you want to use the admin app and still have a > robust (and correct) model, you'll have to apply solutions #2 *and* > #4. In order to restrict repetition to a minimum, you should factor > this validation rule in a function (possibly defined in th

Trouble storing my custom classes in session

2008-09-08 Thread ballparkfh
I am trying to store an instance of something like MyClass below in the session. When I go to retrieve the instance of MyClass from session, and I try to access myClass.instanceOfAnotherClass it says the variable's not found. class MyClass: def __init__(self, instanceOfAnotherClass):

Re: How to subclass a model class?

2008-09-08 Thread Alex Chun
Thank you AmanKow. I will try adding a method to my model to "hold" the additional "field." On Sep 7, 9:57 am, AmanKow <[EMAIL PROTECTED]> wrote: > Monkey patching attributes to the instances would not be the correct > django idiom for adding a calculated field.  There is a simple and > straight

Re: Double Slash in URL

2008-09-08 Thread James Matthews
It's a regex you need to escape both slashes so you are looking at On Mon, Sep 8, 2008 at 4:04 AM, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > Hi, > > I discovered, that double slashes get through my regular expressions. > Is it possible to reject URLs with double slashes? > > http://.../

Re: New locations of mod

2008-09-08 Thread KillaBee
In this doc should I be able to paste the admin.py code and see changes, I am not. seeing anything. I wanted to see what the code did, so that I will know if I what to use this one or that one? On Sep 8, 9:44 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Sep 8, 10:39 am, KillaBee <[EMAIL PRO

Re: Comments customization

2008-09-08 Thread Thejaswi Puthraya
On Sep 8, 2:47 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Is there any document with new comment framework customization tips?   > I'd like to switch finally to 1.0 but I don't know how to accomplish   > few things (or have ugly workarounds): Well, that is one feature that hasn't been documente

Re: reverse not working with (r'^comments/(.*)', include('django.contrib.comments.urls')),

2008-09-08 Thread Malcolm Tredinnick
On Sun, 2008-09-07 at 06:18 -0700, felix wrote: > This should be dirt simple, but isn't working: > > main urls.py : > (r'^comments/(.*)', include('django.contrib.comments.urls')), This pattern says you want to *capture* anything after the "comments/" piece. So calling reverse with no parameter

Re: New locations of mod

2008-09-08 Thread KillaBee
In this doc should I be able to paste the admin.py code and see changes, I am not. seeing anything. I wanted to see what the code did, so that I will know if I what to use this one or that one? On Sep 8, 9:44 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Sep 8, 10:39 am, KillaBee <[EMAIL PRO

Re: reverse not working with (r'^comments/(.*)', include('django.contrib.comments.urls')),

2008-09-08 Thread Thejaswi Puthraya
On Sep 7, 6:18 pm, felix <[EMAIL PROTECTED]> wrote: > This should be dirt simple, but isn't working: > > main urls.py : >  (r'^comments/(.*)', include('django.contrib.comments.urls')), > > comments.urls.py : > > urlpatterns = patterns('django.contrib.comments.views', >     url(r'^post/$',        

Re: One-to-one and lazy or eager loading

2008-09-08 Thread Malcolm Tredinnick
On Mon, 2008-09-08 at 08:37 -0700, meppum wrote: [...] > It seems that one-to-one relationships are by default lazy loaded, > which is pretty cool as there are a few ORMs out there that don't > support this feature fully (hibernate). Django treats OneToOneFields as a normal relation. It doesn't

Python literal to equivalent model with efficient updates

2008-09-08 Thread Andrew Ingram
This may have been asked and answered before, but it's hard to figure out what terminology I should be using. Say I have a couple (or more of models) that are related using foreign keys, like so: class Publication(models.Model): title = models.CharField(max_length=250) isbn13 = mod

django-recommender, a plugable for collective intelligence based recommendations

2008-09-08 Thread bcurtu
Hi, I have just committed my first django pluggable (app), it's a recommendation engine called django-recommender: http://code.google.com/p/django-recommender/ Using this app in combination with django-voting, you can get answers to the following questions: * Which one is the best item for me?

Install

2008-09-08 Thread Anderson Sousa
Hi I'm trying to create a Django project, but its returning an error message in syntax on this command: django-admin.py startproject mysite its telling like this command "startproject" doesn't exist. Can someone help me? --~--~-~--~~~---~--~~ You received this

Re: Install

2008-09-08 Thread Karen Tracey
On Mon, Sep 8, 2008 at 2:11 PM, Anderson Sousa <[EMAIL PROTECTED]> wrote: > > Hi I'm trying to create a Django project, but its returning an error > message in syntax on this command: > > django-admin.py startproject mysite > > its telling like this command "startproject" doesn't exist. Can > som

disable delete checkbox in Inline formset

2008-09-08 Thread Kurczak
Hi there, Is there any way to disable/remove the delete checkbox for inline formsets ( in admin) ? I found nothing about it in docs, and I believe there's no way to pass the 'can_delete' parameter to inlineformset_factory. Obviously I can disable the "Can delete" permission, but the ugly box is st

Re: disable delete checkbox in Inline formset

2008-09-08 Thread David Zhou
On Sep 8, 2008, at 2:30 PM, Kurczak wrote: > Is there any way to disable/remove the delete checkbox for inline > formsets ( in admin) ? > I found nothing about it in docs, and I believe there's no way to pass > the 'can_delete' parameter to inlineformset_factory. Obviously I can > disable the "Ca

Re: Double Slash in URL

2008-09-08 Thread David Zhou
On Sep 8, 2008, at 7:04 AM, Thomas Guettler wrote: > I discovered, that double slashes get through my regular expressions. > Is it possible to reject URLs with double slashes? > > http://.../...//test// (double slash before and after "test") Another way to approach it is to allow variable amoun

Re: disable delete checkbox in Inline formset

2008-09-08 Thread Kurczak
On 8 Wrz, 20:37, David Zhou <[EMAIL PROTECTED]> wrote: > On Sep 8, 2008, at 2:30 PM, Kurczak wrote: > > > Is there any way to disable/remove the delete checkbox for inline > > formsets ( in admin) ? > > I found nothing about it in docs, and I believe there's no way to pass > > the 'can_delete' p

Re: Help with Date Based Generic Views and Permalink

2008-09-08 Thread Daniel Roseman
On Sep 8, 4:37 pm, [EMAIL PROTECTED] wrote: > Hey all, > > I have this code: > > http://dpaste.com/76671/ > > When I go to the URL it doesn't display the page, but it also doesn't > display and errors with the URL. What is wrong with the permalink > instance? > > Also, is there a workaround for us

Re: Comments customization

2008-09-08 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-09-08, o godz. 19:13, przez Thejaswi Puthraya: >> Is there any document with new comment framework customization tips? >> I'd like to switch finally to 1.0 but I don't know how to accomplish >> few things (or have ugly workarounds): > > Well, that is one feature t

new ModelAdmin set up

2008-09-08 Thread KillaBee
I am editing my Admin.py to use the new ModelAdmin. All my change has no effect. I wanted it to come up with all my app automaticlly. I have this in my urls.py: from django.contrib import admin . . . (r'^admin/(.*)', admin.site.root), == and my admin.py l

Re: new ModelAdmin set up

2008-09-08 Thread Martin Zimmerman
You need to add: admin.autodiscover() in your urls.py Regards, Martin On Sep 8, 9:14 pm, KillaBee <[EMAIL PROTECTED]> wrote: > I am editing my Admin.py to use the new ModelAdmin.  All my change has > no effect.  I wanted it to come up with all my app automaticlly. > > I have this in my urls.p

Re: new ModelAdmin set up

2008-09-08 Thread KillaBee
It's in there the whole thing looks like this: from django.conf.urls.defaults import * from django.contrib import admin #from intraweb.apps.timesheets.admin import basic_site, advanced_site admin.autodiscover() info_dict = { 'app_label': 'timesheets', 'module_name': 'entrys', 'date_field':

Re: Double Slash in URL

2008-09-08 Thread Ned Batchelder
This isn't true: forward slashes are not meaningful in Python regular expressions, and so do not need to be escaped. Even if you choose to (it doesn't hurt), you'd escape them with backslashes, not forward slashes. --Ned. http://nedbatchelder.com James Matthews wrote: > It's a regex you need t

Re: Introducing django-cms

2008-09-08 Thread oso che bol
Helo Thomas, Could you tell me how can i download codes support for Tinymce? Thanks and Regards, -LN On Mon, Sep 8, 2008 at 10:15 AM, Thomas Steinacher <[EMAIL PROTECTED]>wrote: > > Hello Djangonauts! > > I would like to introduce django-cms, a free, BSD-licensed content > management system bas

Apache httpd conf with mod_python

2008-09-08 Thread mccomas . chris
Setting our Apache server at work, got everything installed. In the httpd.conf there's quite a bit of content, do I need that content, or should I just replace it with what I need for Django? --~--~-~--~~~---~--~~ You received this message because you are subscribed

How to use generic view direct_to_template with extra_context

2008-09-08 Thread Abdallah El Guindy
Hey all, I want to use the generic view direct_to_template and to pass to it extra parameters in the urls.py I tried doing the following but doesn't work (r'^about/$', 'django.views.generic.simple.direct_to_template', {'template': 'main.html'}, extra_context={'about': True}), What am I missing?

How to use search/filter capabilities from the admin?

2008-09-08 Thread Martin Zimmerman
The site have a primary model with text fields and three associated models that also should be included in the search. There will be a few million posts for each model. Is it possible to implement the same search and filter capabilities that the admin interface provides or should I rather use som

Re: How to use generic view direct_to_template with extra_context

2008-09-08 Thread lingrlongr
slight change... (r'^about/$', 'django.views.generic.simple.direct_to_template', { 'template': 'main.html', 'extra_context': { 'about': True, } }), On Sep 8, 3:44 pm, "Abdallah El Guindy" <[EMAIL PROTECTED]> wrote: > Hey all, > > I want to use the generic view direct_to_template and to

Re: Introducing django-cms

2008-09-08 Thread Antoni Aloy
2008/9/8 Thomas Steinacher <[EMAIL PROTECTED]> > > Hello Djangonauts! > > I would like to introduce django-cms, a free, BSD-licensed content > management system based on Django. It is seamlessly integrated with > Django's admin interface and supports a hierarchical page structure, > internationali

Re: new ModelAdmin set up

2008-09-08 Thread Daniel Roseman
On Sep 8, 8:14 pm, KillaBee <[EMAIL PROTECTED]> wrote: > I am editing my Admin.py to use the new ModelAdmin.  All my change has > no effect.  I wanted it to come up with all my app automaticlly. > > I have this in my urls.py: > from django.contrib import admin > . > . > . > (r'^admin/(.*)', admin.

Re: disable delete checkbox in Inline formset

2008-09-08 Thread Daniel Roseman
On Sep 8, 7:55 pm, Kurczak <[EMAIL PROTECTED]> wrote: > On 8 Wrz, 20:37, David Zhou <[EMAIL PROTECTED]> wrote:> On Sep 8, 2008, at > 2:30 PM, Kurczak wrote: > > > > Is there any way to disable/remove the delete checkbox for inline > > > formsets ( in admin) ? > > > I found nothing about it in doc

Re: How to use generic view direct_to_template with extra_context

2008-09-08 Thread Abdallah El Guindy
Thanks for the quick reply... that solved it! On Mon, Sep 8, 2008 at 9:53 PM, lingrlongr <[EMAIL PROTECTED]> wrote: > > slight change... > > (r'^about/$', 'django.views.generic.simple.direct_to_template', { > 'template': 'main.html', > 'extra_context': { > 'about': True, > } > }), > > On S

Nokia Guys

2008-09-08 Thread Cortland Klein
At DjangoCon, I met two guys from Nokia, but did not get their cards. If you're out there, let me know; I'd like to get in touch with you. Thanks! -- Cortland Klein <[EMAIL PROTECTED]> +1 408 506 9791 Web Developer, Retail Training Apple Inc. 10101 Bubb Rd. Cupertino, CA 95014 http://apple.com

template questions

2008-09-08 Thread Tonu Mikk
These are probably an extreme newby questions, but I cannot figure it out. 1. I am working through the tutorial for building a Polls application. On part 3 it talks about creating public views for the applications. I would like to modify the index template to present a list of polls and hav

cannot import name entrys

2008-09-08 Thread KillaBee
I keep getting this error on this view named timesheets, the code looks like this. === from django.db import models from django.contrib.auth.models import User #from django.contrib.auth.models import users from django.oldforms import FormField, vali

Re: disable delete checkbox in Inline formset

2008-09-08 Thread David Zhou
On Sep 8, 2008, at 2:55 PM, Kurczak wrote: > On 8 Wrz, 20:37, David Zhou <[EMAIL PROTECTED]> wrote: >> On Sep 8, 2008, at 2:30 PM, Kurczak wrote: >> >>> Is there any way to disable/remove the delete checkbox for inline >>> formsets ( in admin) ? >>> I found nothing about it in docs, and I believe

Re: Introducing django-cms

2008-09-08 Thread Thomas Steinacher
Thanks for your responses. @David Zhou: I am using mootools and a customized Nested.js which can be found at http://trac.django-cms.org/trac/browser/trunk/cms/media/nested.js (unfortunately I can't find the original script anymore on the internet). We're thinking about making this more generic

Re: cannot import name entrys

2008-09-08 Thread Daniel Roseman
On Sep 8, 9:16 pm, KillaBee <[EMAIL PROTECTED]> wrote: > I keep getting this error on this view named timesheets, the code > looks like this. > > ViewDoesNotExist: Could not import intraweb.apps.timesheets.views. > Error was: cannot import name entrys The traceback quite clearly states that th

Re: Trouble storing my custom classes in session

2008-09-08 Thread ballparkfh
It appears that implementing __getstate__ and __setstate__ properly is all it would take to make my classes pickleable. However, I don't see any information on doing this to save the classes in session. On Sep 8, 11:29 am, ballparkfh <[EMAIL PROTECTED]> wrote: > I am trying to store an instance

Re: How does django know the difference between INSERT and UPDATE

2008-09-08 Thread Gerard Petersen
Jonknee, That cleared up major! Thanx for your teachings. Regards, Gerard. jonknee wrote: >> I read that Django knows the difference between a new and a updated record, >> but it replicates the customer if I don't set the customer_id before a >> customer.save. Would somebody please shoot at

Re: template questions

2008-09-08 Thread Tonu Mikk
I got it figured out after getting the Documentation link to work in Admin pages. The documentation helped me to see that I can refer to the polls by {{poll.id}} in my template. Tonu Mikk wrote: > These are probably an extreme newby questions, but I cannot figure it out. > > 1. I am working t

Re: disable delete checkbox in Inline formset

2008-09-08 Thread Kurczak
On 8 Wrz, 22:02, David Zhou <[EMAIL PROTECTED]> wrote: > On Sep 8, 2008, at 2:55 PM, Kurczak wrote: > > On 8 Wrz, 20:37, David Zhou <[EMAIL PROTECTED]> wrote: > >> On Sep 8, 2008, at 2:30 PM, Kurczak wrote: > > >>> Is there any way to disable/remove the delete checkbox for inline > >>> formsets

Re: New locations of mod

2008-09-08 Thread Rajesh Dhawan
On Sep 8, 1:19 pm, KillaBee <[EMAIL PROTECTED]> wrote: > In this doc should I be able to paste the admin.py code and see > changes, I am not. seeing anything. I wanted to see what the code > did, so that I will know if I what to use this one or that one? Aaargh... with a top post like that, it

Re: Apache httpd conf with mod_python

2008-09-08 Thread Norman Harman
[EMAIL PROTECTED] wrote: > Setting our Apache server at work, got everything installed. In the > httpd.conf there's quite a bit of content, do I need that content, or > should I just replace it with what I need for Django? You probably don't need all of it. But I doubt anything will work if you

Re: new ModelAdmin set up

2008-09-08 Thread KillaBee
On Sep 8, 2:57 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Sep 8, 8:14 pm, KillaBee <[EMAIL PROTECTED]> > wrote: > > > > > I am editing my Admin.py to use the new ModelAdmin.  All my change has > > no effect.  I wanted it to come up with all my app automaticlly. > > > I have this in my ur

Re: cannot import name entrys

2008-09-08 Thread KillaBee
On Sep 8, 3:26 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Sep 8, 9:16 pm, KillaBee <[EMAIL PROTECTED]> > wrote: > > > I keep getting this error on this view named timesheets, the code > > looks like this. > > > > > > > ViewDoesNotExist: Could not import intraweb.apps.timesheets.views. >

Problems with tutorial part 2

2008-09-08 Thread Neil Crighton
Hi, I'm working my way through the tutorial with version 1.0. I've just started on part 2. When I try to visit the admin site, I get a huge page of text starting with: TemplateDoesNotExist at /admin/ admin/login.html Request Method: GET Request URL:http://127.0.0.1:8000/admin/ Exc

New Comments Framework admin ordering issue

2008-09-08 Thread shelbybark
I recently converted my personal site over to using django 1.0. So, I followed the upgrading guide for moving my old comments over to using the new comments. However, since the upgrade, I've noticed the ordering of the comments in the admin seems to be chronological, rather than reversed to see th

Re: cannot import name entrys

2008-09-08 Thread Karen Tracey
On Mon, Sep 8, 2008 at 6:06 PM, KillaBee < [EMAIL PROTECTED]> wrote: > On Sep 8, 3:26 pm, Daniel Roseman <[EMAIL PROTECTED]> > wrote: > > On Sep 8, 9:16 pm, KillaBee <[EMAIL PROTECTED]> > > wrote: > > > > > I keep getting this error on this view named timesheets, the code > > > looks like this. >

Django 1.0 GIS Module (aka GeoDjango) and MySQL

2008-09-08 Thread [EMAIL PROTECTED]
Does anyone know if the layermapping utility of the django gis module supports a MySQL database backend, I keep getting error messages about not being able to import GeometryColumns from django.contrib.gis.models? --~--~-~--~~~---~--~~ You received this message beca

Re: Problems with tutorial part 2

2008-09-08 Thread Karen Tracey
On Mon, Sep 8, 2008 at 6:29 PM, Neil Crighton <[EMAIL PROTECTED]>wrote: > > Hi, > > I'm working my way through the tutorial with version 1.0. I've just > started on part 2. When I try to visit the admin site, I get a huge > page of text starting with: > > TemplateDoesNotExist at /admin/ > > admin

Re: New Comments Framework admin ordering issue

2008-09-08 Thread Karen Tracey
On Mon, Sep 8, 2008 at 6:43 PM, shelbybark <[EMAIL PROTECTED]> wrote: > > I recently converted my personal site over to using django 1.0. So, I > followed the upgrading guide for moving my old comments over to using > the new comments. However, since the upgrade, I've noticed the > ordering of the

Re: Introducing django-cms

2008-09-08 Thread oso che bol
Hello Thomas, On Mon, Sep 8, 2008 at 4:17 PM, Thomas Steinacher <[EMAIL PROTECTED]>wrote: > Thanks for your responses. > > > @David Zhou: > I am using mootools and a customized Nested.js which can be found at > http://trac.django-cms.org/trac/browser/trunk/cms/media/nested.js > (unfortunately I c

Re: New Comments Framework admin ordering issue

2008-09-08 Thread shelbybark
Ah, yes. Very good. I'll keep a watch on that. Thanks! On Sep 8, 6:19 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Sep 8, 2008 at 6:43 PM, shelbybark <[EMAIL PROTECTED]> wrote: > > > I recently converted my personal site over to using django 1.0. So, I > > followed the upgrading guide

Admin 500 Error

2008-09-08 Thread Bret W
I can only get this error to show up if DEBUG is set to False, but it happens consistently when debugging is off. MOD_PYTHON ERROR ProcessId: 10229 Interpreter:'webfaction.com' ServerName: 'webfaction.com' DocumentRoot: '/home/user/webapps/mysite/django_static' URI:'

  1   2   >