Re: Extened User and have fieldsets instead of inlines

2014-08-15 Thread Elliot
Thanks Andrea, I was more looking to see if anyone had used fieldsets instead of inlines. I imagine it would be quite possible with rewriting the view that serves up the change form for user. It just seems that the fieldset gets rendered because of the associated form but then isn't actually

Re: Flatpages

2014-08-15 Thread Lee Hinde
I just logged into the backend to make sure the django_flatpage_sites table was populated and it is. On Fri, Aug 15, 2014 at 2:21 PM, Lee Hinde wrote: > Yes. > > > On Fri, Aug 15, 2014 at 2:10 PM, Collin Anderson > wrote: > >> SITE_ID is set, but is

Re: Flatpages

2014-08-15 Thread Lee Hinde
Yes. On Fri, Aug 15, 2014 at 2:10 PM, Collin Anderson wrote: > SITE_ID is set, but is the correct site selected on the flatpage? > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Flatpages

2014-08-15 Thread Collin Anderson
SITE_ID is set, but is the correct site selected on the flatpage? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

Re: Flatpages

2014-08-15 Thread Lee Hinde
I don't have APPEND_SLASH in my settings and the default is True, so I don't think that's it. Also, I used the django extension show_urls and the flatpages url showed up in the output, so I think it's in the chain. On Fri, Aug 15, 2014 at 12:19 PM, C. Kirby wrote: > There

Re: Flatpages

2014-08-15 Thread C. Kirby
There is a warning about APPEND_SLASH = False in the flatpages documentation: Warning If you set APPEND_SLASH to False, you must remove the slash in the catchall pattern or flatpages without a trailing slash will

Re: Flatpages

2014-08-15 Thread Lee Hinde
Yes, it's a record in the flatpages table on the production side. On Fri, Aug 15, 2014 at 11:43 AM, Collin Anderson wrote: > I also assume you added the page to the production database and not just > your dev database (if they're different)? > > -- > You received this

Re: Flatpages

2014-08-15 Thread Collin Anderson
I also assume you added the page to the production database and not just your dev database (if they're different)? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: Flatpages

2014-08-15 Thread Lee Hinde
Yes, ALLOWED_HOSTS is set. This site has been in production since late March, so it's otherwise a going concern. (1.6.x, which I didn't mention earlier). On Fri, Aug 15, 2014 at 11:37 AM, Lee Hinde wrote: > It's the only page; I'll double-check allowed hosts... > > Thanks.

Re: Flatpages

2014-08-15 Thread Lee Hinde
It's the only page; I'll double-check allowed hosts... Thanks. On Fri, Aug 15, 2014 at 11:30 AM, C. Kirby wrote: > Is it only occurring on the flatpages test page or all your pages (or is > that the only page)? Remember you need ALLOWED_HOSTS set in production[1] > >

Re: Flatpages

2014-08-15 Thread C. Kirby
Is it only occurring on the flatpages test page or all your pages (or is that the only page)? Remember you need ALLOWED_HOSTS set in production[1] [1]https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts On Friday, August 15, 2014 12:40:43 PM UTC-5, Lee Hinde wrote: > > I added

Re: Flatpages

2014-08-15 Thread Lee Hinde
It's /test/. The flatpages admin form won't accept a url that doesn't begin and end in a slash. On Fri, Aug 15, 2014 at 10:55 AM, Collin Anderson wrote: > What is your page's url? Does it end with a slash? > > -- > -- You received this message because you are subscribed

Re: Flatpages

2014-08-15 Thread Collin Anderson
What is your page's url? Does it end with a slash? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Flatpages

2014-08-15 Thread Lee Hinde
I added flatpages to a project and got it working fine locally, using dev server, but I get a 404 accessing my test page when I push to production. Googling the issue, most common complaints fixed by making sure SITE_ID was set, and that's in place in my site. I'm not using middleware, I'm

Re: dba designer consulting needed

2014-08-15 Thread Robin
Mike I hope you find a local person who can do the job. If you need to get in touch, please do. Kind Regards Robin St.Clair PS I wouldn't mind an excuse to be in Melbourne first week in November On 15/08/2014 14:37, Mike Dewhirst wrote: Robin Thanks for responding ... I have a couple of

Re: Copied/pasted django site from windows 7 to 8.1 issu.

2014-08-15 Thread Matlau Issu
import sys ; print sys.path gives me : ['C:\\Python27\\lib\\site-packages\\pip-1.5.6-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\psutil-2.1.1-py2.7-win32.egg', 'C:\\Windows\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win',

Designing Model Widgets to Business Analytics app

2014-08-15 Thread Daniel Chimeno
First, Hello all. This is my first post here in django-users, hope I'm doing it well. This question is not django - specific but since I'm using our loved tool, I though it could be a good place to post it. I am developing a business analytics like app, and I have some models like this:

Re: Copied/pasted django site from windows 7 to 8.1 issu.

2014-08-15 Thread Collin Anderson
I don't know much about ctypes, but are there any non-ascii characters anywhere in your sys.path? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Copied/pasted django site from windows 7 to 8.1 issu.

2014-08-15 Thread Matlau Issu
Hi everyone, All in the title, My site works perfectly on my windows 7 environnement. I just dont figure out what the problem is. I do not have any special characters in the considered path. Any idea ? Thanks Tracesbacks :

Re: Efficient way to perform many queries

2014-08-15 Thread Sergiy Khohlov
good question ! 1) I like to use some optimization at view side not template 2) if i need something like your code I using optimization. Something like that : {% with items = mymodels.items.all %} {% for item in items %} {{ item.name }} {% for tag in item.tags.all %} {{ tag

Re: Efficient way to perform many queries

2014-08-15 Thread 9devmail
Thank you. What if I'm using GenericForeignKey in Tags model? Can I still use it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Efficient way to perform many queries

2014-08-15 Thread Collin Anderson
you could try in your view: items = items.prefetch_related('tags') -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.

Efficient way to perform many queries

2014-08-15 Thread 9devmail
I am writing application similar to django-taggit and I was wondering about its performance. Example for list of items: {% for item in items %} {{ item.name }} {% for tag in item.tags.all %} {{ tag }} {% endfor %} {% endfor %}

Re: dba designer consulting needed

2014-08-15 Thread Mike Dewhirst
Robin Thanks for responding ... I have a couple of local people to see and I expect to engage one of them. If that doesn't work out may I get back in touch with you? Thanks Mike On 15/08/2014 3:21 PM, Robin wrote: Mike Firstly, I must say how nice it is to see somebody being concerned to

Re: Looking for a pointer

2014-08-15 Thread Collin Anderson
main.js looks for https://github.com/Alem/django-jfu/blob/016736a633359a032f84c7369591d8502247350f/jfu/static/js/main.js#L17 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send

Re: Looking for a pointer

2014-08-15 Thread Matt Lind
I think I found it. It appears that the form has a name called "fileupload" and submits back to the orginal page. From there the JS fires off. I guess I'll have to see how to modify this. Any other pointers would be appreciated! On Friday, August 15, 2014 8:34:43 AM UTC-4, Collin Anderson

Re: Looking for a pointer

2014-08-15 Thread Matt Lind
What I am wondering is how the Button type "Submit" is calling that JS some where. I don't see any specific script/method calls on the upload_form.html page, which specifically is where the bar "shows up". Thanks On Friday, August 15, 2014 8:34:43 AM UTC-4, Collin Anderson wrote: > > It's

Re: Looking for a pointer

2014-08-15 Thread Collin Anderson
It's happening somewhere in the javascript. https://github.com/Alem/django-jfu/tree/master/jfu/static/js -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Looking for a pointer

2014-08-15 Thread Matt Lind
I am using this project here: https://github.com/Alem/django-jfu Everything is installed and working properly. The project includes a progress bar logic that I'd like to re-use elsewhere on my site. The progress bar filling appears to happen when the "Start Upload" buttons are clicked.

Re: mixing python , php and django

2014-08-15 Thread ngangsia akumbo
what did he wanted you to build it with? On Thursday, August 14, 2014 7:21:19 PM UTC+1, mike wrote: > > I recently met a business man in my community that was looking to hire > me to put together some school intranets.. long story short, I told > him no because he would not allow me to develop