Re: Fwd: Re: Admin/Application Integration and Automatic Actions

2009-02-25 Thread Paul Waldo
> On Feb 25, 2:41 pm, Paul Waldo p...@waldoware.com> wrote: > >> Hi all, >> >> I am brand new to Django, so forgive me if my questions are naive :-) >> >> I have read the tutorials and I'm starting my first learning >> application. This

Re: Django nube

2009-02-26 Thread Paul Nema
The error message provides the answer: "Please fill out DATABASE_NAME in the settings module before using the database." When using sqlite3 you are required to provide a path the target DB as per comment: # Or path to database file if using sqlite3. so Add the full path to DATABASE_NAME. I.E. DAT

Obtaining URL for an Admin page

2009-02-27 Thread Paul Waldo
age where I can edit the object. How might I get the URL of this edit page? Obviously not as simple as using a URL from Admin's urls.py... Thanks in advance! Paul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Obtaining URL for an Admin page

2009-02-27 Thread Paul Waldo
- "Paul Waldo" wrote: > > Hi all, > > I'm writing an app where most of my functionality is straight Admin pages. > When viewing the detail page for an object, I can select the "View on site" > button. This will take me to some custom process

Re: Ignore Case Sensitive Property

2009-03-03 Thread Paul Nema
http://docs.djangoproject.com/en/dev/topics/db/queries/#topics-db-queries to do case insensitive try Application.objects.filter(name__iexact=searchText) iexact A case-insensitive match. So, the query: >>> Blog.objects.get(name__iexact="beatles blog") Would match a Blog titled "Beatles Blog", "

Re: getting started...with django

2009-03-04 Thread Paul Nema
After the tutorial and reading the docs, if you're the visual type, try these screencasts. Very helpful and illuminating. http://thisweekindjango.com/screencasts/?page=3 and http://showmedo.com/videos/django On Wed, Mar 4, 2009 at 11:58 AM, CLIFFORD ILKAY wrote: > mseg...@gmail.com wrote: > >

Newbie to Novice – Using Admin DateTime Picker in your Form

2009-03-19 Thread Paul Nema
I've noticed many people new to Django (and sometimes also new to Python) often post the same/similar questions in various forums. How to I get something to work and/or do you have an example for X. As I've also experienced this problem I've decided to post my little solution. Its not the only way

Override Admin list_display_links behavior

2009-07-12 Thread Paul Dorman
late (hence this request for help): http://code.djangoproject.com/ticket/9654 I'd also like to know if there's a clean way to disable the change page itself. Can this be done with URLConf? Thanks for your assistance. Paul --~--~-~--~~~---~--~~ You recei

Re: Fixtures for django.contrib.sites.Site

2009-04-01 Thread Paul Menzel
221, in JSONArray > raise ValueError(errmsg("Expecting object", s, end)) > ValueError: Expecting object: line 10 column 1 (char 124) > > > Any ideas for the correct model name? I've tried every possibility I > can think of. Is the last colon }, correct? If that does not help, use dump the data of the database and see how the syntax is. Thanks, Paul signature.asc Description: Dies ist ein digital signierter Nachrichtenteil

Re: multiple django versions in mod_python

2009-04-07 Thread paul tax
gt; > >http://groups.google.com/group/django-users/browse_thread/thread/1c5c... > > > > > PythonInterpreter django.blabla > > SetHandler python- program > > PythonHandler django.core.handlers.modpython > > SetEnv DJANGO_SETTINGS_MODULE blabla.settings >

Best way to get a proxy model instance from a base class instance

2009-04-20 Thread Paul McLanahan
I'm using a proxy model of django.contrib.auth.models.User to override __unicode__ and add some extra methods. This also means that I use my proxy model class in my ForeignKey and ManyToMany fields. This is all find and good until I need to use request.user and assign it to an instance of another

Re: Best way to get a proxy model instance from a base class instance

2009-04-20 Thread Paul McLanahan
Ryan, Thank you so much. The custom auth backend is the perfect solution. I feel silly now that I didn't think of that :) Very nice work. Hope I can pay you back someday. Paul On Apr 20, 7:26 pm, Ryan Kelly wrote: > On Mon, 2009-04-20 at 15:17 -0700, Paul McLanahan wrote: > &g

Re: i need a unlimited subcategories

2009-04-27 Thread Paul Nema
Modified Preorder Tree Traversal (mptt) http://code.google.com/p/django-mptt/ On Mon, Apr 27, 2009 at 9:52 AM, joker wrote: > > how can i use unlimited category? > > like > > category1 >subcategory1-1 > subcategory1-1-1 > subcategory1-1-2 > subcategory1-1-3 >

using id as a model field name ?

2009-05-08 Thread paul wisehart
I didn't realize that id was a python builtin function. I have a large pre-existing database that I wrote a bunch of models for. I used 'id' as the primary key field for all of them. """ class SalesQuoteItemDetail(models.Model): id = models.AutoField(primary_key=True, db_column='ID') ..

Re: using id as a model field name ?

2009-05-08 Thread paul wisehart
awesome, thanks for the replies! --paul --~--~-~--~~~---~--~~ 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 g

Django templated: iterating through fields in a database record

2009-09-21 Thread Paul Lundberg
{{ projList.projectName }} : {% endfor %} This produces an output but this gets away from the point of making a generic function.. Is this possible? Is this because the fields are not bound to a form's fields? Any help or advice would be greatly apprecriated! Thanks. Paul Lundberg -

Re: Django templated: iterating through fields in a database record

2009-09-24 Thread Paul Lundberg
Thanks, I think I will have to do that, I just thought that there might be an easy way to do this that I missed! Paul Lundberg On Sep 22, 11:56 am, Gonzalo Delgado wrote: > El Mon, 21 Sep 2009 08:43:57 -0700 (PDT) > Paul Lundberg escribió: > > > > > Hi: > > I have

changing how an admin form field is displayed (float to datetime)

2009-10-25 Thread Paul Smith
ried this But neither of these seem to override the admin's rendering of the float times and I'm not sure where that gets decided. I haven't seen any examples similar to this but would have thought it was fairly common to change the way d

Re: changing how an admin form field is displayed (float to datetime)

2009-10-26 Thread Paul Smith
Paul Smith catugmt.com> writes: > > I’ve been trying to a modify an admin form so I have a slightly different > user interface compared to the database model. > > The main problem is this; in the database model I store a start and end > time as timestamps (a float hold

Re: Another Django vs. Rails comparison

2009-11-09 Thread Paul Eastlund
. Reasonably capable python coders can jump in without as much of a learning curve. (Also, Python is a much more pleasant language to work in than Ruby, IMO.) -Paul On Mon, Nov 9, 2009 at 4:47 PM, Jason wrote: > > This is my first post to this group, but I've benefited from reading > oth

Re: domains vs sub-domains

2009-11-10 Thread Paul Menzel
Am Montag, den 09.11.2009, 21:38 -0800 schrieb Chris: > I've recently been in discussion about which is better to have. > > http://media.example.com OR > http://example.com/media/ > > 1) The first method, I've been told, allows you to make more requests. > IE for example can only make like 4 requ

Re: I want to cancel the subscription for django-users group

2009-11-17 Thread Paul Menzel
Am Dienstag, den 17.11.2009, 10:17 +0100 schrieb "Gosálvez Prados, Diana": > Quiero darme de baja la suscripción al grupo google django-users > > I want to cancel the subscription for django-users group > -- > You received this message because you are subscribed to the Google Groups > "Django u

Re: New to Django, can't get it running on the web through http://127.0.0.1:8000/

2009-12-08 Thread Paul Menzel
Am Dienstag, den 08.12.2009, 08:54 -0800 schrieb Jenn Hughes: > I'm not sure what you mean by box. »box« in this case means computer or system. Thanks, Paul signature.asc Description: Dies ist ein digital signierter Nachrichtenteil

Nesting model forms with admin

2010-04-19 Thread Spaceman Paul
d who would be interested in this sort of functionality? Would the admin maintainers have any technical or ideological reasons for rejecting a patch to implement this if I submitted one? Regards, Paul. -- You received this message because you are subscribed to the Google Groups "Django

Re: Nesting model forms with admin

2010-05-02 Thread Spaceman Paul
I can't find the ticket, Matt. If you could forward me a link, or just dig that patch up for me, I'd greatly appreciate it. Paul. On May 2, 8:41 pm, Matt Schinckel wrote: > I have a patch: it was a while ago, but I was about to dig it up > again. > > In the meantime, t

CSRF protection in admin in Django 1.2

2010-05-17 Thread Spaceman Paul
am already over-riding the templates with ones that don't have a {% csrf_token %} tag, but I'm still getting CSRF 403 errors. Regards, Paul. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: CSRF protection in admin in Django 1.2

2010-05-17 Thread Spaceman Paul
(AdminSite): csrf_protection = False I guess I'll open a ticket for it. Paul. On May 18, 10:47 am, Spaceman Paul wrote: > Hi, I just upgraded to Django 1.2 and am having some problems. > > My project contains several customised django.contrib.admin sites that > offer hig

admin fieldsets ?

2010-05-20 Thread paul wisehart
ludes/fieldset.html. I'm having trouble following the django code to see how to setup a fieldset so that that template will display the sets nicely. any ideas? do i need to clarify my question? thanks, paul w -- You received this message because you are subscribed to the Google Groups "Djan

XSD from a Django model (as per XML serializer)

2010-06-08 Thread Spaceman Paul
Is there a way to generate an XSD for the "simple xml dialect" produced by the XML serializer for a given Django model? -- 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 unsubs

Re: Django on multiple servers? (Deployment Problem)

2010-06-30 Thread Paul Gully
Oh wow. ok, so i solved that problem (it was just the sys.path thing in the wsgi file. easy fix) ,but now django is unable to open the database files to render the URLs. im using SQLite, so again, i assume the problem is that this project isn't 'native' to the computer, however that doesn't help me

Re: Django on multiple servers? (Deployment Problem)

2010-06-30 Thread Paul Gully
Ok, again. i feel like a question whore, but i think this should be the last thing. I fixed the database problem for the main app, but the admin site isnt working at all, im getting an internal server error (500) when i try to access it. halp? On Wed, Jun 30, 2010 at 10:24 PM, Paul Gully wrote

Re: Django on multiple servers? (Deployment Problem)

2010-06-30 Thread Paul Gully
, which obviously doesnt exist. anyway, sorry again, i am kinda flooding this thing. On Wed, Jun 30, 2010 at 11:02 PM, Paul Gully wrote: > Ok, again. i feel like a question whore, but i think this should be the > last thing. I fixed the database problem for the main app, but the admin >

Object permissions with user authentication

2010-07-16 Thread Paul Pepper
here is no implementation" (see http://docs.djangoproject.com/en/1.2/topics/auth/#handling-object-permissions). Could anyone elaborate on this and maybe offer some guidance, pointers, please? Many thanks, Paul. -- You received this message because you are subscribed to the Google Groups "Dja

ManyToManyField - how to constrain

2010-08-07 Thread Paul Pepper
but I haven't found anything yet. Advice very welcome. Thanks, Paul. -- 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 em

Re: How to execute some user defined codes (functions) when Django boot?

2010-08-17 Thread Paul Winkler
Seems to me that "on boot up" doesn't mean anything in a shared- nothing architecture like Django's. For example if you deploy on eg. mod_wsgi. You have no idea how long any particular thread or process is going to live, and no idea how often this "boot" code would get run. But assuming that's OK

what to do instead of adding to Query.extra_where ?

2010-09-01 Thread Paul Winkler
Hi folks, I'm working on a codebase (a fork of http://code.google.com/p/ebcode/) that is supposed to be run against Django 1.1. It has several lines like this: clone.query.extra_where += ('db_newsitem.id = db_attribute.news_item_id',) That line raises a traceback like this: Traceback (most

Re: what to do instead of adding to Query.extra_where ?

2010-09-01 Thread Paul Winkler
: clone.query.extra_where += ('db_newsitem.id = db_attribute.news_item_id',) the replacement is now: clone = clone.extra(where=('db_newsitem.id = db_attribute.news_item_id',)) Seems to work fine. On Sep 1, 11:41 pm, Paul Winkler wrote: > Hi folks, > > I'm wo

Re: Unit testing in django without using test client

2010-09-16 Thread Paul Winkler
On Sep 16, 10:11 am, girish shabadimath wrote: > thanks for reply, > actually i used unit test to test urls and other view functions,,,there is a > module called Client() in django which acts as a browser to test urls,,, > > my problem is ,i want to test other methods in my project,,, how to do >

Re: Launching Background Processes from a View

2010-09-16 Thread Paul Winkler
On Sep 16, 10:11 am, Heath wrote: > My eventual solution was to just rework the way my watcher scripts > execute. I now use celery and rabbitMQ, and let pyInotify send a new > job to any available worker. For my application, 20 or so workers is > fine and this can scale as needed. > > I'm still lo

Re: Unit testing in django without using test client

2010-09-17 Thread Paul Winkler
On Fri, Sep 17, 2010 at 10:58:19AM +0530, girish shabadimath wrote: > hi Paul, > > thanks for d reply,,,but im new to python n django,,,dint do ne python unit > testing before,,can u plz give me some links or hints to start with... http://docs.djangoproject.com/en/1.2/topics/testing/

Re: Unit testing in django without using test client

2010-09-17 Thread Paul Winkler
On Fri, Sep 17, 2010 at 10:58:19AM +0530, girish shabadimath wrote: > hi Paul, > > thanks for d reply,,,but im new to python n django,,,dint do ne python unit > testing before,,can u plz give me some links or hints to start with... http://docs.djangoproject.com/en/1.2/topics/testing/

Re: Django Tutorial

2010-10-05 Thread Paul Msegeya
[image: Learning Website Development with Django (From Technologies to Solutions)] [image: Buy] *Learning Website Development with Django (From Technologies to Solutions)

Re: output shapefiles

2010-10-12 Thread Paul Winkler
If you're using PostGIS, one option might be to call its dumper as a separate process. http://postgis.refractions.net/docs/ch04.html#id2638528 Don't know what tools exist for other spatial databases... On Oct 12, 1:50 am, Evan Bowling wrote: > Hello all! > >     I was wondering if anyone knew i

Re: HTTP load testing tools?

2010-10-13 Thread Paul Winkler
On Oct 13, 4:17 am, Chris Withers wrote: > Hey all, > > I hope this is still on topic, but what tool sets do people around here > use for doing load testing of Django projects? Same stuff as for any web project. Last time I needed something more than ab, I used funkload (it's on pypi). A bit of

Re: HTTP load testing tools?

2010-10-19 Thread Paul Winkler
On Oct 13, 10:27 am, Paul Winkler wrote: > On Oct 13, 4:17 am, Chris Withers wrote: > > > Hey all, > > > I hope this is still on topic, but what tool sets do people around here > > use for doingloadtestingof Django projects? > > Same stuff as for any web proje

Re: call more than one view action from an uri path?

2010-10-21 Thread Paul Winkler
On Oct 21, 10:39 am, Steve Holden wrote: > REST, however, has a fairly rigid one-URL-one-action structure Obligatory REST nitpick: REST maps URIs to resources, not actions. In HTTP, the HTTP methods specify the action to perform. (REST as described by Fielding also has nothing whatsoever to say

Fixtures with deferred / auto-generated primary keys?

2010-10-22 Thread Paul Winkler
It would sometimes be useful to be able to write fixtures that essentially say "I don't care what the PK of this record is, as long as I have a way for other records in this fixture to refer to it." Use case: I'd like a way to pass around useful data sets that people can load into deployments of m

Re: Fixtures with deferred / auto-generated primary keys?

2010-10-22 Thread Paul Winkler
Thanks Shawn! That was quick! Meanwhile I just discovered http://farmdev.com/projects/fixture which I have just confirmed works fine for hand-written fixtures with my app, although using python classes as fixtures feels a little odd. Nice that it's cross-platform though, it supports sqlalchemy and

Re: Fixtures with deferred / auto-generated primary keys?

2010-10-22 Thread Paul Winkler
ere. - PW On Oct 22, 12:38 pm, Paul Winkler wrote: > Thanks Shawn! That was quick! > > Meanwhile I just discoveredhttp://farmdev.com/projects/fixturewhich > I have just confirmed works fine for hand-written fixtures with my > app, although using python classes as fixtures feels

Re: Cherokee for home developing

2010-10-29 Thread Paul Menzel
/brisk. (I prefer interleaved style when replying though [1].) Thank you for all your input. […] Thanks, Paul [1] https://secure.wikimedia.org/wikipedia/en/wiki/Posting_style#Placement_of_replies signature.asc Description: This is a digitally signed message part

Reaching folders and files from webpage with django?

2010-01-07 Thread Paul Chany
and files from that webpage? Any advices will be appreciated! -- Regards, Paul Chany You can freely correct me in my English. http://csanyi-pal.info -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

problems posting data in a test

2010-02-12 Thread Paul Rubel
/usr/lib64/python2.6/site-packages/django/http/multipartparser.py", line 405, in read return self._file.read(num_bytes) File "/usr/lib64/python2.6/site-packages/django/test/client.py", line 45, in read assert self.__len >= num_bytes, "Cannot read more than the available

Re: problems posting data in a test

2010-02-16 Thread Paul Rubel
Hi Karen, Karen Tracey writes: > On Fri, Feb 12, 2010 at 3:38 PM, Paul Rubel wrote: > > > [snip] > > I can't get a test.client.Client.post()s raw_post_data to match what I > > get using my browser and the test throws an exception about reading >

Best way to access 'request' in pre_save

2010-02-18 Thread Paul Stone
I'm trying to find the best way to update a model using data from the request object (e.g request.user) before it is saved. One use case for this is updating an 'updated_by' field on a model. I've come across http://www.djangosnippets.org/snippets/476/ which suggests one way of doing this. What do

Re: Best way to access 'request' in pre_save

2010-02-19 Thread Paul Stone
> Presumably you have a view which is updating this object. The view has > access to the HttpRequest. Therefore, the easy, simple, clean and > elegant way is... to have the view set the value of that field. So do > that and ignore anyone who tells you otherwise -- > magically/secretly/implicitly t

Re: Best way to access 'request' in pre_save

2010-02-19 Thread Paul Stone
> > That's fine for one or two models. But what if I want to do this for a > > number of models, in every view? What's the best way to do that > > without code repetition? > > Using a ModelForm? > > http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ Ok, I think I understand now. ModelFo

Re: Django editor for Debian

2010-03-10 Thread Paul Menzel
Dear Nicolae, Am Dienstag, den 15.12.2009, 23:58 -0800 schrieb NMarcu: >Can you tell me a good Django editor for Debian? Something more > pretty then default text editor. Something to can edit templates also. what did you end up with? Thanks, Paul signature.asc Description: Di

Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Paul Harouff
or inter_field in f.rel.through._meta.fields: > AttributeError: type object 'Group_permissions' has no attribute > '_meta' > > I uninstalled Django development trunk and installed Django-1.1.1. Now when I run "jython manage.py runserver" I get "Err

Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Paul Harouff
On Fri, Mar 26, 2010 at 6:26 PM, Karen Tracey wrote: > On Fri, Mar 26, 2010 at 5:58 PM, Paul Harouff wrote: >> >> I uninstalled Django development trunk and installed Django-1.1.1. Now >> when I run "jython manage.py runserver" I get "Error: No module named &

Re: New User - Writing your first Django app part 1 crashed

2010-03-27 Thread Paul Harouff
ops using a CDROM. The documentation said django was 100% compatible with jython. Paul -- 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,

Re: problems using django on lighttpd with fastcig

2007-06-06 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 jordi.f schrieb: > Thanks! > > -- Jordi Funollet > > > > > thank you all, too this solved the prob :) greetz Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - ht

reduce execution time of object.count()

2007-06-07 Thread Paul Rauch
Is there a way to reduce execution time by counting objects? it's even splitted in two queries now, with only 2474487 entries ;) in django I use "model.objects.count()" SELECT COUNT(*) FROM "rainbowtables_hashes":34.552 SELECT COUNT(*) FROM "rainbowtables_has

Re: how do you link two forms to each other?

2007-06-07 Thread Paul Rauch
k about relations? http://www.djangoproject.com/documentation/model-api/#relationships greetz Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iQIVAwUBRmh0ARG67lyyQrltAQJ3jhAAjMaQkUD1egx1PqsvSc6eLIvw4

Re: How to setup Django on Apache with correct rights and owners

2007-06-20 Thread Paul Rauch
I use? root or httpd or different? > Thank you for help > L. > > I'd say you choose another user as owner than the webserver, but use it's group and then chmod 740 (all for owner read,execute for group, nothing for other) if you've other users on your server they can n

Re: Uploading multiple images via edit inline give errors when doing auto resizing ..

2007-06-22 Thread Paul Rauch
[EMAIL PROTECTED] schrieb: > Ich bin zur Zeit abwesend. Anliegen werden nicht bearbeitet. > Ausnahmen best�tigen die Regel. > > mfg Light Lan > > > > > > I'm sorry about the spamming, autoresponse now should not be sent to this addresse an

Re: Unicode branch merged into trunk

2007-07-04 Thread Paul Rauch
orms-admin (just out of interest). > > Thanks to everyone whose good work has gone into the Unicode branch. > > Cheers, > > David > thanks for the good work. *building new rpm out of a current svnsnapshot* greetz Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.

Django Blocking/ Background Jobs

2007-07-23 Thread Paul Böhm
status from them as they progress. My NIH solution would be to write a twisted job server, and communicate with it using unix domain sockets. Are there any better approaches? I'm sure someone has needed background tasks liked spidering, querying whois, downloading images,... before, without sta

Re: Django Blocking/ Background Jobs

2007-07-23 Thread Paul Böhm
Andrey, On Jul 23, 3:50 pm, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: > Paul, > > PB> Are there any better approaches? I'm sure someone has needed > PB> background tasks liked spidering, querying whois, downloading > PB> images,... before, without

Re: Why isn't my app appearing in the admin?

2007-08-14 Thread Paul Rauch
y stupid.) > > Thanks, > Rob > > inside the model class, add the class Admin. class model(models.Modell): (...your model...) class Admin(): pass #or special adminoptions greetz Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG wit

Re: How to reuse a component in numerous templates, like turbogears widgets?

2007-08-15 Thread Paul Rauch
that the Django community has a similiar tool > available, but I haven't found it yet. > > All comments are welcome. > > Matt > > > > > http://www.djangoproject.com/documentation/templates/#include this might be what you search for. greetz Paul Rauch -BEGIN PG

serving different applications for different domains

2007-08-22 Thread Paul Rauch
o let mysite/urls.py include the other urlconfs according to the domain. e.g. let poll.mydomain.com include the mysite/polls/urls.py blog.mydomain.com => mysite/polls/blog.py mydomain.com => mysite/hp/urls.py in order to always serve the data according to the domain. is there a way to do this?

Re: NameError: name 'django' is not defined .... activating the admin interface...

2007-08-22 Thread Paul Rauch
; > Does some one have a suggestion, to what I can do, to make the admin > stuff work ? > > Regards J�rn Borup > > > > it's a very minor error ;) you forgot to pass it as a string. try INSTALLED_APPS = ( 'django.contrib.admin',#notice the ' here ;) 'django.

Re: serving different applications for different domains

2007-08-22 Thread Paul Rauch
g on domain poll.example.com to /mysite.fcgi/poll/ this will work fine, but then poll will print out it's links as /poll/xyz/ which will then result in mod_rewrite calling /mysite.fcgi/poll/poll/xyz/ that's not what I want. greetz Paul Rauch -BEGIN PGP SIGNATURE- Ver

Re: Help needed

2007-08-24 Thread Paul Rauch
e a urlconf like: (r'/bla/blupp/','myview') /bla/blupp/ and /bla/blupp/?gffg=dfsdf&dfsdf=dfsdf will all call myview! the gffg is available via request.GET['gffg'] greetz Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using

Re: SCGI

2007-08-26 Thread Paul Rauch
any sucess with it on large >> sites in comparison with mod_python or FastCGI? > > Anyone? > > http://www.djangoproject.com/documentation/fastcgi/ this might help you, though I don't know for sure. greetz Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4

problems with syncdb

2007-08-26 Thread Paul Rauch
Hello * I'm using django svn, revision 5991. when trying to save this model, from django.db import models from django.contrib.auth.models import User # Create your models here. class mg_user(models.Model): userid = models.PositiveIntegerField() name = models.CharField(max_length=255) server

Re: is 40 MB RAM enough?

2007-08-26 Thread Paul Rauch
ache? Or do I go > in for more RAM? you might want to try another webserver, maybe lighttpd and then run django as fastcgi. at least its said to be more performant. http://www.djangoproject.com/documentation/fastcgi/ greetz Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Li

Re: project don't apear in the admin page

2007-08-29 Thread Paul Rauch
price = models.IntegerField() > pub_date = models.DateTimeField() > > looks like wrong indetendation to me. try this: class Cat(models.Model): name = models.CharField(max_length=200) class Admin: pass greetz Paul Rauch

Re: doc question

2007-08-30 Thread Paul Rauch
or options. > > Thanks > > http://www.djangoproject.com/documentation/model-api/#admin-options greetz Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iQIVAwUBRtaVZxG67lyyQrltAQK9mhAArJzNZkgCBk0KlIz

Getting Access to form.data from a template

2008-01-04 Thread Paul Childs
I am trying to get all the values from 'tail_number' in the form data that gets passed to a template... form.data (printed in view before response is sent back): I know that if I want access to the tail numbers in a view I can just do this: form.data.getlist('tail_number') I have tried a numbe

Re: An easier way to do this Pagination in a template?

2008-01-10 Thread Paul Childs
Take a look here too... http://code.djangoproject.com/wiki/PaginatorTag --~--~-~--~~~---~--~~ 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 unsu

Re: Where's HttpRequest?

2008-02-14 Thread Paul Childs
Try reading these http://www.djangoproject.com/documentation/request_response/ http://www.djangoproject.com/documentation/forms/ On Feb 14, 8:55 am, "Hanne Moa" <[EMAIL PROTECTED]> wrote: > I'm writing an authentication-backend and need to check if a cookie > already exists. But: how do I get ah

Overriding the JOIN type in contrib.admin's search forms?

2008-06-17 Thread Paul Winkler
Bear with me, I'm a Django novice, still reading docs... I'm trying to build my first app using django admin (release 0.96), because it's a good match to the requirements (a quick and simple CRUD application). I found a thread from last year http://groups.google.com/group/django-users/browse_thr

Re: unit testing and comparing dictionaries

2008-06-17 Thread Paul Winkler
On Jun 17, 1:46 am, "Gene Campbell" <[EMAIL PROTECTED]> wrote: > Hello Djangonauts > > I'm a noob on both Django and Python, so this question might be easy > for the experts out there. I am trying to do test first development > during the development of my model code. (I have lots of experience

Re: Overriding the JOIN type in contrib.admin's search forms?

2008-06-23 Thread Paul Winkler
Nobody cares? To me this seems like a significant bug in contrib.admin ... okay I'm filing it as such: http://code.djangoproject.com/ticket/7528 - PW On Jun 17, 2:08 pm, Paul Winkler <[EMAIL PROTECTED]> wrote: > Bear with me, I'm a Django novice, still reading docs... >

Re: Overriding the JOIN type in contrib.admin's search forms?

2008-06-24 Thread Paul Winkler
On Jun 23, 11:30 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > It's a leap from no response to nobody cares. Yes, sorry for that, I didn't mean to be rude. > One thing, though, which may have made a lot of people pass over it is that > you are reporting a problem with they way queries are cons

Re: Overriding the JOIN type in contrib.admin's search forms?

2008-07-02 Thread Paul Winkler
Followup: This bug is fully fixed on the newforms_admin branch. Thanks for the help! --~--~-~--~~~---~--~~ 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@googlegro

Error: login admin: TypeError at /admin/

2007-02-27 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 TypeError at /admin/ a2b_base64() argument 1 must be string or read-only character buffer, not array.array Request Method: POST Request URL:http://127.0.0.1:8000/admin/ Exception Type: TypeError Exception Value:a2b_base64()

Re: Error: login admin: TypeError at /admin/

2007-02-28 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 it would be very nice, if someone could help me. I still get the same error. Now I only call the site(admin), with the cookieinfo I got last time. TypeError at /test/admin/ a2b_base64() argument 1 must be string or read-only character buffer, not

Problems with Admin module, using apache2 and mod_python

2007-03-04 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello django-users, I have a problem, as you might see due to the title ;) I can't login to the adminpanel. I only get an error: TypeError at /test/admin/ a2b_base64() argument 1 must be string or read-only character buffer, not array.array Request

Testing Django App Running on Dev Server with Selenium

2007-03-08 Thread Paul Childs
I have Selenium RC running and I was wondering if someone might be able to nudge me in the right direction. I am trying to at least get my local web site, running on the Django dev server, to display in the browser without an error, nothing more. Any help would be appreciated. The following are t

Re: Testing Django App Running on Dev Server with Selenium

2007-03-09 Thread Paul Childs
Thanks for the response Malcom... > Does the same URL work if you aren't using Selenium? I'm trying to trim > down the problem to something smaller. When I type http://127.0.0.1:8000/idms/ into the address bar I do not get a Django error and the proper page is rendered. > I *suspect* there is a

Re: Testing Django App Running on Dev Server with Selenium

2007-03-09 Thread Paul Childs
#x27;s not possible to record results. Cheers, /Paul On Mar 9, 9:06 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-03-09 at 12:59 +, Paul Childs wrote: > > Thanks for the response Malcom... > > > > Does the same URL work if you aren't using Selenium?

Re: Testing Django App Running on Dev Server with Selenium

2007-03-09 Thread Paul Childs
Thanks Jeremy. > I think, since the idms pattern is not being handled by an include, > you may want this: > (r'^idms/$',"idms.general.views.idms" ), > (note the "$" at the end of the pattern). I made the change and tried again but i

Re: Testing Django App Running on Dev Server with Selenium

2007-03-11 Thread Paul Childs
Thanks for the suggestion Grig. I'll give it a shot on Monday. /Paul On 3/10/07, Grig <[EMAIL PROTECTED]> wrote: > > Paul -- have you tried running the Selenium RC server non- > interactively, then interacting with it via one of the languages it > supports? Python for exam

error in django admin module

2007-03-12 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I found an error in django. I use python 2.5 the error occurs both in the actual official released version and in the svn version. as soon as I enter the adminpage I get following error, if I have a sessioncookie. without sessioncookie no er

Django Tutorial

2007-03-15 Thread Paul Rauch
encoded_data = base64.decodestring(self.session_data) File "/usr/lib64/python2.5/base64.py" in decodestring 321. return binascii.a2b_base64(s) TypeError at /test/polls/ a2b_base64() argument 1 must be string or read-only character buffer, not array.array I really would apreciate h

Re: Django Tutorial

2007-03-15 Thread Paul Rauch
Malcolm Tredinnick schrieb: > On Thu, 2007-03-15 at 19:22 +0100, Paul Rauch wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hello, >> >> I use django with python 2.5. >> I already got the same error during tutorial step 2, but for

Re: Django Tutorial

2007-03-16 Thread Paul Rauch
n order to repeat it I just have to activate the builtin >> django-admin-module or this generic view. >> Then once I enter that page with a sessioncookie the error occurs. >> > > Searching the ticket system and the list archives for "a2b_base64" > show there have b

Re: Django Tutorial

2007-03-17 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Rauch schrieb: >>>>> TypeError at /test/polls/ >>>>> a2b_base64() argument 1 must be string or read-only character buffer, >>>>> not array.array >>>>> >>> I use openSuse

<    1   2   3   4   5   6   >