Re: importing csv data into database

2015-03-31 Thread sum abiut
Thanks guys, appreciate your help. Yes i am looking to have a form that accepts CSV files. I will have a read on the link that you guys have provided and see how it goes. Cheers On Wed, Apr 1, 2015 at 11:44 AM, Andrew Farrell wrote: > Hello Sum, > > There are two approaches you could take. > O

Re: login error: hostname doesn't match .... but it does!!!

2015-03-31 Thread Stephen J. Butler
This error doesn't appear in the Django sources for 1.6 or 1.7. I don't think the error is being generated by Django, so ALLOWED_HOSTS isn't the culprit. Plus, another clue is that "*.doba.com" isn't an actual value in your ALLOWED_HOSTS. If you search it appears related to Python SSL. Do you have

Re: importing csv data into database

2015-03-31 Thread Andrew Farrell
Hello Sum, There are two approaches you could take. One is to install a plugin like django-import-export and then use it's import functionality. Its been a while since I've done this, but when I did under django-1.4 it Just Worked. This is

Re: django custom timezone middleware causing django.contrib.humanize test to fail

2015-03-31 Thread Tim Graham
In general it's not possible to have those tests pass with arbitrary settings. To remedy this, the new test runner in Django 1.6 [1] won't pick up Django's tests that are part of contrib apps. On a related note, consider upgrading to a supported version of Django (1.7+), or at least the last r

Re: importing csv data into database

2015-03-31 Thread James Schneider
Is it a one-time import or are you looking to have a form that accepts CSV files? Either way, I would start with the Python csv module. Works really well and should be able to convert your CSV file to a standard Python list of lists, which you should be able to coerce into models, etc. https://do

importing csv data into database

2015-03-31 Thread sum abiut
Hi, Could someone please advise this i am trying to import data from csv file or write to database but i am confuse on how to start. i am using sqllite database. Cheers, -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: login error: hostname doesn't match .... but it does!!!

2015-03-31 Thread Mike Dewhirst
On 1/04/2015 8:06 AM, bwv549 wrote: Just trying to login a new user, but I'm getting this error, which makes no sense to me because it looks like it should match: Login error (https://www.jtprince.dev.doba.com/new-login.html) -- Exception: hostname 'www.jtprince.dev.doba.com' doesn't match eithe

login error: hostname doesn't match .... but it does!!!

2015-03-31 Thread bwv549
Just trying to login a new user, but I'm getting this error, which makes no sense to me because it looks like it should match: Login error (https://www.jtprince.dev.doba.com/new-login.html) -- Exception: hostname 'www.jtprince.dev.doba.com' doesn't match either of '*.doba.com', 'doba.com' -- Re

django custom timezone middleware causing django.contrib.humanize test to fail

2015-03-31 Thread Matt Ball
Hi -- I'm unable to get all tests to pass with Django 1.5.4 when I have custom timezone-activating middleware enabled. I've posted code here: http://stackoverflow.com/questions/29376612 Is there a way to disable the middleware for that specific test? -- You received this message because you ar

Heisenbug to do with self.client losing its sessionstore

2015-03-31 Thread Peter Bengtsson
I have this code that looks something like this (django 1.6.11): def test_something(self): url = someobject.get_url() User.objects.create_user('a', 'a...@example.com', 'secret') assert self.client.login(username='a', password='secret') r = self.client.get(url) assert r.status_c

Re: subprocess behave diferent in the server than in the client.

2015-03-31 Thread jirka . vejrazka
It's very likely that the actual user running the webserver process(es) does not have "ping" on the executables path... HTH Jirka -Original Message- From: dk Sender: django-users@googlegroups.com Date: Tue, 31 Mar 2015 08:12:03 To: Reply-To: django-users@googlegroups.com Subject

Chicago Django Study Group

2015-03-31 Thread Lane Campbell
Hello All, I'm hosting a weekly study group in Chicago. If anyone on the list is interested in stopping in and joining us please register (it's free): http://www.eventbrite.com/e/chicago-django-study-group-april-5th-2015-tickets-16386027048 Regards, Lane -- You received this message because

Re: Intermittent "Can't initialize character set latin1 errors" after centos 6 install

2015-03-31 Thread zignorp
We've also gotten "can't initialize utf8" errors in the same intermittent time period. OperationalError: (2019, "Can't initialize character set utf8 (path: /usr/share/mysql/charsets/)") -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Intermittent "Can't initialize character set latin1 errors" after centos 6 install

2015-03-31 Thread zignorp
Hello, We have an application that doesn't have much user interaction, mostly list displays that has been stable for quite some time. We haven't changed it since moving to django 1.6.5 but centos was just upgraded from 5 to 6 on the server we need to work on. After this we started noticing interm

Re: encode url

2015-03-31 Thread Vijay Khemlani
you want to encode them before they are submitted to the server? why? On Tue, Mar 31, 2015 at 1:23 PM, Pnelson wrote: > Im trying to learn django and i have a form in html that have 3 arguments > (app_id,user_id and username) and i want to encode those 3 arguments in > base64. > > views.py > > d

Re: subprocess behave diferent in the server than in the client.

2015-03-31 Thread aRkadeFR
What is your production stack (nginx/uwsgi/permissions folder etc. etc.)? Do you have any logger / stack trace to debug it? Thanks On 03/31/2015 05:12 PM, dk wrote: playing a littlie bit more, I found out that does work if I am using the manage.py runserver. but doesn't work using the producti

Re: Hidden fields in formsets

2015-03-31 Thread aRkadeFR
Hello, I read very quickly, but you sure you want to *render* and get the value of "user_create" from the client? It can be modified by any client... aRkadeFR On 03/31/2015 10:45 AM, François GUÉRIN wrote: Hi, I'm using multiple formsets in Create / Update views, and I want to set some *hidd

encode url

2015-03-31 Thread Pnelson
Im trying to learn django and i have a form in html that have 3 arguments (app_id,user_id and username) and i want to encode those 3 arguments in base64. views.py def encode(self): return base64.b64encode() def decode(self): return base64.b64decode() login.html Applicat

Re: Django project for multiple clients

2015-03-31 Thread Benjamin Scherrey
This is what we've done successfully for multiple projects. Django makes it fairly straightforward. -- Ben On Fri, Mar 27, 2015 at 4:37 PM, Gabriel - Iulian Dumbrava < gabriel.dumbr...@gmail.com> wrote: > If your clients are using different subdomains, like client1.webapp.com, > client2.webapp

Re: subprocess behave diferent in the server than in the client.

2015-03-31 Thread dk
playing a littlie bit more, I found out that does work if I am using the manage.py runserver. but doesn't work using the production django =(. On Monday, March 30, 2015 at 5:53:59 PM UTC-5, dk wrote: > hi, I have a button in my webpage that lunch a subprocess and check the > ping of the compu

Re: Upgrade to django 1.7- ImproperlyConfigured -Tastypie label duplicate? help

2015-03-31 Thread Filipe Ximenes
Thats strange. Are you using pip to install dependencies? Try uninstalling everything and reinstalling again. Make sure INSTALLED_APPS is not being defined somewhere else in the code. Does the error persists if you set DEBUG = False locally? On Tue, Mar 31, 2015 at 10:21 AM, amarshall wrote: > H

Re: Django Http post and csrf error

2015-03-31 Thread Anderson Resende
In your template put in your form: {% csrf_token %} example: {% csrf_token %} -- 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...@

Re: Upgrade to django 1.7- ImproperlyConfigured -Tastypie label duplicate? help

2015-03-31 Thread amarshall
Hi Filipe, I have few apps installed. When I comment out the tastypie line my app builds but gets an error in production because tastypie app isn't found. Here it is: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib

Re: Multiple Django Forms

2015-03-31 Thread Bill Blanchard
Hi Stephanie, Ping me offline, I might be able to help you out. On Mar 30, 2015 1:43 PM, "Stephanie Socias" wrote: > Thank you for your suggestions! > > Unfortunately, as I am very green at the moment, I nee more help to > implement all of these new techniques. Given that what I'm trying to >

Re: Upgrade to django 1.7- ImproperlyConfigured -Tastypie label duplicate? help

2015-03-31 Thread Filipe Ximenes
Can you show us your INSTALED_APPS? It may be the case you have a lot of apps installed and is not seeing a duplicate reference to tastypie. On Mar 29, 2015 9:43 PM, "amarshall" wrote: > Hi, > > So I updated my django project from django 1.6 to 1.7.7 and when I run > "python manage.py migrate" I

Hidden fields in formsets

2015-03-31 Thread François GUÉRIN
Hi, I'm using multiple formsets in Create / Update views, and I want to set some *hidden* fields in it : user_create, date_create on creation, user_update, date_update on update. I've created a MultiFormsetMixin, which provide machinery to initialize those formsets in my CreateView / UpdateVi

Re: Multiple Django Forms

2015-03-31 Thread François GUÉRIN
Hi Stephanie, Maybe you are french ? I'm sorry, but I've no time to make a screencast video. But the django doc is very good and in multiple languages : french is available if you change /en/ > /fr/ in the doc url. 1/ For generic views : https://docs.djangoproject.com/en/1.7/topics/class-base