Re: How to package a django application

2012-08-30 Thread Amyth Arora
Using pure python scripts with django is not all that difficult, as django itself is a python package. So , you can simply have a custom script "mailserver.py" (or whatever name) and you import the script to your views and simply call the functions from your custom script under the respective user

Re: coding urls in templates

2012-08-30 Thread Amyth Arora
could you post the directory structure and your urls.py file. Thanks. On Fri, Aug 31, 2012 at 11:00 AM, Mike wrote: > Quick question: I changed my urls.py so I can run my project in a > subdirectory and I broke all the urls in my templates. Should I be using > {% url

coding urls in templates

2012-08-30 Thread Mike
Quick question: I changed my urls.py so I can run my project in a subdirectory and I broke all the urls in my templates. Should I be using {% url path.to.some_view v1 v2 %} in all my templates instead of hard coding the path? -- You received this message because you are subscribed to the

Re: Instaling django

2012-08-30 Thread Jon Blake
What O/S? I installed Django 1.4.1 today on my Linux F14 box today by: 1. Downloading Django-1.4.1.tar.gz from https://www.djangoproject.com/download/ 2. As root: # tar xzvf Django-1.4.1.tar.gz # cd Django-1.4.1 # python setup.py install # exit 3. Test it: $ python >>> import django >>> print

Hard time debugging an strange problem

2012-08-30 Thread Alexis Roda
Hi all, sorry for the ambiguous subject, but I can't summarize it in a few words. This is my first message to the list asking for help so I think that is polite to give a big thanks to those of you that are making developing with django such a great pleasure. This is a great community. Said

How to package a django application

2012-08-30 Thread Muhammed Salman
Hi, I am new to python and django development and have developed a simple email based authentication form as a part of an exercise. Now, i have two questions 1: The requirement from me for this exercise was to create it without any frameworks but i started it with django so its easier

Syncdb Error With Oracle Database - IntegrityError Exception

2012-08-30 Thread Jon Blake
Just discovered Django and trying out the Django 1.4 tutorial with an Oracle backend database. In my database, I have created user django with privs create session, create table, create sequence, create trigger. The DATABASES dictionary in settings has been edited to set the default settings

Re: Model ChoiceField?

2012-08-30 Thread Lachlan Musicman
Ok, ignore this email - I've just realised one is a Form field, and the other is a Model field. Apols for stupid. Cheers L. On Fri, Aug 31, 2012 at 1:09 PM, Lachlan Musicman wrote: > Hi, > > I was just wondering if there was any noticeable difference between > the

Model ChoiceField?

2012-08-30 Thread Lachlan Musicman
Hi, I was just wondering if there was any noticeable difference between the models.ChoiceField() and the models.CharField(max_length=x,)? In the documentation I have (offline, Django v1.4) a reference to: /path/django-docs-1.4-en/ref/forms/fields.html#django.forms.ChoiceField.choices But in

Re: brute force protection

2012-08-30 Thread David Fischer
This has definitely been discussed before[1], but I think it is worth discussing again. This issue has become even more pressing since the password hashing algorithm has increased its computational complexity significantly in 1.4. Because of that increased CPU utilization, a denial of service

Re: people.djangoproject.com broken

2012-08-30 Thread creecode
Hello Timothy, I just tried going to the login webpage and had no problem. I'm not registered on that website so my experience may be somewhat different. On Thursday, August 30, 2012 10:39:24 AM UTC-7, Timothy Makobu wrote: Still having no luck. Here's a screenshot of the error, displayed

Re: Automatically create an InlineForm object inside an admin page

2012-08-30 Thread Nicolas Emiliani
On Tue, Aug 28, 2012 at 7:20 PM, Jill Green wrote: > I hope someone has come across this problem before because it's driving me > nuts. Basically I have a model, Partner and it has a PartnerAdmin page. > Inside the partner I have another model called Data that is an

Re: Combinable generic CBVs

2012-08-30 Thread Rainy
On Aug 29, 5:24 pm, Melvyn Sopacua wrote: > On 29-8-2012 18:46, Rainy wrote: > > > On Aug 29, 3:10 am, Melvyn Sopacua wrote: > >> On 29-8-2012 4:44, Rainy wrote: > > >>> When I use CBVs, I nearly always end up needing to mix different types in >

Overriding a Field attribute in a proxy model is not allowed.

2012-08-30 Thread Alti
Hello, I'm currently working with an app that i would not like to modify. This app contains 2 Models, basically : (i took off some code to make it clearer) ``` class Invoice(models.Model): [...] a bunch of attributes [...] lines = generic.GenericRelation(Line) [...] all the class

brute force protection

2012-08-30 Thread brian downing
I want a brute force protector for logins that will: 1. block based on username(eventually add ip) 2. store info about failed login to db(username, pwd, user-agent, etc) 3. When locked will tell user that they are locked out I looked at the following apps: 1.

Re: About the Django URL tag {% url %}……

2012-08-30 Thread Nikolas Stevenson-Molnar
Also, your URL patters should start with "^" like your first one does. And unless you need the older version, I would upgrade to the latest stable version of Django (1.4.1) before doing anything else. _Nik On 8/29/2012 7:37 PM, Scarl wrote: > My python version is 2.7.2 , and django version is

Re: About the Django URL tag {% url %}……

2012-08-30 Thread Nikolas Stevenson-Molnar
It should still work... the problem may be elsewhere. Would you please provide the full contents of both url files? _Nik On 8/29/2012 7:37 PM, Scarl wrote: > My python version is 2.7.2 , and django version is 1.2.7 > I have a test just now. > If i put the name parameter in mysite.urls like

Upload Image and pdf file

2012-08-30 Thread Dott. Tegagni Alessandro
I have a project created with cms Django, and in this project i must upload a image and pdf file. the code in models.py is as follow: http://dpaste.com/793672/ The file with this step to upload, is inserted in correct folder, but the file not work. In Administrator panel, when i click on

Re: Instaling django

2012-08-30 Thread Amyth Arora
Seems you have not correctly installed django, you can follow any of the following tutorials to install the latest stable version of django according to your operating system: for windows: Install Django on Windows Tutorial for linux (ubuntu) :

Re: Instaling django

2012-08-30 Thread Enyert Viñas
U need to install django correctly. Check that you have the a supported python version for your django version. Try easy_install django or pip django. I think the installation instruction from django project site https://www.djangoproject.com/download/ are clear. If you are in windows use your

Re: Ecommerce Solution

2012-08-30 Thread Swaroop Shankar V
Mario, is it possible to integrate LFS with an existing django project? Also is there any method to import the data from my existing satchmo installation to LFS? Swaroop Shankar V On Mon, Aug 27, 2012 at 10:31 PM, Mario Menezes wrote: > LFS is another option. Lightning

Re: Instaling django

2012-08-30 Thread azizmb.in
Hi Did you install django correctly? Try, easy_install django or if you have pip, pip install django (you might need to use sudo for this) On Thu, Aug 30, 2012 at 11:58 AM, Balle wrote: > Hi, I have been trying to download django with every options but when i > run

Re: Ecommerce Solution

2012-08-30 Thread Swaroop Shankar V
Thanks Alex for your suggestion. I went through the documents for django-shop and i could see that they are not directly supporting some features like variation, payment gateway etc. Even if i plan to write the plugins for that myself, I would like to know if there is any method to import data

No exception in template using with and block.super

2012-08-30 Thread Skirmantas
I am am using with tag to transfer flags to block.super like this: {% with something=1 %} {{ block.super }} {% endwith %} Now if block.super rises an exception, for example NoReverseMatch, instead of error page, the {{ block.super }} renders to an empty string, the exception is

Instaling django

2012-08-30 Thread Balle
Hi, I have been trying to download django with every options but when i run pyhton on the terminal and then asks to import django. It always says no mudule named django. Could you pls help, donload it. Thank you in advance -- You received this message because you are subscribed to the

Re: About the Django URL tag {% url %}……

2012-08-30 Thread Scarl
I am so sorry……I didn't provide the render params... -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/04wrFi8MWRcJ. To post to this group, send email to