Re: request.FILES empty, I think I am doing everything correctly

2013-04-04 Thread Tomas Ehrlich
Hi John {% csrf_token %} must be definitely inside the tag. It renders . Please try it and tell if it works. Cheers, Tom Dne Thu, 4 Apr 2013 14:38:58 -0700 (PDT) John napsal(a): > This is Django 1.5 > Python 2.7.3 > MYSQL Database > > Here is the model that I am using: > > class Supporti

Re: Trouble with CSS/Static Files

2013-04-04 Thread Mike Dewhirst
On 5/04/2013 2:33pm, Vibhu Rishi wrote: Hi, >Have you ran >$ manage.py collectstatic Can you explain why I need to do this on my dev machine when I am not deploying it to production ? If I look at the docs at https://docs.djangoproject.com/en/dev/howto/static-files/#deployment , it mentio

static file rendering help

2013-04-04 Thread Fatih Tiryakioglu
Hi all, I want to render back "user uploaded images" via template. I pass the shortcuts to the template, but template can't show it: only small image symbol. How can i show it up. I tryed some 'MEDIA_ROOT', 'MEDIA_URL' settings, and read some info, but i couldn't figure out.. I appreciate your

Job opportunity in Silicon Valley

2013-04-04 Thread Daniel França
Hello people, We've a good job opportunity on a startup at Silicon Valley with Django. We look for people motivated and with passion for development to bring new ideas to life. The work can be done in home office. The skills needed: Good technical skills in Python/Django. Good english (for meeti

Re: Trouble with CSS/Static Files

2013-04-04 Thread Vibhu Rishi
Hi, >Have you ran >$ manage.py collectstatic Can you explain why I need to do this on my dev machine when I am not deploying it to production ? If I look at the docs at https://docs.djangoproject.com/en/dev/howto/static-files/#deployment , it mentions that I need to run this to deploy it. However

RE: Help in making a portal

2013-04-04 Thread Anoop Nayak
I had already posted in the that group but there was no answer. -- 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...@googlegroups.com. To po

Re: General Apache Deploy Strategy

2013-04-04 Thread Mike Dewhirst
On 5/04/2013 12:36am, Bill Freeman wrote: It is also possible to use a non-distribted VCS, like Subversion, but you lose, IIUC, the ability to check in incremental stuff If you work in (say) your own branch of a SVN repo you can check in as often as you like. And you can merge other branches -

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Bastian
I am trying now in a brand new environment, I have set up a new os, a new virtualenv with all the dependencies upgraded to latest versions, and I installed the project from the repository. It loads with debug = False, quite strange. I need it to work with debug = True and I want to understand wh

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Bastian
I'm not sure what you mean with 'connect to views'. In this case Django is complaining about the URL tags, the first one that gives an error tries to load django.views.i18n.javascript_catalog. When I manage.py shell I can do from django.views import * without problem. I really have no clue, may

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Mark Furbee
Can you run manage.py shell and connect to 'views?' On Thu, Apr 4, 2013 at 4:13 PM, Mark Furbee wrote: > It would appear to me that your missing the path to django in your > environment. When you upgraded did you also upgrade to another version of > Python, perhaps? Is the dist-packages/site-pa

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Mark Furbee
It would appear to me that your missing the path to django in your environment. When you upgraded did you also upgrade to another version of Python, perhaps? Is the dist-packages/site-packages django folder in the same place it was? On Thu, Apr 4, 2013 at 3:58 PM, Bastian wrote: > I have tried

Re: [django-users] How to dynamically set crop processor parameters in django-imagekit ?

2013-04-04 Thread CJ Milholland
Not sure if this is the direction you are looking to go but I have had great luck using http://sorl-thumbnail.readthedocs.org/en/latest/examples.html You do your template cropping in the template, This does require you to setup a caching server. Hope this helps! On Thursday, April 4, 2013

Re: Trouble with CSS/Static Files

2013-04-04 Thread CJ Milholland
Have you ran $ manage.py collectstatic On Thursday, April 4, 2013 12:49:11 AM UTC-7, Vibhu Rishi wrote: > > I am not sure where I am going wrong, but the CSS files are just not > getting picked up. I have just started a project and am using the dev > server with the runserver command. > > Her

Re: Django 1.4 - how to display a success message on form save

2013-04-04 Thread Zach Mance
Hi Kurtis, I saw your SO post, and I'm trying trigger success messages from my CBV's, and I'm just wondering how your "MessageMixin" methods work with your CBV's. For example, where/how does the form_valid() get called to pass the success_message from the CBV's. Also, will this work with 1.4?

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Bastian
I have tried with runserver and debug = True and it gives me the error but when I turn off debug then the site loads fine. Then I installed gunicorn and with debug = true and the error appears but with debug = False the site loads fine but without the static content. I don't know if this is a clu

[django-users] How to dynamically set crop processor parameters in django-imagekit ?

2013-04-04 Thread Leonardo S
Hi, I am using django-imagekit to crop images. I have this model: *from imagekit.models import ImageSpecField* *from imagekit.processors import Crop* *class Image(models.Model):* *x1 = models.IntegerField(blank=True, default=0)* *y1 = models.IntegerField(blank=True, default=0)* *heig

request.FILES empty, I think I am doing everything correctly

2013-04-04 Thread John
This is Django 1.5 Python 2.7.3 MYSQL Database Here is the model that I am using: class SupportingDocument(models.Model): """Defines an archived attachment.""" provision = models.ForeignKey(Provision, null = False, blank = False) submitted_by = models.CharField(max_length = 64, nul

RE: Help in making a portal

2013-04-04 Thread Babatunde Akinyanmi
Hi, Try the django filer group http://groups.google.com/group/django-filer Sent from my Windows Phone -- From: Anoop Nayak Sent: 4/4/2013 3:58 PM To: django-users@googlegroups.com Subject: Help in making a portal I'm a newbie to django and I was trying to make a portal

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Bastian
Thanks for the answer. But it does not really make any difference. I am still trying to figure out what is wrong in there... -- 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

Re: Can i access my database with Django?(Urgent)

2013-04-04 Thread Bill Freeman
I believe that additional tables are required to run Django, such as session and user tables, stuff to do with permissions, stuff to do with content types. Maybe you can avoid these by not including the core applications in INSTALLED_APPS, but then you couldn't log in to or be designated an superu

Suddenly manage.py syncdb fails with 'no such table django_session'

2013-04-04 Thread Thomas Weholt
I'm using django 1.5.1, python 2.7.3, ubuntu 12.10 and sqlite. My project has been running flawlessly, but I added a database field, deleted my sqlite database-file and ran python manage.py syncdb. Now it suddenly fails with DatabaseError: no such table: django_session. I haven't changed settings

Re: Password reset email not sent

2013-04-04 Thread Max Lynch
I had the same problem, and it turned out to be that I didn't have a value set for DEFAULT_FROM_EMAIL. Hope that helps someone in the future. On Tuesday, May 4, 2010 4:28:04 PM UTC-5, Shawn Milochik wrote: > > I don't know why your e-mail isn't being sent, but I know that if multiple > User ins

Re: Can i access my database with Django?(Urgent)

2013-04-04 Thread Giorgos Kontogiorgakis
So,after i run the inspectdb i have a model.py file generated that creates models by introspecting my existing database,right?After that thing i must create an app and place the models.py that generated after running inspectdb in there and then add the app to my INSTALLED_APPS setting and run t

Re: Problems receiving data from DB (sqlite3)

2013-04-04 Thread Alexis Roda
Al 03/04/13 19:38, En/na Johannes ha escrit: Hi list, I have a confusing behaviour when I try to access some data in the DB. I created a model and build the database with syncdb. I can create and save data via python manage.py shell and it's still available after I a restart of the shell. But thi

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-04 Thread budlight
I would say its definitely not isolation level, as restarting the django instance made this issue go away for a few hours. I would setup a test for this, but don't really know if there already exist any per thread tests for django sanity I could look at for examples. The caching change is ab

Re: Adding context data to a TemplateView?

2013-04-04 Thread Dan Gentry
Roy, I agree with Fallen that a subclass of TemplateView is required here. I have used this technique often. Dan class MyTemplateView(TemplateView): template_name = 'my_template.html' def get_context_data(self, **kwargs): context = super(MyTemplateView, self).get_context_data(*

Re: Can i access my database with Django?(Urgent)

2013-04-04 Thread Giorgos Kontogiorgakis
So,after i run the inspectdb i have a model.py file generated that creates models by introspecting my existing database,right?After that thing i must create an app and place the models.py that generated after running inspectdb in there and then add the app to my INSTALLED_APPS setting and run t

Re: Can i access my database with Django?(Urgent)

2013-04-04 Thread Bill Freeman
Be sure that you back up your database first, or at least soon, just in case... On Thu, Apr 4, 2013 at 11:35 AM, Giorgos Kontogiorgakis < shortgeorge...@yahoo.com> wrote: > Thanks a lot Tom for your time and for your help.i'll check what u've send > me and i'll inform you right after! > > -- >

Re: Can i access my database with Django?(Urgent)

2013-04-04 Thread Giorgos Kontogiorgakis
Thanks a lot Tom for your time and for your help.i'll check what u've send me and i'll inform you right after! -- 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 d

Re: Can i access my database with Django?(Urgent)

2013-04-04 Thread Tom Evans
On Thu, Apr 4, 2013 at 4:11 PM, Giorgos Kontogiorgakis wrote: > Hi there! > I am new to Django and Python as well!I have a project to make and i'm > really confused of what i must do to start it!I hope that you can help me > somehow to make a start!First of all i have been given an existing databa

Re: Problem with intermediary table from legacy database

2013-04-04 Thread Vittorio
Thanks a lot Russ Magee, now it works. Ciao Vittorio Il giorno 04/apr/2013, alle ore 14:24, Russell Keith-Magee ha scritto: > > > On Thu, Apr 4, 2013 at 6:48 PM, Tom Evans wrote: > On Thu, Apr 4, 2013 at 11:35 AM, Russell Keith-Magee > wrote: > > > > > > On Thu, Apr 4, 2013 at 5:28 PM, Vittori

Can i access my database with Django?(Urgent)

2013-04-04 Thread Giorgos Kontogiorgakis
Hi there! I am new to Django and Python as well!I have a project to make and i'm really confused of what i must do to start it!I hope that you can help me somehow to make a start!First of all i have been given an existing database with existing tables and columns in it!I started reading Django t

Re: Trouble with CSS/Static Files

2013-04-04 Thread Vibhu Rishi
Thanks Tom, your post got me thinking ! If the problem was the pathing then using the absolute path should have worked. So , I put in STATIC_ROOT="/home/vibhu/Programming/qj/static/" But that still did not work - which means that I was still doing something wrong. Finally, it hit me - I was using

Re: Trouble with CSS/Static Files

2013-04-04 Thread Vibhu Rishi
Hi Jack, Template is fine as the Hello World is getting rendered correctly. I also get the 200 for / Vibhu On Thu, Apr 4, 2013 at 6:33 PM, Jacky Tedy wrote: > it looks like you don't have the right template ! You sure you have the > right path? > > > 2013/4/4 Vibhu Rishi > >> I am not sure w

Help in making a portal

2013-04-04 Thread Anoop Nayak
I'm a newbie to django and I was trying to make a portal where the users can upload and download files. I found this plugin called django-filer and i integrated to my site. The problem now I'm facing is that this plugin can only be accessible to admins. or it is present only to admins. How can I

Re: Trouble with CSS/Static Files

2013-04-04 Thread Tom Evans
On Thu, Apr 4, 2013 at 8:49 AM, Vibhu Rishi wrote: > I am not sure where I am going wrong, but the CSS files are just not getting > picked up. I have just started a project and am using the dev server with > the runserver command. > > Here's my relevant settings.py : > > > STATIC_ROOT = os.path.jo

Re: e commerce django framwork

2013-04-04 Thread Kelly Nicholes
I recommend you take a look at https://www.djangopackages.com/grids/g/ecommerce/. I've used satchmo a couple times. I recall setting it up having a couple snags, but nothing unmanageable. Overriding the templates isn't a big deal if you understand the TEMPLATE_URLS setting. I haven't custom

Re: General Apache Deploy Strategy

2013-04-04 Thread Bill Freeman
Scripting is fine, but I've survived pretty well using a DVCS for deployment. Whether you force everything through a separate "definitive" repository machine, to aid in knowing when you have to merge first, or whether you simply push to a deployment box, only the changes are sent, and only files u

Re: Trouble with CSS/Static Files

2013-04-04 Thread Jacky Tedy
it looks like you don't have the right template ! You sure you have the right path? 2013/4/4 Vibhu Rishi > I am not sure where I am going wrong, but the CSS files are just not > getting picked up. I have just started a project and am using the dev > server with the runserver command. > > Here's

Re: Problem with intermediary table from legacy database

2013-04-04 Thread Russell Keith-Magee
On Thu, Apr 4, 2013 at 6:48 PM, Tom Evans wrote: > On Thu, Apr 4, 2013 at 11:35 AM, Russell Keith-Magee > wrote: > > > > > > On Thu, Apr 4, 2013 at 5:28 PM, Vittorio wrote: > >> > >> Under Django 1.5.1 I'm having a go at using ManyToManyField (see below > models.py and admin.py files) referring

Re: No Module Named Module Name

2013-04-04 Thread Sreenivas Reddy T
include polls application in installed_applications in settings.py file and do this import from polls.models import Poll in shell , let me know if that works. HTH. Best Regards, Srinivas Reddy Thatiparthy 9703888668. "Anyone who has never made a mistake has never tried anything new !!! " --Albe

No Module Named Module Name

2013-04-04 Thread sharath bangera
I have Created the Project and App using Python And Django. This is My Model in my model.py -- class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('da

Re: Problem with intermediary table from legacy database

2013-04-04 Thread Tom Evans
On Thu, Apr 4, 2013 at 11:35 AM, Russell Keith-Magee wrote: > > > On Thu, Apr 4, 2013 at 5:28 PM, Vittorio wrote: >> >> Under Django 1.5.1 I'm having a go at using ManyToManyField (see below >> models.py and admin.py files) referring to an Sqlite3 legacy db. >> >> I'm receiving the following fat

Show label next to Foreing key raw_id_field

2013-04-04 Thread Almudena Vila Forcén
Hi, I have a model with a Foreing key raw_id_field. Now, when I choose something and I return to the model I can only see the id. But when I save it and I open it again, I can see the unicode next to search button. I want to show the unicode as soon as I return to the model. I've tried to use

Re: Problem with intermediary table from legacy database

2013-04-04 Thread Russell Keith-Magee
On Thu, Apr 4, 2013 at 5:28 PM, Vittorio wrote: > Under Django 1.5.1 I'm having a go at using ManyToManyField (see below > models.py and admin.py files) referring to an Sqlite3 legacy db. > > I'm receiving the following fatal error message in admin > > Exception Value: > > 'LibroOption.fields' ca

Problem with intermediary table from legacy database

2013-04-04 Thread Vittorio
Under Django 1.5.1 I'm having a go at using ManyToManyField (see below models.py and admin.py files) referring to an Sqlite3 legacy db. I'm receiving the following fatal error message in admin Exception Value: 'LibroOption.fields' can't include the ManyToManyField field 'autore' becaus

Trouble with CSS/Static Files

2013-04-04 Thread Vibhu Rishi
I am not sure where I am going wrong, but the CSS files are just not getting picked up. I have just started a project and am using the dev server with the runserver command. Here's my relevant settings.py : STATIC_ROOT = os.path.join(os.path.dirname(__file__),'/static/') STATIC_URL = '/static/'

Re: Adding context data to a TemplateView?

2013-04-04 Thread Fallen Flint
Take a look at https://docs.djangoproject.com/en/1.4/topics/generic-views-migration/#extra-context There's no way for provide an extra_context to a TemplateView. You need to subclass TemplateView and re-implement get_context_data in the way described in aforementioned topic. On Monday, April 23