Re: Redirect to page with query string

2012-08-18 Thread Barry Morrison
I apologize, I'm new to Django and Python...I've tried every which way I know how based on what you described, and I can't find success. Here is what I'm at right now: http://dpaste.org/7JcGT/ I get this error: 'DeleteCommunityImages' object has no attribute 'GET' Full traceback: http://dpaste.

Re: Redirect to page with query string

2012-08-18 Thread Melvyn Sopacua
On 19-8-2012 2:26, Barry Morrison wrote: > I have a view that displays images and gives me the ability to delete the > images. > > View url == /account/community/images/1 (1 == event_id) Change to: . Keep passing this return_to parameter around. It helps to use the request context processor s

Redirect to page with query string

2012-08-18 Thread Barry Morrison
I have a view that displays images and gives me the ability to delete the images. View url == /account/community/images/1 (1 == event_id) That url will display all images associated with event_id=1 Each image displays a 'delete' url that calls /account/press/page/delete/{{ image.pk }} -- t

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
I figured it out. Thanks. I ran all the source scripts separately and it didn't work, but with I entered the source scripts into the terminal all at once for some reason it magically worked. I know what I'm talking about. No need to return with discontent. I've been at this for computer bus

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
On Saturday, August 18, 2012 5:54:43 PM UTC-4, Amyth wrote: > > what do you meant by "django to go into python" ?? Once you execute > "python setup.py install " from the django package it automatically > install django inside python 'site-packages'. ?? > > On Sun, Aug 19, 2012 at 3:19 AM, phil

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread Amyth Arora
what do you meant by "django to go into python" ?? Once you execute "python setup.py install " from the django package it automatically install django inside python 'site-packages'. ?? On Sun, Aug 19, 2012 at 3:19 AM, phil archambault wrote: > > > On Saturday, August 18, 2012 5:46:53 PM UTC-4, ph

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
On Saturday, August 18, 2012 5:46:53 PM UTC-4, phil archambault wrote: > > > > On Saturday, August 18, 2012 5:32:26 PM UTC-4, Daniel Roseman wrote: >> >> On Saturday, 18 August 2012 22:12:58 UTC+1, phil archambault wrote: >>> >>> >>> >>> On Saturday, August 18, 2012 5:02:03 PM UTC-4, Thomas wrote

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
On Saturday, August 18, 2012 5:32:26 PM UTC-4, Daniel Roseman wrote: > > On Saturday, 18 August 2012 22:12:58 UTC+1, phil archambault wrote: >> >> >> >> On Saturday, August 18, 2012 5:02:03 PM UTC-4, Thomas wrote: >>> >>> >>> On 2012-08-18, at 1:28 PM, phil archambault wrote: >>> >>> > Hey djang

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread Daniel Roseman
On Saturday, 18 August 2012 22:12:58 UTC+1, phil archambault wrote: > > > > On Saturday, August 18, 2012 5:02:03 PM UTC-4, Thomas wrote: >> >> >> On 2012-08-18, at 1:28 PM, phil archambault wrote: >> >> > Hey django users I'm trying to figure out how to dl and install django >> into py, but I'm n

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
On Saturday, August 18, 2012 5:02:03 PM UTC-4, Thomas wrote: > > > On 2012-08-18, at 1:28 PM, phil archambault wrote: > > > Hey django users I'm trying to figure out how to dl and install django > into py, but I'm not having any luck with this issue. I have followed the > directions down to th

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread Tom Lockhart
On 2012-08-18, at 1:28 PM, phil archambault wrote: > Hey django users I'm trying to figure out how to dl and install django into > py, but I'm not having any luck with this issue. I have followed the > directions down to the tee and issue still stands, any help help would be > greatly apprecia

Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
Hey django users I'm trying to figure out how to dl and install django into py, but I'm not having any luck with this issue. I have followed the directions down to the tee and issue still stands, any help help would be greatly appreciated! -- You received this message because you are subscribe

Re: [old question]NoReverseMatch.. I am sorry.

2012-08-18 Thread bruce
Thanks!! It is very helpful!! Have a great weekend! On Friday, August 17, 2012 6:29:06 PM UTC-4, Kurtis wrote: > > In this case, you are using a 'named URL' in the Admin namespace. Here's > two links that may help you learn a bit more about this topic. > > https://docs.djangoproject.com/en/dev/

Re: ManyToMany through parameter bug workaround.

2012-08-18 Thread Nicolas Emiliani
> > Here I can store the value for the relationship when saving the Model in > the DB. > > If anyone has a better solution, suggestion, comment or thinks this is > going > to make me rot in hell please let me know. > Well, I kept on reading and I found a clean solution : It's explained here, the

Re: Django + FAPWS doesnt show the templates/view correct

2012-08-18 Thread Amyth Arora
Your Static Dir is not defined in the Server (Nginx) configuration. So as Melvin said you'll need to create an alias for your static dir in your server configuration file. On Sat, Aug 18, 2012 at 7:40 PM, Melvyn Sopacua wrote: > On 17-8-2012 11:43, keeran wrote: >> >> >> On the Django development

ManyToMany through parameter bug workaround.

2012-08-18 Thread Nicolas Emiliani
Hi, I was trying to create an m2m relationship using the 'through' parameter because I want to have an additional field in the relation table. The idea was to render this using CheckboxSelectMultiple. The thing is that when I add the model m2m field to the 'fieldset' field at the ModelForm it th

Re: Not reading from TEMPLATE_DIRS in settings.py

2012-08-18 Thread Melvyn Sopacua
On 17-8-2012 14:47, madala wrote: > Thanks I solved it. Was looking up wrong directory because I followed the > instructions to put the absolute path. If I put the relative path it works > fine. Thanks for taking time to answer anyway. People are so kind! :0) You didn't solve it because it /shou

Re: Django + FAPWS doesnt show the templates/view correct

2012-08-18 Thread Melvyn Sopacua
On 17-8-2012 11:43, keeran wrote: > > > On the Django development server, django app works fine. But once I setup > the production test run, I get only the text contents, where template views > are not shown as intended. What am I going wrong? > > I have django 1.5 latest. > > Nginx - 0.8.5

Re: How to create a formset that contains forms with a dropdown? (Crucial)

2012-08-18 Thread Melvyn Sopacua
On 17-8-2012 0:05, houmie wrote: > DealType class has a many to many relationship to sales_item. Therefore > using inline formsets wouldn't be possible. I have tried it and inlines > need foreign key. You *can* use the reverse bit of a ManyToManyField with inline formsets. The information on how

Re: deprecation warning from HttpResponseRedirect(reverse(...))

2012-08-18 Thread Mike
On Saturday, August 18, 2012 1:31:42 PM UTC+2, Paul Backhouse wrote: > > > I seem to be getting a DeprecationWarning when my view hits this line > of > > code: > > > > return HttpResponseRedirect(reverse(results, args=[query.jobid])) > > > > What does the depreciation warning say? > > H

Re: invoking a funcion or module as root

2012-08-18 Thread Blaxton
Thank you Jirka, Changed the function to stand alone script and called it with sudo from views.py. that worked and solved my problem. From: Jirka Vejrazka To: django-users@googlegroups.com Sent: Tuesday, August 14, 2012 1:03:29 PM Subject: Re: invoking a f

Re: deprecation warning from HttpResponseRedirect(reverse(...))

2012-08-18 Thread paulb
> I seem to be getting a DeprecationWarning when my view hits this line of > code: > > return HttpResponseRedirect(reverse(results, args=[query.jobid])) > What does the depreciation warning say? -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Problem with the urls.py "unexpected end of pattern"

2012-08-18 Thread Rafael Romero Carmona
2012/8/17 Alexis Roda > I think that this is not the problem because I can access to volunters >> without problems. I have problems only with admin, organizers and events >> paths. >> > > So you have problems with all the urls past the first with a wrong pattern. > > ~$ python > Python 2.6.5 (r26

Re: Any Django people in Windor/West London looking for a client?

2012-08-18 Thread Andy Baker
'more local' means 'living or working in the Windsor or West London area'. Maybe it's just idiomatic UK English but it reads fairly clearly to me. The client is in Windsor. The site is a basic content-driven site with a simple bespoke Django CMS behind it. ixxy.co.uk • t 01273 906061 • m 07968 1

Re: Any Django people in Windor/West London looking for a client?

2012-08-18 Thread Babatunde Akinyanmi
Hi Andy, I think you need to add more details like what the simple site is and then where the client is located. That way, more local doesn't sound cryptic On Fri, Aug 17, 2012 at 12:06 PM, Andy Baker wrote: > We built a fairly simple Django site and the client would like someone > more local to

Re: Django Admin doesn't show all fields from model when registered.

2012-08-18 Thread Babatunde Akinyanmi
oops..clicked send too soon and thanks Thomas and Bruno On Sat, Aug 18, 2012 at 11:15 AM, Babatunde Akinyanmi wrote: > Thomas' reply actually did help me narrow down my search efforts to > 'namespaces' which is a term I'm actually new to (as a noob) and I was able > to get links to artic

Re: Django Admin doesn't show all fields from model when registered.

2012-08-18 Thread Babatunde Akinyanmi
Thomas' reply actually did help me narrow down my search efforts to 'namespaces' which is a term I'm actually new to (as a noob) and I was able to get links to articles that did make me understand a little bit more of what goes on beneath the hood of my program especially this: http://docs.python.o

Re: Django Admin doesn't show all fields from model when registered.

2012-08-18 Thread bruno desthuilliers
Le jeudi 16 août 2012 21:00:56 UTC+2, Tundebabzy a écrit : > > Ok I fixed it and in case someone else falls into such a trap, here's > how I fixed it. > > My Answer model had a field with name 'is_correct' and had a method > with name 'is_correct'. > Everything in Python is an object, includ