Re: How can I set up Debian x86_64 so a Django project sees django.contrib.staticfiles?

2014-04-24 Thread Andreas Kuhne
First of all are you using a virtual environment for running the django project in? If not, I would strongly recommend that you check how to use and implement virtualenv. The problem with running python on a debian based system otherwise is that you can get issues with different packages in differe

Django and SSL

2014-04-24 Thread Venkatraman S
Hi, Am an SSL newbie and am trying to understand various facets of moving a webapp to ssl. Are there any learnings that the group can share w.r.t moving a django site to ssl? Any pitfalls or things to be careful about. Or is it a totally independent activity with no side effects on the application

Re: Django and SSL

2014-04-24 Thread Mike Dewhirst
On 24/04/2014 5:35 PM, Venkatraman S wrote: Hi, Am an SSL newbie and am trying to understand various facets of moving a webapp to ssl. Are there any learnings that the group can share w.r.t moving a django site to ssl? Any pitfalls or things to be careful about. Or is it a totally independent ac

get user profile info in templates

2014-04-24 Thread sourav
hi i am a newbie in django i am creating an app with customuser and profile i want get user profile information in templates who is logged in. try everypossible solution but didn't achieve anything this is my profile models code below: from django.db import models from django.utils.translation

django output pdf problem

2014-04-24 Thread 张永强
In my program, I want to generate a pdf and output to the browser. the server end code is: response = HttpResponse(content_type='application/pdf') response['Content-Disposition'] = 'attachment; filename="' + orderNumber + '.pdf"' response.write(pdf) return response In the code, the type of pdf

Re: Django and SSL

2014-04-24 Thread Erik Cederstrand
Den 24/04/2014 kl. 09.35 skrev Venkatraman S : > Hi, > > Am an SSL newbie and am trying to understand various facets of moving a > webapp to ssl. Are there any learnings that the group can share w.r.t moving > a django site to ssl? Any pitfalls or things to be careful about. Or is it a > total

Re: Django

2014-04-24 Thread Srinivasulu Reddy
On Wednesday, April 23, 2014 2:57:45 PM UTC+5:30, Srinivasulu Reddy wrote: > > Hi Folksl , > > > In dealing with poll app tutorial 4 i am getting an error, posting > it down. Help me to find a way to solve the problem in dealing with > results.html and results view . It's throwing IndexE

Re: django output pdf problem

2014-04-24 Thread Tom Evans
On Thu, Apr 24, 2014 at 4:31 AM, 张永强 wrote: > > In my program, I want to generate a pdf and output to the browser. > > the server end code is: > > response = HttpResponse(content_type='application/pdf') > response['Content-Disposition'] = 'attachment; filename="' + orderNumber + > '.pdf"' > respo

Re: Django and SSL

2014-04-24 Thread Tim Chase
On 2014-04-24 17:55, Mike Dewhirst wrote: > I suppose it depends on your site. In my case it was Apache rather > than nginx and pretty much all I had to do was establish a redirect > so any url with http://blah.blah went to https://... instead. If you're redirecting to HTTPS regardless of the URL

I need a Python Django Developer in Boston, MA

2014-04-24 Thread Travis Yeager
*One of my clients wants to hire a Python Django Developer / Engineer for a Contract/Contract-to-Hire position in Boston, MAI can tell you the work is on site.US Citizen or Equivalent -- No sponsorship at this timeDetails for this and other positions at www.ITGeekWhisperer.com <

Re: Django and SSL

2014-04-24 Thread Venkatraman S
And I prefer being on nginx + uWSGI. On Thu, Apr 24, 2014 at 1:05 PM, Venkatraman S wrote: > Hi, > > Am an SSL newbie and am trying to understand various facets of moving a > webapp to ssl. Are there any learnings that the group can share w.r.t > moving a django site to ssl? Any pitfalls or thi

Re: django output pdf problem

2014-04-24 Thread Andre Terra
Relevant Stack Overflow question/answer: http://stackoverflow.com/a/9970672/447485 In short, you can't do it over simple Ajax, but you can emulate it. Cheers, AT On Thu, Apr 24, 2014 at 8:56 AM, Tom Evans wrote: > On Thu, Apr 24, 2014 at 4:31 AM, 张永强 wrote: > > > > In my program, I want to

Reading from a file and displaying into a table on the web app.

2014-04-24 Thread Ravi Hemnani
Hey, I am trying to build an interface using django. This way i am learning django as well. So i have completed web-poll tutorial and i tried something on my own. My problem, I have a file with following content. *# Stats* *total_connections_received:2* *total_commands_processed:1* *insta

Re: Reading from a file and displaying into a table on the web app.

2014-04-24 Thread Erik Cederstrand
Den 24/04/2014 kl. 16.46 skrev Ravi Hemnani : > def table(request): > with open('/home/ravi/python/temp.txt', 'r') as f: > for line in f: > context = {'line': line} Here you are ovwewriting 'content' on every iteration. When the loop exits, only t

'DJango' failed to install. Exit code: 1

2014-04-24 Thread Kaloyan Marinov
http://answers.microsoft.com/en-us/windows/forum/windows8_1-winapps/django-failed-to-install-exit-code-1/e9324e01-9511-4222-93b1-f27eb535bba4 Please help me with this one! *Notebook CQ* *Intel x64* *Windows 8.1* *Visual Studio 2013 Ultimate* First I downloaded *Python **Tool*, then created

Re: 'DJango' failed to install. Exit code: 1

2014-04-24 Thread Tom Evans
On Thu, Apr 24, 2014 at 4:03 PM, Kaloyan Marinov wrote: > http://answers.microsoft.com/en-us/windows/forum/windows8_1-winapps/django-failed-to-install-exit-code-1/e9324e01-9511-4222-93b1-f27eb535bba4 > > > Please help me with this one! > > Notebook CQ > > Intel x64 > > Windows 8.1 > > Visual Studi

Re: Django and Zinnia + DjangoCMS

2014-04-24 Thread Jared Nielsen
If you're not a programmer, new to Django, and need a CMS, why not use Mezzanine ? You'll have a fully functional site up and running in a very short time with the added bonus that you can learn Django (and programming) as you work backwards, reverse engineering Mezz

Re: I need a Python Django Developer in Boston, MA

2014-04-24 Thread fabricio mata de castro Mata
I am Brazilian and have developed some projects with django to access www.webfacflex.com.br User: Password pointl...@gmail.com 1 if you want to hire my service please contact us. Fabricio castro 2014-04-24 10:10 GMT-03:00 Travis Yeager : > > > > > > > > > > > > > > > > > *One of my clients wa

Re: Django

2014-04-24 Thread Lee
Can you share your views.py, result.html and urls.py? On Thursday, 24 April 2014 12:10:33 UTC+1, Srinivasulu Reddy wrote: > > > > On Wednesday, April 23, 2014 2:57:45 PM UTC+5:30, Srinivasulu Reddy wrote: >> >> Hi Folksl , >> >> >> In dealing with poll app tutorial 4 i am getting an error,

Re: Django and Zinnia + DjangoCMS

2014-04-24 Thread Silvio Siefke
Hello, On Thu, 24 Apr 2014 08:17:11 -0700 (PDT) Jared Nielsen wrote: > If you're not a programmer, new to Django, and need a CMS, why not > use Mezzanine ? Mezzanine i know but i not so really understand the theming there. > You'll have a fully functional site up a

Admin - editable list

2014-04-24 Thread Radhika Srinivasan
Could you please update me on. How to create an admin-editable list [check-list] in django? Thank you, Rads Best regards, Radhika -- 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, s

Re: get user profile info in templates

2014-04-24 Thread Ramón Carrillo
Hi, Did you set CustomUserAuth as your auth model in settings.py? [1] [0] https://docs.djangoproject.com/en/1.6/ref/settings/#std:setting-AUTH_USER_MODEL On Thu, Apr 24, 2014 at 3:41 AM, sourav wrote: > hi i am a newbie in django i am creating an app with customuser and profile > > i want get

Re: Admin - editable list

2014-04-24 Thread Ramón Carrillo
Hi Radhika, You mean this? https://docs.djangoproject.com/en/1.6/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_editable On Thu, Apr 24, 2014 at 10:52 AM, Radhika Srinivasan wrote: > Could you please update me on. How to create an admin-editable list > [check-list] in django? Thank you,

Re: Django and Zinnia + DjangoCMS

2014-04-24 Thread Jared Nielsen
Theming Mezzanine, once you wrap your head around it, is very easy. Check out these links to get you started: http://theneum.com/blog/styling-twitter-bootstrap-and-mezzanine/ http://rosslaird.com/blog/customizing-mezzanine/ http://rodmtech.net/docs/mezzanine/a-mezzanine-tutorial-take-2/ For a Boot

Re: 'DJango' failed to install. Exit code: 1

2014-04-24 Thread Kaloyan Marinov
OK, thanks man! -- 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 group, send email to django-users@goog

Re: Django and Zinnia + DjangoCMS

2014-04-24 Thread Silvio Siefke
Hello, On Thu, 24 Apr 2014 08:17:11 -0700 (PDT) Jared Nielsen wrote: > If you're not a programmer, new to Django, and need a CMS, why not > use Mezzanine ? I has forget to say, in Django CMS i can easy use translations of page. In Mezzanine i found not really this. T

Re: django-cache-machine with Redis

2014-04-24 Thread Ramón Carrillo
Hi Mike, You need a cache backend, you can write it by yourself [0] or use an existing one [1,2] [0] https://docs.djangoproject.com/en/1.6/topics/cache/#using-a-custom-cache-backend [1] https://github.com/niwibe/django-redis [2] https://github.com/sebleier/django-redis-cache On Wed, Apr 23, 201

Re: Django and Zinnia + DjangoCMS

2014-04-24 Thread Silvio Siefke
Hello, On Thu, 24 Apr 2014 09:05:40 -0700 (PDT) Jared Nielsen wrote: > Theming Mezzanine, once you wrap your head around it, is very easy. > Check out these links to get you started: > http://theneum.com/blog/styling-twitter-bootstrap-and-mezzanine/ > http://rosslaird.com/blog/customizing-mezzan

Re: django-cache-machine with Redis

2014-04-24 Thread Mike Megally
Thanks! I got the redis cache set up. What is worrying me is that django-cache-machine says that you need to use one of its backends for caching and django-cache-machine doesn't come with one for redis. Just memcache and localmem. I'm wondering if its safe to just use the redis cache i've setup

Re: Interesting Django project folder structure.

2014-04-24 Thread Perry Arellano-Jones
It's mostly preference, use what suits you. I prefer having all of my apps in an 'apps' directory for organization's sake. I may not have an issue keeping track of them now, but if a project gets large it could get unruly. Anyone else that wants to contribute to any of my projects may benefit

Order_by on queryset from chained filters not working

2014-04-24 Thread Shawn H
I've a search page that allows users to search for a "ZoningCase" by many different parameters, some from the ZoningCase object and some from several related objects. The user can combine 1 or more of these parameters for their search. My view chains together filters on the queryset based on t

Re: Order_by on queryset from chained filters not working

2014-04-24 Thread Joseph Mutumi
Just wondering why not cases = cases.order_by('case_number') ? On 4/24/14, Shawn H wrote: > I've a search page that allows users to search for a "ZoningCase" by many > different parameters, some from the ZoningCase object and some from several > > related objects. The user can combine 1 or more

Re: Order_by on queryset from chained filters not working

2014-04-24 Thread Shawn H
Good catch. Unfortunately, that didn't resolve the issue. Still not sorting as expected. Thanks. On Thursday, April 24, 2014 2:52:20 PM UTC-5, jjmutumi wrote: > > Just wondering why not cases = cases.order_by('case_number') ? > > On 4/24/14, Shawn H > wrote: > > I've a search page that allow

Re: Order_by on queryset from chained filters not working

2014-04-24 Thread Shawn H
Or rather, I forgot to restart my apache instance. That DID resolve the issue. What a simply little thing, no? Appreciate the help. On Thursday, April 24, 2014 2:56:44 PM UTC-5, Shawn H wrote: > > Good catch. Unfortunately, that didn't resolve the issue. Still not > sorting as expected. Th

Re: django-cache-machine with Redis

2014-04-24 Thread Ramón Carrillo
Oh, my mistake. I did miss the django-cache-machine part. Anyway, from the sources it seems supported and dependant on django-redis-cache [0,1]. So, you should installed first. According to a commit message [0] and an example [2], this should be in your settings.py: CACHE_MACHINE_USE_REDIS = Tru