Re: Changing default app url in development server

2009-02-03 Thread Ian Lewis
What are you trying to do? If your development appserver is conflicting with a locally installed apache then why not just use a different port? python manage.py runserver 8001 2009/2/4 knight > > Hi, > > My question is: > > Is there a way to change my default app url in

Re: Overriding admin template: index.html

2009-02-03 Thread Kenneth Gonsalves
On Wednesday 04 Feb 2009 1:18:53 pm knight wrote: > I want to override admin template: index.html. > I have found the template but not the view that renders it. > Maybe someone know how django rendering index.html template and where > I can find the view? does this help?

Overriding admin template: index.html

2009-02-03 Thread knight
Hi, I want to override admin template: index.html. I have found the template but not the view that renders it. Maybe someone know how django rendering index.html template and where I can find the view? Thanks, Arshavski Alexander. --~--~-~--~~~---~--~~ You

Changing default app url in development server

2009-02-03 Thread knight
Hi, My question is: Is there a way to change my default app url in development server from http://localhost:8000 to http://localhost:8000/peergw. If it's a problem, maybe someone have a good reference for configuring apache server on MAC. Regards, Arshavski Alexander.

Re: Coming Soon

2009-02-03 Thread John M
django is probably the most updated doc and program I've used. If you watch the community section for feeds of all the blogs and postings, you'll find tons of great information. This group is your second best place to be. There are tons of django sites, etc. I think if you poke around, you'll

Re: #django community etiquette observations

2009-02-03 Thread sierramtns
im really surprised by: 1. the attitude of "hey, i got my what i wanted, i dont mind some abuse along with it." what? honestly? i agree with the "be helpful, be nice, or be quiet" and dont think its fair to bend the rules. 2. tap-dancing around Magus- because he's the most helpful if Magus- is,

Re: getting database definition in line

2009-02-03 Thread Eric Abrahamsen
On 2月4日, 下午12时03分, Malcolm Tredinnick wrote: > On Tue, 2009-02-03 at 19:47 -0800, Eric Abrahamsen wrote: > > > On Feb 4, 11:25 am, Malcolm Tredinnick > > wrote: > > > On Tue, 2009-02-03 at 19:10 -0800, Eric Abrahamsen wrote: > > > > Hi

Re: Can't start admin in web tutorial

2009-02-03 Thread andrewz
Thanks for the prompt reply. I am working from 1.0.2, and, yes, I tried altering the urlpattern to match the online docs after the urlpattern I uncommented didn't work. I had been working through The Definitive Guide to Django, but it's based off 0.96, so I hit a snag when I got to the admin

Re: Can't start admin in web tutorial

2009-02-03 Thread Karen Tracey
On Wed, Feb 4, 2009 at 1:22 AM, andrewz wrote: > > I'm a Django newbie, as the subject suggests, and couldn't find this > problem addressed in this group's archives. > > I've done the following, as per the web tutorial: > • Add "django.contrib.admin" to INSTALLED_APPS

Can't start admin in web tutorial

2009-02-03 Thread andrewz
I'm a Django newbie, as the subject suggests, and couldn't find this problem addressed in this group's archives. I've done the following, as per the web tutorial: • Add "django.contrib.admin" to INSTALLED_APPS setting. • Run python manage.py syncdb. • Edit mysite/urls.py file and uncomment the

Re: #django community etiquette observations

2009-02-03 Thread Kenneth Gonsalves
On Wednesday 04 Feb 2009 11:31:28 am Russell Keith-Magee wrote: > > there was a long flame war about this on the developer list some time > > back. The general consensus is that Magus- is perhaps the most valuable > > person on the channel and most of us do not mind being 'insulted' as long > >

Re: #django community etiquette observations

2009-02-03 Thread Russell Keith-Magee
On Wed, Feb 4, 2009 at 2:16 PM, Kenneth Gonsalves wrote: > > On Wednesday 04 Feb 2009 1:57:46 am sierramtns wrote: >> there are certainly other people acting as such in varying degrees, >> and i only cite Magus- because of the twitter feed and django log >> entry being

Re: #django community etiquette observations

2009-02-03 Thread alex.gay...@gmail.com
On Feb 4, 12:37 am, Israel Dacanay Canasa wrote: > Yup, just don't mind getting insulted. Since Magus is helping a lot of > people, the least others can do in return is to make him feel good. > > ^:)^ to Magus > > On Wed, Feb 4, 2009 at 1:16 PM, Kenneth Gonsalves >

Re: #django community etiquette observations

2009-02-03 Thread Israel Dacanay Canasa
Yup, just don't mind getting insulted. Since Magus is helping a lot of people, the least others can do in return is to make him feel good. ^:)^ to Magus On Wed, Feb 4, 2009 at 1:16 PM, Kenneth Gonsalves wrote: > > On Wednesday 04 Feb 2009 1:57:46 am sierramtns wrote: >

Re: #django community etiquette observations

2009-02-03 Thread Kenneth Gonsalves
On Wednesday 04 Feb 2009 1:57:46 am sierramtns wrote: > there are certainly other people acting as such in varying degrees, > and i only cite Magus- because of the twitter feed and django log > entry being available to exemplify this pattern of behavior (god help > me if ive started a flamewar.)

Re: Displaying Data from Multiple Tables

2009-02-03 Thread Alexiski
Can anyone help with this - I found some code in the QuerySet API reference # Hits the database. e = Entry.objects.select_related().get(id=5) # Doesn't hit the database, because e.blog has been prepopulated # in the previous query. b = e.blog As opposed to getting a single id, I couldn't find

Re: Form Data is not saving to database

2009-02-03 Thread Praveen
Oops... yeah Brian that i forgot to make it as a foriegn key to the user table and that might be surprised without making foriegn key i did not get any error even though my settings.DEBUG is true. but now i made user field in MemberProfile but the same problem my form data is not saving to

Re: getting database definition in line

2009-02-03 Thread Malcolm Tredinnick
On Tue, 2009-02-03 at 19:47 -0800, Eric Abrahamsen wrote: > > > On Feb 4, 11:25 am, Malcolm Tredinnick > wrote: > > On Tue, 2009-02-03 at 19:10 -0800, Eric Abrahamsen wrote: > > > Hi there, > > > > > I'm unable to do any testing -- my fixtures fail with a "Duplicate >

Re: getting database definition in line

2009-02-03 Thread Eric Abrahamsen
On Feb 4, 11:25 am, Malcolm Tredinnick wrote: > On Tue, 2009-02-03 at 19:10 -0800, Eric Abrahamsen wrote: > > Hi there, > > > I'm unable to do any testing -- my fixtures fail with a "Duplicate > > Entry" error when loading. From what I've googled, this might have > >

Re: Best practices: database connection over SSL?

2009-02-03 Thread Malcolm Tredinnick
On Tue, 2009-02-03 at 21:30 -0600, James Bennett wrote: > On Tue, Feb 3, 2009 at 9:22 PM, Jeff Hammerbacher wrote: > > I could modify the call to Database.connect() in > > django/db/backends/mysql/base.py, but that's not the most elegant > > implementation. Does anyone have

Re: Best practices: database connection over SSL?

2009-02-03 Thread Jeff Hammerbacher
Thanks James, that's just what I was looking for. On Tue, Feb 3, 2009 at 7:30 PM, James Bennett wrote: > > On Tue, Feb 3, 2009 at 9:22 PM, Jeff Hammerbacher > wrote: > > I could modify the call to Database.connect() in > >

Re: Best practices: database connection over SSL?

2009-02-03 Thread James Bennett
On Tue, Feb 3, 2009 at 9:22 PM, Jeff Hammerbacher wrote: > I could modify the call to Database.connect() in > django/db/backends/mysql/base.py, but that's not the most elegant > implementation. Does anyone have ideas on how to proceed in a > Django-approved fashion?

Re: getting database definition in line

2009-02-03 Thread Malcolm Tredinnick
On Tue, 2009-02-03 at 19:10 -0800, Eric Abrahamsen wrote: > Hi there, > > I'm unable to do any testing -- my fixtures fail with a "Duplicate > Entry" error when loading. From what I've googled, this might have > something to do with a mismatch between my model definitions and the > sql table

Best practices: database connection over SSL?

2009-02-03 Thread Jeff Hammerbacher
Hey, I'd like to ensure that all communications between my Django app and its database occur over SSL. I'm using MySQL as a backend, and have configured the server with SSL support. Given that Django uses MySQLdb as its MySQL client, I know that I can get an encrypted connection with:

getting database definition in line

2009-02-03 Thread Eric Abrahamsen
Hi there, I'm unable to do any testing -- my fixtures fail with a "Duplicate Entry" error when loading. From what I've googled, this might have something to do with a mismatch between my model definitions and the sql table definition. This fails on a model that I've done a lot of manual sql

Re: queryset iteration

2009-02-03 Thread Malcolm Tredinnick
On Tue, 2009-02-03 at 15:06 -0800, Casey Deccio wrote: > Hi, > > I'm using django 1.0.2. I have an model with a large number of > records. I was hoping that the built-in iteration on queryset objects > would reduce the memory requirement, but it is using up all my memory > (and swap), and I'm

Re: Session variables

2009-02-03 Thread Malcolm Tredinnick
On Tue, 2009-02-03 at 13:52 -0800, Vladimir Shulyak wrote: > Any progress on this problem? > I've got exactly the same problem with sessions on ubuntu/database- > backend sessions. But the most interesting thing that variables like > instances of large classes are deleted while simple instances

Re: Sessions Unexpectedly Causing Logout

2009-02-03 Thread Graham Dumpleton
On Feb 4, 6:43 am, SnappyDjangoUser wrote: > I am having a weird issue in which users are randomly logged out of > the site and redirected to the login page.  They must re-enter > credentials before being able to continue browsing the site.  The > weird thing is I only see

Coming Soon

2009-02-03 Thread timlash
Hello! Just finished the four part tutorial and I'm excited to learn more. I can't help but notice that both the 0.96 and latest version of the tutorial end with the same "Coming Soon" section: Coming soon The tutorial ends here for the time being. Future

Re: Sessions Unexpectedly Causing Logout

2009-02-03 Thread Malcolm Tredinnick
On Tue, 2009-02-03 at 11:43 -0800, SnappyDjangoUser wrote: > I am having a weird issue in which users are randomly logged out of > the site and redirected to the login page. They must re-enter > credentials before being able to continue browsing the site. The > weird thing is I only see this on

Re: increasing upload speed

2009-02-03 Thread Malcolm Tredinnick
On Tue, 2009-02-03 at 19:27 +0100, felix wrote: > > hi- > > I'm using swfupload (flash upload widget) with the speed plugin. > It looks like I'm getting 600k/s average upload speed to my slicehost > server. > > it took me 28 mins for 140M So you mean a bit over 600 kb/s. You left off the

Re: Can't create a record with a Foreign Key: IntegrityError: (1048, "Column 'user_id' cannot be null")

2009-02-03 Thread Malcolm Tredinnick
On Tue, 2009-02-03 at 08:08 -0800, Theme Park Photo, LLC wrote: > > Ok! NOW I get it! You need to do a get to do a select by primary key > > > u=User.objects.get(username="swirsky") > > > For some reason I thought that you could get by primary key by just > creating the object with the key

Re: dev server not loading localhost urls

2009-02-03 Thread adelevie
Thank you for explaining that the ports were the issue. My little workaround is to simply run two dev servers: from command line: python manage.py runserver 8080 then open another command line window: python manage.py runserver 8000 So in my views, the url I access is on port 8080. So when I

Re: dynamically assigning settings on startup with wsgi

2009-02-03 Thread felix
nevermind moral: if it seems illogical it probably is something else On Wed, Feb 4, 2009 at 12:38 AM, felix wrote: > > adict = { > 'DATABASE_PASSWORD' : "something" > } > > in settings.py : > > locs = vars() > for key,value in adict: > locs[key] = value > > I'm

dynamically assigning settings on startup with wsgi

2009-02-03 Thread felix
adict = { 'DATABASE_PASSWORD' : "something" } in settings.py : locs = vars() for key,value in adict: locs[key] = value I'm dynamically assigning variables in settings this works in the development server (a wsgi), but NOT on the production server using mod_wsgi is there a known

Re: dev server not loading localhost urls

2009-02-03 Thread Karen Tracey
On Tue, Feb 3, 2009 at 5:54 PM, adelevie wrote: > > I am making an api. Part of the api involved serializing data which > will then be deserialized on another machine. Since I am using the dev > server, I wrote a view that referenced the api, ie: > > def someview(request): >

queryset iteration

2009-02-03 Thread Casey Deccio
Hi, I'm using django 1.0.2. I have an model with a large number of records. I was hoping that the built-in iteration on queryset objects would reduce the memory requirement, but it is using up all my memory (and swap), and I'm forced to break up the chunks manually using queryset slices.

Re: How do you serialize a model that has a common base model

2009-02-03 Thread Russell Keith-Magee
On Tue, Feb 3, 2009 at 11:24 PM, souper wrote: > > Then if I try: > all_objects = list(BurgerStand.objects.all()) + list(Place.objects.all > ()) > data = serializers.serialize('xml', all_objects) > > I get all Place objects - even the ones that are not related in any >

dev server not loading localhost urls

2009-02-03 Thread adelevie
I am making an api. Part of the api involved serializing data which will then be deserialized on another machine. Since I am using the dev server, I wrote a view that referenced the api, ie: def someview(request): data = urllib2.urlopen("http://localhost:8080/some_method/? param=foo")

Re: Django contrib apps in different db schema

2009-02-03 Thread Russell Keith-Magee
On Tue, Feb 3, 2009 at 11:26 PM, haestan none wrote: > Hi, > > I'm trying to use Django for implementing new stuff in some of our legacy > apps. > All the existing apps use PostgreSQL as their database backend. Now in order > to > do this as transparent as possible, I'd like

Re: Integrating raw SQL and model objects

2009-02-03 Thread Jack Orenstein
On Feb 3, 2009, at 12:15 AM, Malcolm Tredinnick wrote: >> >> 1) How do I turn a row into a model object? There is some discussion >> of writing raw SQL in the docs (http://docs.djangoproject.com/en/dev/ >> topics/db/sql/#topics-db-sql), but I didn't see anything on turning >> the row into a

Re: Session variables

2009-02-03 Thread Vladimir Shulyak
Any progress on this problem? I've got exactly the same problem with sessions on ubuntu/database- backend sessions. But the most interesting thing that variables like instances of large classes are deleted while simple instances like integers are fine. class Cart(): items = {}

django 1.0.2, django_pagination-1.0.5, postgresql, LIMIT & OFFSET question

2009-02-03 Thread Bartek
Hi all Using django-pagination, I encounter some serious performance problems related to django-pagination. Request for every page triggers sql query returning all Post instances, here's detailed description of my problem: My model Is: class Post(models.Model): group =

#django community etiquette observations

2009-02-03 Thread sierramtns
ive been an avid django user for about 2 years, using it exclusively for about 14 months or so, and one of my favorite things about the framework is the community its brought together. the django community can take great pride in being helpful, self-perpetuating, open, and thought to be one of

Re: Displaying Data from Multiple Tables

2009-02-03 Thread Alexiski
> Note that I probably made a typo earlier, it should be > Copy.query_set.all, not Copy.query.all. In case I've continued to get it > wrong, read the documentation for the queryset API, in particular the > part about accessing reverse relations. Thanks Malcolm, i'll check this out and hopefully

Re: Displaying Data from Multiple Tables

2009-02-03 Thread Alexiski
Here Jon et al, http://dpaste.com/116323/ Keep in mind this is very draft-y... I'm pretty much just doing this to test and play around with getting the data. Hope this helps and thank you. -Alex On Feb 4, 1:54 am, Jon Loyens wrote: > Oops... I meant dpaste.com > > On

Re: Filter by ForeignKey reference??

2009-02-03 Thread Rajesh Dhawan
> I have two simple models: > > class Country(models.Model): > name = models.CharField(_("Name"), max_length=50, > unique=True) > > class Profile(models.Model): > name = models.CharField(_("Name"), max_length=50, > unique=True) > country = models.ForeignKey(Country)

Re: Nosetests. maximum recursion depth exceeded

2009-02-03 Thread Oleg Oltar
Well seems I found the solution. I just moved the project folder in my repo (so now we have repo->myproject), so the name myproject will not change after cloning, and now it all works Any idea why? On Tue, Feb 3, 2009 at 9:05 PM, Oleg Oltar wrote: > Seems no :( > I tried

Re: Template Tag Not Rendering

2009-02-03 Thread JimT
Dan, thanks for replying so quickly. I neglected to note that I'm forced to use version .96 for this project as it's legacy code shared by other sites. I copied the safestring module into my utils directory and it all worked like a charm. Thanks very much for your help! On Feb 3, 1:11 pm,

Re: Template Tag Not Rendering

2009-02-03 Thread Daniel Roseman
JimT wrote: > I've searched pretty much everywhere and I still can't get my simple > template tag working. > > It's supposed to simply return a list of strings which I can output in > a template for loop. Currently it takes no parameters but eventually > I'd like to pass it a string to format the

Limiting available fields in admin for non-superusers

2009-02-03 Thread Rodrigo C.
After following this article: http://www.b-list.org/weblog/2008/dec/24/admin/ I have managed to implement admin users editing and seeing only their own records (yay). However, I would like to be able to limit the fields users see based on if they're superusers or not (i.e.: superusers see all

Re: Custom Aggregate Objects

2009-02-03 Thread alex.gay...@gmail.com
On Feb 3, 1:29 pm, nsitarz wrote: > Well I've successfully subclassed the base aggregate class from > Russell above and it works as expected, however when I try and group > by my new aggregate field I get a FieldError. This makes sense to me > because when I call values on

Re: mptt usage

2009-02-03 Thread adelevie
mptta is slow as hell On Feb 3, 4:50 am, vicalloy wrote: > I think mptt have good doc.http://code.google.com/p/django-mptt/ > mptt just a set of function to build tree efficient. > > 2009/2/3 Muslu Yüksektepe : > > > i did try it too but i deleted.

Re: ImageField, width_field, height_field not working

2009-02-03 Thread A Melé
It seems that after rev. 9766 ImageFieldFile's save() method (where it sets values for height_field and width_field) is bypassed when saving the file (at least with the admin). I use FieldFiles that inherit from ImageFieldFile (for example in django-thumbs code (thanks for reporting the issue,

Re: Limiting available fields in admin for non-superusers

2009-02-03 Thread Rodrigo C.
Never mind, it was easy. Basically, overriding the "get_form": def get_form(self, request, obj=None, **kwargs): if request.user.is_superuser: self.exclude = None On Feb 3, 5:42 pm, "Rodrigo C." wrote: > After following this

Template Tag Not Rendering

2009-02-03 Thread JimT
I've searched pretty much everywhere and I still can't get my simple template tag working. It's supposed to simply return a list of strings which I can output in a template for loop. Currently it takes no parameters but eventually I'd like to pass it a string to format the URL as well however it

Re: FileField and moving or updating files

2009-02-03 Thread felix
and btw. if you have any wisdom regarding uploading really large files then please share ! I posted another thread on that. On Tue, Feb 3, 2009 at 8:50 PM, felix wrote: > > oh if its already where you want it (as long as its in the MEDIA ROOT) > then just set the file

Re: FileField and moving or updating files

2009-02-03 Thread felix
oh if its already where you want it (as long as its in the MEDIA ROOT) then just set the file field with the string: obj.filefield = "path/to/file.mov" obj.save() I might be wrong on this, but : if you are working with a File that has a path, then you aren't really moving it. say its in

Re: Strange "problem" with tutorial

2009-02-03 Thread Joshua Russo
On Feb 3, 6:04 pm, Adam Yee wrote: > On Feb 3, 9:49 am, Joshua Russo wrote: > > > I'm working through the tutorials and have encountered a strange > > problem. So far everything works but Python doesn't acknowledge my > > base site as a package.

Sessions Unexpectedly Causing Logout

2009-02-03 Thread SnappyDjangoUser
I am having a weird issue in which users are randomly logged out of the site and redirected to the login page. They must re-enter credentials before being able to continue browsing the site. The weird thing is I only see this on my production machine and not on my development box (both serving

Re: FileField and moving or updating files

2009-02-03 Thread azimix79
Hi, I have the same problem as above. I'm sure your solution works Felix, but it is important for me to avoid resaving the files (as they can be well over 500Mb-1Gb in size). The ideal solution would be to just change the path in the model without having to resave the file. Any help is

Re: Nosetests. maximum recursion depth exceeded

2009-02-03 Thread Oleg Oltar
Seems no :( I tried to manually specify correct path os.environ['DJANGO_SETTINGS_MODULE'] = 'db_settings.settings' but have same issue :( (NOTE, i didn't create it with startpoject command, I just cloned project from repo. May it help to understand the issue?) On Tue, Feb 3, 2009 at 8:59 PM,

Re: Strange "problem" with tutorial

2009-02-03 Thread Adam Yee
On Feb 3, 9:49 am, Joshua Russo wrote: > I'm working through the tutorials and have encountered a strange > problem. So far everything works but Python doesn't acknowledge my > base site as a package. So everywhere that you see a reference like > "mysite.poll" I need

Re: Nosetests. maximum recursion depth exceeded

2009-02-03 Thread Oleg Oltar
Why it worked before I tried to change settings.py? Why actually site works? Maybe something is in my tests? Btw, my code organized this way: /proj urls.py settings ./app tests.py urls.py As I changed the project name I also hacked the tests file so now it contains

Re: Custom Aggregate Objects

2009-02-03 Thread nsitarz
Well I've successfully subclassed the base aggregate class from Russell above and it works as expected, however when I try and group by my new aggregate field I get a FieldError. This makes sense to me because when I call values on the queryset the new field hasn't been created yet. Here's an

increasing upload speed

2009-02-03 Thread felix
hi- I'm using swfupload (flash upload widget) with the speed plugin. It looks like I'm getting 600k/s average upload speed to my slicehost server. it took me 28 mins for 140M but down (served through apache) is way way faster. part of that must be the asymmetrical DSL connection, and part must

Re: Custom Aggregate Objects

2009-02-03 Thread nsitarz
Wow that was fast and is exactly what I was looking for :D Thanks, Nick. On Feb 3, 4:04 am, Russell Keith-Magee wrote: > On Tue, Feb 3, 2009 at 8:34 PM, Russell Keith-Magee > > > > wrote: > > On Tue, Feb 3, 2009 at 11:16 AM,

Strange "problem" with tutorial

2009-02-03 Thread Joshua Russo
I'm working through the tutorials and have encountered a strange problem. So far everything works but Python doesn't acknowledge my base site as a package. So everywhere that you see a reference like "mysite.poll" I need to use only "poll". I think that my problems stem from the following section

Design Question

2009-02-03 Thread mguthrie
I'm looking at creating an application that would use Django Auth for managing users but once logged in the user will "belong" only to a specific organization and can only work with data associated with that organization. I've looked at using the Django Sites contrib but I would like something

Re: Change widgets in ModelFormSet

2009-02-03 Thread juanefren
Yes, I missed that possible solution, It worked, Thankyou! On Jan 30, 6:46 pm, Antoni Aloy wrote: > 2009/1/31juanefren: > > > I am using modelformset_factory, to show forms and is working good, my > > question now is, how can I modify widgets created

Re: Nosetests. maximum recursion depth exceeded

2009-02-03 Thread Steve Holden
Oleg Oltar wrote: [...] > > sub_match = pattern.resolve(new_path) > File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", > line 181, in resolve > sub_match = pattern.resolve(new_path) > File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", > line 181,

Re: Form Data is not saving to database

2009-02-03 Thread Brian Neal
On Feb 3, 6:36 am, Praveen wrote: > http://dpaste.com/116096/ The user field in your MemberProfile is a CharField (I was expecting it to be a ForeignKey to the User table). I think the problem is you can't assign request.user to a CharField (line 31). I'm

Re: ifequal and DateQuerySet objects

2009-02-03 Thread Bret W
On Feb 3, 10:03 am, brad wrote: > You could use the built-in __str__ method on now.year. > In [11]: now.year.__str__() > Out[11]: '2009' > > In [12]: now.year.__str__() == '2009' > Out[12]: True > > In your template you'd do something like this: > {% ifequal year

Re: Can't create a record with a Foreign Key: IntegrityError: (1048, "Column 'user_id' cannot be null")

2009-02-03 Thread Theme Park Photo, LLC
Ok! NOW I get it! You need to do a get to do a select by primary key u=User.objects.get(username="swirsky") For some reason I thought that you could get by primary key by just creating the object with the key specified... --~--~-~--~~~---~--~~ You received

Re: Can't create a record with a Foreign Key: IntegrityError: (1048, "Column 'user_id' cannot be null")

2009-02-03 Thread Theme Park Photo, LLC
Thanks! That was a little unintuitive because, of course, I was only trying to do a "SELECT" on u and an INSERT on R. Save seems like it would do something to u On Feb 2, 10:39 pm, Malcolm Tredinnick wrote: > On Mon, 2009-02-02 at 22:22 -0800, Theme Park Photo, LLC

Re: Redirect with reverse

2009-02-03 Thread Daniel Roseman
On Feb 3, 2:34 pm, Edgard Matos wrote: > Hello! > > I need help! > In my project, I need authenticate user in a module and sends user to > previews page. > > I was try so: > >   url_to_redirect = request.get_full_path() >       return

Re: Django Admin module without login feature

2009-02-03 Thread Ales Zoulek
You should be more verbose about "some of the features of django administration". Maybe you don't need django.contrib.admin,but just ModelForm, or other parts outside of admin it self. Regards, Ales On Wed, Jan 28, 2009 at 2:38 PM, Saurav wrote: > > Hi All, > > I wanted to

Re: ifequal and DateQuerySet objects

2009-02-03 Thread brad
On Feb 2, 6:37 pm, Bret W wrote: > I've run into a problem with ifequal in one of my templates. > > I'm using date-based generic view to display all objects for a given > year. > urls.py: > (r'^taken/(?P\d{4})/$' ... > > Part of the extra_context I pass is a DateQuerySet

Re: Displaying Data from Multiple Tables

2009-02-03 Thread Jon Loyens
Oops... I meant dpaste.com On Feb 3, 8:54 am, Jon Loyens wrote: > Alex, would you mind posting your complete template at dpaste.org for > us to look at?  It might clarify how you're trying to do the output. > > Thanks, > > Jon. > > On Feb 2, 11:37 pm, Alexiski

Redirect with reverse

2009-02-03 Thread Edgard Matos
Hello! I need help! In my project, I need authenticate user in a module and sends user to previews page. I was try so: url_to_redirect = request.get_full_path() return HttpResponseRedirect(reverse('users.views.add', args=(url_to_redirect,))) And in my view, users.views.add, I get the

Re: Displaying Data from Multiple Tables

2009-02-03 Thread Jon Loyens
Alex, would you mind posting your complete template at dpaste.org for us to look at? It might clarify how you're trying to do the output. Thanks, Jon. On Feb 2, 11:37 pm, Alexiski wrote: > > On Mon, 2009-02-02 at 21:21 -0800, Alexiski wrote: > > > Hi Malcolm, > > >

django sets Meta.fields to None

2009-02-03 Thread JonUK
I have the following class: class QuoteForm( ModelForm ): class Meta: fields = [ 'user', 'photo', 'created', 'usage', 'complete', ] model = Quote def __init__(self, *args, **kwargs ): import pdb; pdb.set_trace() super( QuoteForm, self ).__init__( *args,

How do you serialize a model that has a common base model

2009-02-03 Thread souper
I have read the docs at: http://docs.djangoproject.com/en/dev/topics/serialization/#inherited-models That offer the following example for inherited serialization: class Place(models.Model): name = models.CharField(max_length=50) class Restaurant(Place): serves_hot_dogs =

Django contrib apps in different db schema

2009-02-03 Thread haestan none
Hi, I'm trying to use Django for implementing new stuff in some of our legacy apps. All the existing apps use PostgreSQL as their database backend. Now in order to do this as transparent as possible, I'd like to use a different database schema for the contrib apps that come with Django (admin,

Re: Wierd FileField behavior

2009-02-03 Thread Erwin Elling
> Revision 9766 introduced some changes related to file fields, can > you try to refine your tests and see if it is the one that broke > things in your case and report back please? I tried both 9765 and 9766. Indeed, in 9765 I don't come accross the problems mentioned. In 9766 I do. Files that

Re: can't clear form data in runserver (works in shell)

2009-02-03 Thread Mark Jones
I guess I wasn't thinking completely clearly in regards to that, I'm guessing the only failures that could happen might be failure to connect to the server guess I'll need to dig into what failures could be returned and what they might mean. I did solve the problem with this one line added to

File Browser App

2009-02-03 Thread cootetom
Hi all, I'm looking for a file browser app that will enable user's to manage files on the server in a given directory. I've found this app http://code.google.com/p/django-filebrowser/ with looks great but seem's to be only for the admin interface. I need one that can be installed out side of the

Form Data is not saving to database

2009-02-03 Thread Praveen
http://dpaste.com/116096/ --~--~-~--~~~---~--~~ 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

problem with model.formset_factory

2009-02-03 Thread thanhduclee
hi all! I am really new to Django, and at the moment I have project which is something like giving feedback to mates for specific task like tutorial/assignement.. And I have a problem with the formset_factory. Any time when I try to save the form it appears the error: (Hidden field id)

Re: Wierd FileField behavior

2009-02-03 Thread thanhduclee
Cool, you saved my life On Feb 3, 10:50 pm, Ramiro Morales wrote: > On Tue, Feb 3, 2009 at 9:40 AM, Erwin Elling wrote: > > >> I went back to 9781 (which was still on my system for a previous > >> project) and the problem seems not to exist here.

Re: Custom Aggregate Objects

2009-02-03 Thread Russell Keith-Magee
On Tue, Feb 3, 2009 at 8:34 PM, Russell Keith-Magee wrote: > On Tue, Feb 3, 2009 at 11:16 AM, alex.gay...@gmail.com > wrote: >> >> On Feb 2, 9:05 pm, nsitarz wrote: >>> Hey, >>> >>> Back when the ORM aggregate support was a

Re: Wierd FileField behavior

2009-02-03 Thread Ramiro Morales
On Tue, Feb 3, 2009 at 9:40 AM, Erwin Elling wrote: > >> I went back to 9781 (which was still on my system for a previous >> project) and the problem seems not to exist here. Haven't had the time >> to dig into this any further, but maybe this helps someone else. > >

Re: Django Get/POST problem

2009-02-03 Thread Thomas Guettler
Hi, I would use the forms library, even if the form has only one input element. I would use django.http.HttpResponseRedirect() to the list view, after successful deletion. Aldo schrieb: > Hi folks, > > MY URL is x.y.z/list > It shows a list of objects. They have link buttons to delete/update >

Re: Wierd FileField behavior

2009-02-03 Thread Erwin Elling
> I went back to 9781 (which was still on my system for a previous > project) and the problem seems not to exist here. Haven't had the time > to dig into this any further, but maybe this helps someone else. Sorry, made a mistake; On 9781 the problem is still there. On 9084 (also quite randomly

Re: models created from database table

2009-02-03 Thread Ramiro Morales
On Tue, Feb 3, 2009 at 9:29 AM, Waruna de Silva wrote: > Hi, > > In Django is it possible to created models automatically from > existing database. Yes, see http://docs.djangoproject.com/en/dev/howto/legacy-databases/#howto-legacy-databases -- Ramiro Morales

Re: Custom Aggregate Objects

2009-02-03 Thread Russell Keith-Magee
On Tue, Feb 3, 2009 at 11:16 AM, alex.gay...@gmail.com wrote: > > On Feb 2, 9:05 pm, nsitarz wrote: >> Hey, >> >> Back when the ORM aggregate support was a patch in trac I used to >> create custom aggregate objects that looked like this: >> >> class

models created from database table

2009-02-03 Thread Waruna de Silva
Hi, In Django is it possible to created models automatically from existing database. Thanks Waruna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Wierd FileField behavior

2009-02-03 Thread Erwin Elling
On Feb 3, 12:10 pm, Erwin Elling wrote: > It's probably not DrKayBee's view that's causing problems. Seems like > it's the adminviews. This was on the latest svn revision (9807). I went back to 9781 (which was still on my system for a previous project) and the problem

Re: mptt usage

2009-02-03 Thread vicalloy
I think mptt have good doc. http://code.google.com/p/django-mptt/ mptt just a set of function to build tree efficient. 2009/2/3 Muslu Yüksektepe : > i did try it too but i deleted. > > > 2009/2/3 new_user >> >> Hi, everyone. >> >> Recently I've

Re: mptt usage

2009-02-03 Thread Muslu Yüksektepe
i did try it too but i deleted. 2009/2/3 new_user > > Hi, everyone. > > Recently I've installed mptt app on my project. But I cannot find out > how to use it. Should I use it's functions manually, or could I use > admin interface to order my models in tree structure? > > Thx

  1   2   >