Re: Starting a new Python blog

2012-01-29 Thread Kevin
It is good to see some subscribers this early on. Thank you. I have rolled out the updates for Tutorials and set the foundation for the Review system by starting a list of packages I frequently use, and hope to later review. I hope to have the full review system live by the end of this week.

Re: Is it possible to return an HttpResponse in django with text & a json object?

2012-01-29 Thread lokesh
To do this use serializers or you need to make it a plain text iterate over objects and make it a string and return httpresponse as a text. On Jan 29, 7:24 pm, CareerDhaba tech wrote: > Hi all, > > I am in a bit of a jiffy and need some guidance. Here is the issue: > > I am

superuser unable to delete an object

2012-01-29 Thread kenneth gonsalves
hi, in admin I have this code: class ChildAdmin(admin.ModelAdmin): def has_change_permission(self, request,obj=None): # obj is the child and we fetch the project associated with the child through # the area. if request.user.is_superuser: return True

Re: TinyMCE, safe tag and wrong conversion of entities

2012-01-29 Thread Weldan
unicode? On 25 January 2012 07:43, jurgen wrote: > In my admin interface, I can create a database entry which contains > HTML using TinyMCE. I do this to create publication entries for my > website. In the database, a publication entry stores entities using > numeric

Re: djangosnippets.org domain has expired

2012-01-29 Thread Russell Keith-Magee
On 30/01/2012, at 9:36 AM, Russell Keith-Magee wrote: > > On 28/01/2012, at 9:06 PM, Sam Lai wrote: > >> Heads-up to whoever is in charge of this domain - it has expired and >> is now redirecting to a GoDaddy domain parking page. > > Hi Sam, > > Thanks for the heads up. Django Snippets isn't

Re: djangosnippets.org domain has expired

2012-01-29 Thread Russell Keith-Magee
On 28/01/2012, at 9:06 PM, Sam Lai wrote: > Heads-up to whoever is in charge of this domain - it has expired and > is now redirecting to a GoDaddy domain parking page. Hi Sam, Thanks for the heads up. Django Snippets isn't an official Django resource, but it's been around for a while and many

Re: Does python(django) have an official database driver to access SQLFire?

2012-01-29 Thread Russell Keith-Magee
On 29/01/2012, at 4:05 PM, Jack wrote: > Hello, > > I have a question on Python(django) > > Does python(django) have an official database driver to access > SQLFire? Or is there any roadmap to deliver an official database > driver? Unfortunately, the answer is no to both. The only officially

Re: Displaying template location in html

2012-01-29 Thread donarb
Use the Django Debug Toolbar, it shows all kinds of things. For templates, it shows the names of all the templates that make up the given page as well as which tags are used on the page. With DDT, you don't have to annotate (and un-annotate) anything.

Re: about QuerySet

2012-01-29 Thread akaariai
On Jan 20, 10:12 am, newme wrote: > user = User.objects.filter(pk="") > user is a QuerySet > > every time i call user[0], i returns a different reference. > > maybe it should be a python question. > i want to know i QuerySet does that. The reason is that Django does not

Re: confusion about choosing the database user name (Postgresql/psycopg2)

2012-01-29 Thread akaariai
You should not use www-data as your user. There is little reason for allowing any access to the database for www-data user. The user in settings.py refers to PostgreSQL user. You should set up a dedicated postgresql user, and a password for that user. Use those in your settings.py. The most

Re: imagefiled don't Work

2012-01-29 Thread Mario Gudelj
perhaps something from this post can help - http://mariogudelj.tumblr.com/post/16717808643/custom-upload-to-path-in-django On 22 January 2012 21:41, Tony Kyriakides wrote: > (in the terminal) > python manage.py syncdb > > On Jan 21, 8:57 am, cha

Re: help with tutorial 01

2012-01-29 Thread Mario Gudelj
That should work. You must have some unusual setting in settings.py. Can you post time zone references from that file? On 20 January 2012 09:03, Cyd wrote: > In the tutorial here: > > https://docs.djangoproject.com/en/1.3/intro/tutorial01/ > > I get no errors up until the

Re: Displaying template location in html

2012-01-29 Thread Mario Gudelj
The only way to achieve this would be to pass the template path, inside the view, to the template and render it within the template. Like: d = {'profile':profile:'template_path':"console/account-profile.html"} return render_to_response('console/account-profile.html', d) -m On 29

Re: Starting a new Python blog

2012-01-29 Thread Mario Gudelj
Same :) On 29 January 2012 19:11, Anler Hernandez Peral wrote: > you have one subscriber over here and waiting to see more posts ;) > > -- > anler > > > > On Sat, Jan 28, 2012 at 9:35 PM, Kevin wrote: > >> Hello Everyone, >> >> For sometime now I have

Re: ModelForm

2012-01-29 Thread Mario Gudelj
You can exclude certain fields from the form using exclude['fieldname'] in that FormName class On 28/01/2012 6:08 AM, "hack" wrote: > Hello, > I am new to Python and have a Java background. > > I have created a bunch of models, and forms using ModelForm: > class

Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-29 Thread JJ Zolper
Going forward I'll make sure to post only once. I don't use these Google Groups mailing lists that much besides the occasional community question so I'll make sure not to spam you all next time! : / Yes well I bought my laptop through my school (Virginia Tech) and we had a few options for

Selected item in ModelChoiceField doubt

2012-01-29 Thread Leonardo Silva
Hi, I'm with a basic doubt. I want to make a Select Form using ModelChoiceField in a webpage. The data is being filled OK, but I don't know how to use the selected item. For instance, I want to call a page "/dashboard/{{ projetoURL }}/ {{ selectedItem }}/" where the 'selectedItem' is an option

Print list with select related with reverse foreign key

2012-01-29 Thread Gabriel Carneiro Novaes
I have two models http://paste.ideaslabs.com/show/BN0e2z4NSa I want to print a list of ads (title,slug, and thumb_photo) How can I make this list, since the key is reverse? Something like this SQL: http://paste.ideaslabs.com/show/Iw8ii2noz Sorry for my bad English. I'm from brazil -- You

Re: ChoiceField Help

2012-01-29 Thread Daniel Roseman
On Saturday, 28 January 2012 21:41:13 UTC, Squant wrote: > > Hello, > I've created a simple ChoiceField for my app with two items. I need to > somehow query which choice was made from the user so I can pass the > appropriate context to my template. What would be an example of how I > can do

Re: passing context data to inherited templates

2012-01-29 Thread Daniel Roseman
On Sunday, 29 January 2012 05:34:50 UTC, Mike wrote: > > In a project I'm working on I have a status bar at the top of the webpage > that will render data using template tags. The status bar will be > displayed on all of my views, so I want to put the html code in my base > template. The base

Does python(django) have an official database driver to access SQLFire?

2012-01-29 Thread Jack
Hello, I have a question on Python(django) Does python(django) have an official database driver to access SQLFire? Or is there any roadmap to deliver an official database driver? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Tutorial for dev version not working (Polls app): admin

2012-01-29 Thread Jeff Heard
syncdb will not remake tables that are already made. For that you will have to pipe the output of: $ python manage.py resetsql through your database backend. Then try restarting the server and looking at your admin. On Sat, Jan 28, 2012 at 10:15 PM, Alec Taylor wrote:

Is it possible to return an HttpResponse in django with text & a json object?

2012-01-29 Thread CareerDhaba tech
Hi all, I am in a bit of a jiffy and need some guidance. Here is the issue: I am creating a basic Q application, where a question pops up for the user, along with a form to submit the answer. Depending on the type of question, the input of the form changes (ie if its a multiple choice, its

Re: failing django install on dreamhost

2012-01-29 Thread Dan Gentry
I'm going to guess that maybe there is a syntax in one of the lines preceding this one. Could you share the entire DATABASE session of your settings file? FYI, I have written a more up to date procedure for running Django on Dreamhost - built on the great posts by Jeff Croft and others.

Re: Help with new version of django

2012-01-29 Thread Dan Gentry
I agree with Aaron. I upgraded 5 apps from v1.0.4 to 1.3 earlier this year, and it was pretty easy after reviewing the release notes. Moving to class based views (to replace generic views) was not required for 1.3, but I had fun and learned quite a bit. On Jan 28, 7:35 pm, Aaron Cannon

Searching for django developer

2012-01-29 Thread Mo Mughrabi
Hello, We are searching for a django developer for full time job, he/she must be very capable and ready to take over a full time job. Must have strong django experience, postgres, django-gis, html, css, jquery. Please contact me back as soon as possible to discuss details, regards, -- You

Admin CSS not loading on dev

2012-01-29 Thread Alec Taylor
I cannot get the admin CSS to load. The dev docs shows that: "ADMIN_MEDIA_PREFIX Deprecated in Django 1.4: This setting has been obsoleted by the django.contrib.staticfiles app integration" Checking another project I had which I generated with "startproject" on 1.4a1 I found that its CSS works