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

2014-04-28 Thread Ravi Hemnani
Hey, Sorry to reply so late. I figured that thing out and i was able to send the results into a table successfully. Thanks for the help :D On Thursday, 24 April 2014 20:23:29 UTC+5:30, Erik Cederstrand wrote: > > > Den 24/04/2014 kl. 16.46 skrev Ravi Hemnani > >: > > > > def table(request):

migrate command fails with foreign key to user model

2014-04-28 Thread Ryan
I have used django in the past, but not for some time. So the changes surrounding the user models are new to me. I downloaded v1.7b2 and proceeded to start a new development I am planning. However I came across a problem when trying to run migrate after generating the migrations on an app th

I can't run django server nor activate the virtualenv

2014-04-28 Thread Fred DJar
*Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 and django 1.6 on my desktop (ubuntu 14)but i can't run the application or activate the virtualenv* *this is the message i got:* ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver Traceback (most recent call last):

Django Celery throwing runtime warnings for naive times

2014-04-28 Thread heidi
I run an online game with Django 1.6 and Celery 3.1.11. Kombu is 3.0.15. Recently I had problems with Celery and DST, so I decided to run the whole site on UTC and save myself the bother of worrying about timezones. The relevant parts of my settings.py: TIME_ZONE = 'UTC' USE_TZ = True C

Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Victor Hooi
Hi Fred, Are there any lines *below* the error message you pasted? The last line I can see is: File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", > line 40, in import_module __import__(name) Is there anything else? Cheers, Victor On Monday, 28 April 2014 03:03:40

Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Fred DJar
There is one other line: ImportError : No module named bootstrapform On Monday, 28 April 2014 11:34:35 UTC+1, Victor Hooi wrote: > > Hi Fred, > > Are there any lines *below* the error message you pasted? > > The last line I can see is: > > File "/usr/local/lib/python2.7/dist-packages/django/utils/

IndentationError :Unexpected Indent

2014-04-28 Thread Kelvin Mwangi
I have been following up on the tutorial on Python version 1.6 and I got stuck at an indentation error I can't seem to debug. Its under the first tutorial of creating Django application and I modified my polls\models.py file to look like this; from django.db import models import datetime from

Re: IndentationError :Unexpected Indent

2014-04-28 Thread Andreas Kuhne
2014-04-28 7:55 GMT+02:00 Kelvin Mwangi : > I have been following up on the tutorial on Python version 1.6 and I got > stuck at an indentation error I can't seem to debug. Its under the first > tutorial of creating Django application and I modified my polls\models.py > file to look like this; > >

Subjectively Required Fields

2014-04-28 Thread Daniel Watkins
Hello all, We're running in to an interesting validation problem. We have a model which represents a (specific type of) date interval, bounded by a start date and end date. Both fields are optional, but if end date is specified then start date must be specified. We are creating an instance of

ANN: ReportLab PLUS 3.1 - rapid PDF creation for Django sites

2014-04-28 Thread Andy Robinson
ReportLab are pleased to announce the release of the Python 3-compatible version of our PDF generation toolkit. After an extensive rewrite, our framework now runs under Pythons 2.7, 3.3 and 3.4; and both the open source and commercial tools can be installed with pip and managed from requirem

Re: What are the active Django e-commerce frameworks right now (2014)?

2014-04-28 Thread Andy Robinson
I second the recommendation for Stripe. I have no need for shopping carts but suffered for years dealing with credit card payments for license renewals. Many solutions were running into problems with foreign banks blocking payments (which the payment solution can't do anything about), spurious

Re: Django ユーザー登録について

2014-04-28 Thread Lachlan Musicman
Hito san, I don't mean to be rude mate, but Google is really really awesome - just pump in the error message http://stackoverflow.com/questions/10388033/csrf-verification-failed-request-aborted L. On 28 April 2014 16:09, hito koto wrote: > Hi, Thank you! > > I write to Views.py : > def attenda

Re: IndentationError :Unexpected Indent

2014-04-28 Thread Rene Zelaya
Ditto from what Andreas said - Python is very sensitive to indentation. If the method 'was_published_recently' is part of the Poll model, then there should be the same amount of indentations before 'def was_published...' as for the 'def __unicode__' method. Then, for uniformity's sake (even th

SQL query to authenticate user from non-django app

2014-04-28 Thread Goran Mekic
Hi, I have a Django project with its DB. How can I use Django DB users to auth, for example, vsftpd? I mean, I couldn't find suitable SQL query to check the password. Thank you! signature.asc Description: Digital signature

Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Rene Zelaya
Hi Fred - So if you can't activate your virtualenv, and you installed Django in that virtualenv, that is likely the root of your problem, because without it, none of the modules will appear as installed and you will not be able to run the server (or access the python manage.py shell, etc). I

Re: IndentationError :Unexpected Indent

2014-04-28 Thread Dow Street
Based on the code below it looks like your indentation is off for def was_published recently code block (i.e. 3 spaces instead of 4). If that does not solve the problem, you might also check to ensure that you're not mixing tabs and spaces when indenting. Depending on your environment that can

Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Fred DJar
Thanks Rene The virtualenv was created in Ubuntu but now i'm running windows, should i run it in Ubuntu because i've noticed that virtualenv folder structure differentiate from Ubuntu to windows this is the message i got from the prompt command: activate is not recognized as an internal or exter

Re: Django Celery throwing runtime warnings for naive times

2014-04-28 Thread John DeRosa
I suggest you file a ticket in the celery project (https://github.com/celery/celery/issues), or ask for help on the #celery IRC channel. (See http://celery.readthedocs.org/en/latest/getting-started/resources.html for "help" resources...) They'd be more profitable avenues for you, given the code

Re: migrate command fails with foreign key to user model

2014-04-28 Thread Simon Charette
This is a release blocker for Django 1.7 which is being tracked in #22485 . Le lundi 28 avril 2014 04:54:32 UTC-4, Ryan a écrit : > > I have used django in the past, but not for some time. So the changes > surrounding the user models are new to me.

Re: Subjectively Required Fields

2014-04-28 Thread Mario Gudelj
Your clean method needs to return cleaned_data I believe On 28/04/2014 10:02 pm, "Daniel Watkins" wrote: > Hello all, > > We're running in to an interesting validation problem. We have a model > which represents a (specific type of) date interval, bounded by a start > date and end date. Both fie

Is it a django's bug or something mistaken,when I can't encode chinese characters in django environment?

2014-04-28 Thread jie . li0117
My environment is python3.3.4 django1.6.2,when I work on a django project,and I need to send email to my users through a email proxy service,but I went wrong with the django's send_mail. So I wrote a function with python's stmplib and email Lib.The code is like: def email_user(context): fro

Re: Is it a django's bug or something mistaken,when I can't encode chinese characters in django environment?

2014-04-28 Thread Simon Charette
Maybe those API's expect you to pass them bytes and not text. Did you try encoding your subject and your body as 'utf-8' bytes (using .encode('utf-8'))? Simon Le lundi 28 avril 2014 23:00:03 UTC-4, jie.l...@gmail.com a écrit : > > > My environment is python3.3.4 django1.6.2,when I work on a dja

Re: placing views and models in configuration root

2014-04-28 Thread Andreas Bloch
so what do you when you're making trivial sites, that don't have any database models, like about-page, landing-page and so on? would you make a separate app for those and stuff them all in there or just use templateviews and route them from the configuration root urls.py? -- You received this m

Re: migrate command fails with foreign key to user model

2014-04-28 Thread Ryan
Thanks for the info. At least I now know it wasn't anything I was doing wrong! On Monday, 28 April 2014 17:54:29 UTC+1, Simon Charette wrote: > > This is a release blocker for Django 1.7 which is being tracked in > #22485 > . > > Le lundi 28 avril 20