Re: Unable to storing unicode data using django

2013-04-12 Thread mln sastry
Hi Anshum, Thank you for responding. I defined a Book model as shown below and tried to save it from the admin shell. I am using python2.7.3 , django1.5, and python mysql driver 1.2.3. I am not sure if my model data type is wrong or if any qualifier is missing. Please help. I got this

Re: Custom view on the home page based on groups assigned to user.

2013-04-12 Thread Enator24
On Saturday, 13 April 2013 02:29:52 UTC+5:30, Enator24 wrote: > > Hi I need to develop an application where I have three groups first the > creator, second the reviewer, 3rd the Approver. > > I want that once the creator creates and submits the form for save, and > reviewer logs in at his end

Re: One Way to Install Django on IIS

2013-04-12 Thread Mark Lybrand
Cool.Please provide feedback so we can make the steps better. Already have another friend encounter some issues trying to work our steps with his config. The more configs we put through the paces, the better this can be :) On Apr 12, 2013 4:18 PM, "Nick D" wrote:

Message processing queue for Django

2013-04-12 Thread John Riley
Hello Django users! The latest cloud package (v2.7.7) from PiCloud (http://www.picloud.com) gives Django users a distributed, fault-tolerant message queue with a scalable message processing system. We ensure that you never lose any messages, and that they're processed at the speed you need--even

ViewDoesNotExist at /admin/

2013-04-12 Thread Daniel Guo
Hi all, I've spent lot of time trying to figure out what is going on there, but my admin site is still not working. I just followed the Django tutorial to create an app named polls. But I have a customized template_dir which is used by my previous app. All the configurations to activate admin

Re: Newbie CSRF protection questions

2013-04-12 Thread testbackupacct
Russ, This is a really great explanation of CSRF vulnerabilities, and I think I have a handle on what I need to do now. Thanks for taking to time to spell things out for me. > > Best, Spork -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Reset Demo Database Data (with Dates)

2013-04-12 Thread Tom Evans
On Fri, Apr 12, 2013 at 8:00 PM, Joey Espinosa wrote: > > Hey guys, > > I have a situation where I have test data that has been entered into a > demo database (MySQL). During the demo of the app with a customer, data will > be altered. After the demo is complete, I need

Re: Need Advice: Sending Emails

2013-04-12 Thread Venkatraman S
On Fri, Apr 12, 2013 at 10:51 PM, Kurtis Mullins wrote: > Check out sendgrid. If you use Rackspace I think they even give you a good > discount. > Yes, they are called as "ESP" - Email Service Provider. And I have thought about them. Looks like this is the only way

Re: Reset Demo Database Data (with Dates)

2013-04-12 Thread Joey Espinosa
Nick, Well, you're right, the interval would depend on how old the application is. I'd rather do this through the ORM so that I can check each field to see if it's the appropriate type (DateTimeField), since I don't know exactly which fields I'll be working on (I know, it's pretty ridiculous). I

Re: Building table headers based on instance of model

2013-04-12 Thread Tom Evans
On Fri, Apr 12, 2013 at 11:57 PM, Nick D wrote: > Hi again! > > I'm looking to create a table based on a model. I'm trying to make it simple > and reusable. I want to build the table headers () based on the fields > in the model. Given a specific model, is there a

Re: One Way to Install Django on IIS

2013-04-12 Thread Nick D
Just what I'm going to need when I'm done with development. Thanks! On Friday, April 12, 2013 6:02:49 AM UTC-7, Mark Lybrand wrote: > My buddy and I were working last night on getting Django running on IIS7. > We are not quite done as we are still working out issues surrounding > static

Re: django-admin.py startproject mysite

2013-04-12 Thread Nick D
It looks like the path to django-admin.py is not in your system path. You can try using the absolute path. ie: /usr/lb/python2.7/dist-packages/django/bin/django-admin.py startproject mysite The tutorial also gives the following advice: “command not found: django-admin.py”

Re: Reset Demo Database Data (with Dates)

2013-04-12 Thread Nick D
Joe, I'm new to Django but I do have some SQL experience. Couldn't you just run a statement similar to the following? update mytable set date1 = DATE_ADD(date1, INTERVAL 1 DAY) The pinch point here is the fact that you would have to update the interval based on how old the application is.

Building table headers based on instance of model

2013-04-12 Thread Nick D
Hi again! I'm looking to create a table based on a model. I'm trying to make it simple and reusable. I want to build the table headers () based on the fields in the model. Given a specific model, is there a way to dynamically build the headers in the template? Thanks! -- You received this

need help with csv export

2013-04-12 Thread frocco
Hello, I have a php export file that I need to duplicate in django. I am using django csv import Here is the PHP format I want. 3128559,"GOODYEAR","4024064","","","","","","","","","","","16","","","","","" Here is the django output 3128559,'GENERAL','15480',,,'4' I want it to

Re: Custom view on the home page based on groups assigned to user.

2013-04-12 Thread Anurag Chourasia
Within the templates, you can show different HTML elements based on the user attributes/group. Traditional IF checks. Regards, Guddu On Fri, Apr 12, 2013 at 4:59 PM, Enator24 wrote: > Hi I need to develop an application where I have three groups first the > creator,

Custom view on the home page based on groups assigned to user.

2013-04-12 Thread Enator24
Hi I need to develop an application where I have three groups first the creator, second the reviewer, 3rd the Approver. I want that once the creator creates and submits the form for save, and reviewer logs in at his end he should be able to view all the information submieted and marked

Re: Status of Django with Python 3.x

2013-04-12 Thread Mark Sundstrom
FWIW, I have several small, public-facing Django projects, all of which are on Django 1.5.1/Python 3.3. I've had no trouble with them at all. I've wanted to switch to Python 3 for a while, but it's only been in the past year (thanks in large part to Django's move) that it's become practical.

Re: should we develop apps based on urls?

2013-04-12 Thread Sam Solomon
Yes, it's okay to just try stuff out locally, but one word of caution, after everything is working and before you deploy the code, it's probably a good idea to review any "lets see how this looks/works" code/decisions to make sure it still makes sense. Once a URL is in the wild, it's annoying

Reset Demo Database Data (with Dates)

2013-04-12 Thread Joey Espinosa
Hey guys, I have a situation where I have test data that has been entered into a demo database (MySQL). During the demo of the app with a customer, data will be altered. After the demo is complete, I need to "reset" the demo data back to what it was before the demo. I realize I could do this

Date from DateTimeField vs date from model method: foreign key DateTimeField

2013-04-12 Thread Mike Doroshenko II
In my attached models.py I have a class that has a model method to return the time last modified on the latest object that has a foreign key to it. So when I made a new document, in the admin interface I see April 11, 2013, 8:24 p.m. for the Created column and 2013-04-11 20:24:36.799167 for

Re: facebook/twitter sharing, and testing

2013-04-12 Thread sara ismail
didnt reallt get it, but thank u! On Wed, Apr 10, 2013 at 11:26 PM, Bill Freeman wrote: > > > > On Wed, Apr 10, 2013 at 11:55 AM, sara ismail > wrote: > >> can anyone help me?! >> >> On Wednesday, April 10, 2013 4:50:51 PM UTC+2, sara ismail

Re: django-admin.py startproject mysite

2013-04-12 Thread James Bennett
The tutorial mentions the most common issues: * django-admin.py not on your path * django-admin.py lacking executable permission * django-admin.py was renamed by your operating system distributor It also explains how to solve each of those issues. Have you tried the suggested solutions the

django-admin.py startproject mysite

2013-04-12 Thread Kevin Le Bouthillier
django-admin.py startproject mysite unrecognized command. Why is the python+django setup instructions so unclear? -- 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

Re: Need Advice: Sending Emails

2013-04-12 Thread Kurtis Mullins
Check out sendgrid. If you use Rackspace I think they even give you a good discount. You could also just configure everything to use Google's SMTP. I've done that for quite a few projects. On Fri, Apr 12, 2013 at 12:19 PM, Tom Evans wrote: > On Fri, Apr 12, 2013 at

Re: Django 1.5.1: ORA-01843: not a valid month

2013-04-12 Thread Carsten Fuchs
Am 2013-04-10 17:21, schrieb Carsten Fuchs: So as was mentioned in the Stackoverflow post, this is likely a problem in cx_Oracle rather than Django... Well, I probably shouldn't have said this, because this problem did not occur with Django 1.4.x, and more importantly, I wonder what should

Re: Need Advice: Sending Emails

2013-04-12 Thread Tom Evans
On Fri, Apr 12, 2013 at 5:01 PM, Venkatraman S wrote: > Looks like an overkill to me. Why setup an SMTP server for this! > Are there no other options? Use your ISPs SMTP server. If your ISP doesn't provide one, you have to provide one. Some MTA has to deliver the email to

Overriding queryset for inline admin

2013-04-12 Thread Patrick Craston
Hi list I'm having some trouble overriding the queryset for my inline admin. Here's a bog-standard parent admin and inline admin: class MyInlineAdmin(admin.TabularInline): model = MyInlineModel def queryset(self, request): qs = super(MyInlineAdmin, self).queryset(request)

Re: Need Advice: Sending Emails

2013-04-12 Thread Venkatraman S
Looks like an overkill to me. Why setup an SMTP server for this! Are there no other options? On Fri, Apr 12, 2013 at 12:00 PM, Sergiy Khohlov wrote: > setup SMTP. and set your django server as trusted smtp client > > Many thanks, > > Serge > > > +380 636150445 > skype:

Re: Introducing objpool: a generic object pooling library

2013-04-12 Thread Johannes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sounds great. Thanx guys. On 12.04.2013 11:29, Stratos Psomadakis wrote: > Hi fellow Django users! > > We are pleased to introduce objpool [1] to the Django community. > > objpool provides a generic library for pooling resources as objects. > It's

django auth user - difference between last login and now

2013-04-12 Thread Jaimin Patel
Hello, I would like to provide some instructions if user come after gap of 1 week or so. I was hoping that I can do that by - (datetime.now()-user.last_login) > timedelta(days=7) Though by the time it comes to my view last login is already updated by auth user model of django, so in my

Re: Oracle database TextField limitations and Django admin interface queries

2013-04-12 Thread Lauri Savolainen
Thank you for the reply, The field is defined in the Django model as: location_description = models.TextField(_('additional route information'), blank=True) Data length for the corresponding column in the database seems to be 4000 and the type is NCLOB. The database is created by Django's

RE: Unable to storing unicode data using django

2013-04-12 Thread Anshum Verma
Utf8 is default support in django unless you are explicitly typecasting to str. Please provide details of traceback and code snippets to debug this. Sent from my Windows Phone -- From: sastry mln Sent: 12-04-2013 17:29 To:

Re: Unable to storing unicode data using django

2013-04-12 Thread Tom Evans
On Fri, Apr 12, 2013 at 6:38 AM, sastry mln wrote: > Hi All, > I have a mysqldb with utf8 charset and utf8_general_ci collation. The > tables are also explicity defined to use the same charset/collation > I have a django model with CharField. > I want to store unicode

Introducing objpool: a generic object pooling library

2013-04-12 Thread Stratos Psomadakis
Hi fellow Django users! We are pleased to introduce objpool [1] to the Django community. objpool provides a generic library for pooling resources as objects. It's being developed by GRNET [2], and used in Synnefo [3]. Synnefo is an open source IaaS cloud platform, compliant with the OpenStack

Geodjango OGRException when transforming SRID 900913 to SRID 28350 (UTM 50)

2013-04-12 Thread ben . khoo
Hi Everyone, I was wondering if anyone can shed any light on what I could be doing wrong here. I am trying to convert a wkt from SRID 900913 to a wkt in 28350 (UTM 50). Everything works fine if I go from 900913 -> 4326 but going from 900913 -> 28350 throws an OGR Exception. I'd be grateful

Unable to storing unicode data using django

2013-04-12 Thread sastry mln
Hi All, I have a mysqldb with utf8 charset and utf8_general_ci collation. The tables are also explicity defined to use the same charset/collation I have a django model with CharField. I want to store unicode characters (hindi language chars) when i tested the model form django admin

Re: Static Files on IIS install

2013-04-12 Thread Mike Dewhirst
You need to make IIS serve the static files from a given location. 1. Run collectstatic and note where it puts the files (STATIC_ROOT). 2. Tweak IIS so it connects STATIC_URL to STATIC_ROOT. I can't help there because I have never used it. I could help if it was Apache. Good luck Mike

Re: Newbie CSRF protection questions

2013-04-12 Thread Russell Keith-Magee
On Fri, Apr 12, 2013 at 10:49 AM, wrote: > Hi, > > I'm fairly new to web development and Django, and I'm trying to make sure > my application is protected against CSRF attacks. I've read through > https://docs.djangoproject.com/en/dev/ref/contrib/csrf/, but I'm not >

Re: WSGIPythonPath and

2013-04-12 Thread Roberto López López
Thank you very much Joey and Nik, I will talk about your proposed solutions with our sysadmin. Best, Roberto On 04/12/2013 01:11 AM, Nikolas Stevenson-Molnar wrote: > Another direction might be to run a separate WSGI HTTP server (like > gunicorn) and proxy to it from Apache. Saves the hassle

Re: Need Advice: Sending Emails

2013-04-12 Thread Sergiy Khohlov
setup SMTP. and set your django server as trusted smtp client Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Apr 12, 2013 at 9:05 AM, Venkatraman S wrote: > Well, my Q what should i do so that i get 'delieverd' emails from both > django apps and also *nix

Re: Need Advice: Sending Emails

2013-04-12 Thread Venkatraman S
Well, my Q what should i do so that i get 'delieverd' emails from both django apps and also *nix processes. On Fri, Apr 12, 2013 at 11:11 AM, Sergiy Khohlov wrote: > this is expected behavior. > SMTP server should blocks attempt to send email from nonauth client. In >