Sorl permissions issues in media directory

2012-05-10 Thread Bastian
I have read the threads, searched google... to no avail. Stuck. I have Django running with Apache2 on Debian Squeeze and mod_wsgi in a WSGIDaemonProcess with user=www-data, my user_media directory belongs to www-data and is 777, as is the cache directory inside it. And sometimes the sub-direct

Re: Model reversion

2012-05-10 Thread Alireza Savand
Another thing is which library shoulda be used to generate diff and do path on versions? there is some of them such as: - *difflib * - *google-diff-match-patch * - *** * * The google-diff-

Application scope variable

2012-05-10 Thread vamsy krishna
Hi, I'm using an IMAP connection in my application and want to use the same connection across sessions to fetch the relevant data. I added the below snippet in my settings.py file and importing connection in my view function where I need this. However this is instantiating the variable each time f

Re: Sorl permissions issues in media directory

2012-05-10 Thread Bastian
One more things, there is Redis installed too. On Thursday, May 10, 2012 1:13:00 PM UTC+2, Bastian wrote: > > I have read the threads, searched google... to no avail. Stuck. > > I have Django running with Apache2 on Debian Squeeze and mod_wsgi in a > WSGIDaemonProcess with user=www-data, my user

Re: Apache does not display a flash file

2012-05-10 Thread atul khairnar
When right-clicked at the location where flash should have rendered, it gives error message, "Movie Not Loaded" On May 10, 10:32 am, atul khairnar wrote: > Hi, > Recently I deployed my django project on Apache using mod_wsgi. > Everything is working perfect except flash. The flash (.swf file) did

Problem with Django naming convence

2012-05-10 Thread Stone
Dear user, I am novice with Django, I have developed some applications but each time they have the same URL as in physical path. like URL: http:/testlab and on file system was /opt/Django/testlab with view.py etc. Now I would like to develop application called SSO where all url.py, view.py will

Re: Google Drive with Django?

2012-05-10 Thread Elliot Bradbury
django-social-auth has some Google OAuth2 code. I'm not sure if it applies to Drive but it might be worth looking at. I was able to create an OpenID backend to a new service in about 2 minutes. https://github.com/omab/django-social-auth/blob/master/social_auth/backends/google.py#L69 On Thu, May 1

Re: Apache does not display a flash file

2012-05-10 Thread Anurag Chourasia
Could you have a look at the Error Logs as shown on the Tools --> Web Developer --> Web Console in Firefox if u have something in there? On Thu, May 10, 2012 at 7:43 AM, atul khairnar wrote: > When right-clicked at the location where flash should have rendered, > it gives error message, "Movie No

i need to place my django site on a server, i dont know how to do it! help!!!

2012-05-10 Thread doniyor
Hi there, i need a small help: i have a django site, which is ready to test. now i talked to a hosting service, they had only php and mysql supporting server, but not django. they gave me a virtual server, where i can install django and put my site there. now i am stuck. i dont know how to ins

Re: i need to place my django site on a server, i dont know how to do it! help!!!

2012-05-10 Thread azizmb.in
Have you looked at the django docs on installing django ? On Thu, May 10, 2012 at 5:53 PM, doniyor wrote: > Hi there, > > i need a small help: i have a django site, which is ready to test. now i > talked to a hosting service, th

Re: i need to place my django site on a server, i dont know how to do it! help!!!

2012-05-10 Thread kenneth gonsalves
On Thu, 2012-05-10 at 05:23 -0700, doniyor wrote: > i need a small help: i have a django site, which is ready to test. now > i > talked to a hosting service, they had only php and mysql supporting > server, > but not django. they gave me a virtual server, where i can install > django > and put m

Language Translation using multilingual in django

2012-05-10 Thread Madhu
Hi! I am new in django. I use multilingual & create flatpages. I add different languages into settings.py & i display all available languages in template, But i want to covert the content of flatpages into another language as per user requirement by using url getting current language code, can an

Re: Language Translation using multilingual in django

2012-05-10 Thread Juan Pablo Martínez
If you only want to display information but dont want to work with translations in code you can try https://github.com/juanpex/django-model-i18n/ On Thu, May 10, 2012 at 10:13 AM, Madhu wrote: > Hi! > I am new in django. > I use multilingual & create flatpages. > I add different languages into

Re: Apache does not display a flash file

2012-05-10 Thread atul khairnar
Error Log Shows : [19:09:24.001] GET http://127.0.0.1/site_media/flash/flashvortex.swf [HTTP/1.1 500 INTERNAL SERVER ERROR 131ms] [19:09:23.104] GET http://127.0.0.1/play/ [HTTP/1.1 200 OK 166ms] [19:09:23.344] GET http://127.0.0.1/site_media/style1.css [HTTP/1.1 200 OK 4ms] [19:09:23.373] Expect

Re: Apache does not display a flash file

2012-05-10 Thread atul khairnar
Sorry for dumping all Error Log. The relevant part of log shows: Error Log Shows : [19:09:24.001] GET http://127.0.0.1/site_media/flash/flashvortex.swf [HTTP/1.1 500 INTERNAL SERVER ERROR 131ms] On May 10, 6:41 pm, atul khairnar wrote: > Error Log Shows : [19:09:24.001] > GEThttp://127.0.0.

Custom field names in ModelForm

2012-05-10 Thread Bhashkar Sharma
Is there a way to customize the field name (not just label) while creating a ModelForm? Eg. for the model: class Book(models.Model): title = models.CharField(max_length=256, db_index=True) author = models.CharField(max_length=512, db_index=True) published = models.DateTimeField(db_in

Re: i need to place my django site on a server, i dont know how to do it! help!!!

2012-05-10 Thread eihli
This won't be a complete list but it's what I can remember off the top of my head. Things to do: Install Python Install Django Install database software (I chose Postgres. I guess you don't need this if you are using SQLite3). Create database and users and assign permissions. Install mod_wsgi. Ed

Re: Model reversion

2012-05-10 Thread francescortiz
Well, creation and deletion should be tracket. Also, binary items should be purged once versions are purged, not before. On Thursday, May 10, 2012 8:19:51 AM UTC+2, Alireza wrote: > > Thanks for your reply and the link. > > But what about binary items, i mean files. should we keep eyes on them,

Re: i need to place my django site on a server, i dont know how to do it! help!!!

2012-05-10 Thread Andre Terra
Or just deploy on heroku http://heroku.com Cheers, AT On Thu, May 10, 2012 at 11:13 AM, eihli wrote: > This won't be a complete list but it's what I can remember off the top of > my head. > Things to do: > Install Python > Install Django > Install database software (I chose Postgres. I guess

Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-10 Thread Johan
Hi Does anybody maybee have some pointers for me? I have a site up and running and it has worked perfectly for hundreds of users. Except that today I got two users (from the same company, although others from the same company has used it perfectly well) who are getting the [CSRF verification faile

SlugField and Slugify Problem

2012-05-10 Thread Halit
Hi.I'm creating to free time project on Django. And,I'm using " SlugField " on my models.(to post url) Also,I'm using " Slugify " template tag on my template. If my title is = " Deneme Başlık", slug = " deneme-baslik " But,if i use in my template to = {{ title|slugify }} = "deneme-baslk" Delet

Best Practices for Changing Data Model

2012-05-10 Thread Mark Phillips
I am new to django, and I was wondering what are the best practices for making changes to the data model? These are some scenarios, and I would appreciate feedback on my approach 1. Adding new class to models.py - run syncdb, and the new tables will be loaded 2. Add fields to existing class - dro

Re: Best Practices for Changing Data Model

2012-05-10 Thread George Silva
Hi Mark, There are some projects that aim to reduce friction in this process. I recommend that you take a look at django-south. It can handle all of that plus some other interesting things, using administration commands. On Thu, May 10, 2012 at 12:28 PM, Mark Phillips wrote: > I am new to djang

Re: Question regarding Generic Foreign Keys and relations

2012-05-10 Thread David
Just an update, the following got me on the right track. http://blog.roseman.org.uk/2010/02/22/django-patterns-part-4-forwards-generic-relations/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https:/

Distinct queries and order_by

2012-05-10 Thread David
Hello With a distinct query I understand the need to make the column that is required to be distinct the first column to order by. eg: lm = Modification.objects.select_related().distinct('object_id').filter( content_type=topic_ct ).exclude(action=2).order_by('object_id', '-m

Re: Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-10 Thread Nikolas Stevenson-Molnar
Django uses cookies for CSRF. Is it possible these two users have cookies disabled? https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#how-it-works _Nik On 5/10/2012 7:56 AM, Johan wrote: > Hi > > Does anybody maybee have some pointers for me? I have a site up and > running and it has worked

Django psycopg error

2012-05-10 Thread Mike Di Domenico
Good afternoon, I am working on installing Django to work with a postgresql on ubuntu 10.04 server (32bit). I have postgresql-8.4 installed, Django version 1.5, python version 2.6.5, and I have the psycopg2 module installed (I think). I am getting the error "Error: No module named psycopg" I a

Re: Django psycopg error

2012-05-10 Thread Karl Sutt
Hello, Open up a Python shell and try import psycopg2 And let us know what happens. Karl Sutt On Thu, May 10, 2012 at 5:17 PM, Mike Di Domenico < didomenico.mi...@gmail.com> wrote: > Good afternoon, > I am working on installing Django to work with a postgresql on ubuntu > 10.04 server (32bit)

Re: Django psycopg error

2012-05-10 Thread Mike Di Domenico
I get no response/error: Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import psycopg2 >>> Thanks for your help, Mike On Thursday, May 10, 2012 1:25:29 PM UTC-4, Karl Sutt wrote: > > Hello, > >

Re: Django psycopg error

2012-05-10 Thread Lucas Xavier
Make shure you have psycopg2 module installed on the same path as python. -- Atenciosamente, Lucas Xavier 2012/5/10 Mike Di Domenico > Good afternoon, > I am working on installing Django to work with a postgresql on ubuntu > 10.04 server (32bit). I have postgresql-8.4 installed, Django version

Re: i need to place my django site on a server, i dont know how to do it! help!!!

2012-05-10 Thread doniyor
many thanks eihli, i will follow the steps you gave.. cool, i let you know about how it worked.. later Am Donnerstag, 10. Mai 2012 16:13:05 UTC+2 schrieb eihli: > > This won't be a complete list but it's what I can remember off the top of > my head. > Things to do: > Install Python > Insta

unique key error doesn't show using copy record in modelform.

2012-05-10 Thread Min Hong Tan
hi, my scenario as below: - I want to copy existing record and show at the form. then clear the pk and id then it will be able to "add" instead of "update". - all working fine. but, if the record is exist (Unique error). it should prompt unique key 's error. but, in the form.is_valid has no t

Re: Django HttpResponse performance with mimetype=application/atom+xml or text/xml

2012-05-10 Thread Vinuta Shetty
Was your issue resolved? I am having a similar problem. I am rendering a PDF document and it takes forever. Not sure why? On Monday, March 29, 2010 8:21:47 AM UTC-7, serjant wrote: > > Hi all. > > Can somebody help me and point me to solving the following problem: > > 1. I am writing an applicati

Re: Custom field names in ModelForm

2012-05-10 Thread Rajeesh Nair
> Is there a way to customize the field name (not just label) while creating > a ModelForm? > > Override the change_form template for the concerned model and put the label for the field in whatever way you like. Check out the django-templates documentation to know how to do this. -- You re

Re: How to serve staticfiles with full URL for local development?

2012-05-10 Thread e.generalov
On 6 май, 04:41, Reinout van Rees wrote: > On 05-05-12 15:34, e.generalov wrote: > > > There was a snippet to display a content of response in browser during > > debugginghttp://miniblog.glezos.com/post/3388080372/tests-browser . > > > "One of the first issues you might face is seeing a style-le

Re: How to serve staticfiles with full URL for local development?

2012-05-10 Thread doniyor
if your problem is how to serve your static files, just create a folder with name static in your main app, then put all of your static files and and your STATIC_URL is /static/. Am Samstag, 5. Mai 2012 15:34:47 UTC+2 schrieb e.generalov: > > There was a snippet to display a content of respons

during putting my djangosite on server, i cannot restart the apache server, apachectl nor apache2 is not found. why?

2012-05-10 Thread doniyor
Hi there, i need a small help. as the titel says, i cannot restart the apache, i can get the version of apache, so it is there, but i cannot restart it. OS is Linux. what can be the problem, anyone has had experience with this? many thanks doni -- You received this message because you are

Re: during putting my djangosite on server, i cannot restart the apache server, apachectl nor apache2 is not found. why?

2012-05-10 Thread Bolkin
It really depends on linux flavor and how you installed apache, some common cases: service httpd restart service apache2 restart On Thursday, May 10, 2012 4:01:24 PM UTC-4, doniyor wrote: > > Hi there, i need a small help. as the titel says, i cannot restart the > apache, i can get the version o

Re: Setting current timezone in Django 1.4, and middleware

2012-05-10 Thread peppergrower
I set up a fresh Django 1.4 project and adapted the middleware described in the docs; I stored the timezone on the user profile of two different users, and logged in as each of them in separate browsers, along with a third completely separate window (so I had three different sessions). It appear

[OFF TOPIC] Django job on Long Island; $110,000 + bonus

2012-05-10 Thread James Shaughnessy
DealerTrack is looking for a Python/Django Senior developer. Ideal candidate will have more than 5 years of professional software development experience building web-based systems. **Requirements** * 5 years of development experience, web dev experience a plus * Experience using Django * RDBMS ex

Does Django Template Support Nested Tags?

2012-05-10 Thread Wally Yu
Hi all, I'm wondering if Django template supports nested tags? Here is my situation: My Template: {% for module in modules %} Automation Test Result for Test Suite: {{ module}} {% for TC

Re: Django psycopg error

2012-05-10 Thread Wally Yu
Not sure if downgrade your psycopg2 version to lower version would be working, let's say version 2.4.1 Thanks, Wally On May 11, 12:17 am, Mike Di Domenico wrote: > Good afternoon, > I am working on installing Django to work with a postgresql on ubuntu 10.04 > server (32bit). I have postgresql-8

Re: Django psycopg error

2012-05-10 Thread Bhargav Kowshik
On Thursday 10 May 2012 11:05 PM, Mike Di Domenico wrote: I get no response/error: Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. import psycopg2 Thanks for your help, Mike On Thursday, May 10, 2012

FileZille Djangosite upload => 550 error: failed to change directory?? why?

2012-05-10 Thread doniyor
Hi There, finally i tried to upload my djangosite, using filezilla. but during upload every file upload is throwing error saying: 550 failed to change directory. what can be the reason? can it be access right which i can change thru chmod or so? where is the problem, in my server or in my file

Re: i need to place my django site on a server, i dont know how to do it! help!!!

2012-05-10 Thread Babatunde Akinyanmi
Or alwaysdata.com They have a free plan On 5/10/12, doniyor wrote: > many thanks eihli, i will follow the steps you gave.. cool, i let you know > about how it worked.. > > later > > > Am Donnerstag, 10. Mai 2012 16:13:05 UTC+2 schrieb eihli: >> >> This won't be a complete list but it's what I

Re: Does Django Template Support Nested Tags?

2012-05-10 Thread azizmb.in
AFAIK, django templates dont support what you are trying to do. You could check some answers here . I would restructure the data being passed to the template to something like this: module_tests = { 'module1

Re: Custom field names in ModelForm

2012-05-10 Thread Bhashkar Sharma
Thanks for the reply Rajneesh, but I'm looking for a more scalable option. (Ideally I would like to write a wrapper of some kind which does the task regardless of which Model is it) My use case is that I'm using django-piston for building a REST API, which I tweaked to give me what I wanted (htt

Re: Does Django Template Support Nested Tags?

2012-05-10 Thread Wally Yu
Thanks Aziz. You really helps a lot. But what if I have deeper level of looping? Say I have a template like this: {% for module, tests in module_tests.items %} Automation Test Result for Test Suite: {{ module}}

Re: Does Django Template Support Nested Tags?

2012-05-10 Thread azizmb.in
Off the top of my head, you could keep nesting the dictionary. eg: module_tests = { "module1": { "test1": { "action1": ["step1", "step2", "step3"], "action2": ["step1", "step2", "step3"] }, "test2": { "action1": ["step1", "step2"

Re: How to serve staticfiles with full URL for local development?

2012-05-10 Thread e.generalov
On 11 май, 01:54, doniyor wrote: > if your problem is how to serve your static files, just create a folder > with name static in your main app, then put all of your static files and > and your STATIC_URL is /static/. Thanks. I found some more ways to get around the restrictions of the `staticfile

Re: Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-10 Thread Johan
Hi thanks for the quick reply. After some more investigation I am quite sure that this is exactly the issue. Thanks again for the quick reply. Now to just find an elegant way to let the user know that they need to have Cookies enabled to access my site :) On Thursday, 10 May 2012 18:24:13 UTC+2