Django admin upload image to few folders

2011-07-23 Thread Vusal Alishov
Hello, I want to upload image in django-admin interface to few folders. My models image field such: image = models.ImageField(upload_to='images') How can I do it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Real Example

2011-07-23 Thread William Grisaitis
Thanks Peter! On Jul 23, 2011, at 1:09 AM, Eyad Al-Sibai wrote: Thanks a lot! I appreciate it On Sat, Jul 23, 2011 at 5:33 AM, Peter Murphy wrote: > Eyad, > > Well, I'll be damned: > > http://www.djangosites.org/with-source/ > > It's good etiquette to say "thank you" at this point. ;-) > > B

Web development newbie

2011-07-23 Thread Riefers
I've spent the 10+ years developing serverside apps in java. I've never done any web page developement. Someone recommended Django. Any suggestions on where to start? Is Django too advanced for me if I've never done web side developement? -- You received this message because you are subscribed to

Re: Web development newbie

2011-07-23 Thread Paul Schewietzek
Some python knowledge is helpful, if not required. Since you should know general programming architectures from java, I recommend "Dive into Python" to learn python. http://diveintopython.org/ 2011/7/23 Riefers > I've spent the 10+ years developing serverside apps in java. I've > never done

Re: Web development newbie

2011-07-23 Thread jocke khazad
HI, To have some knowlege of python is of course helpful but I think you can learn to write django applications quite fast starting with Djangos own tutorial since you have programming knowlege form another language. https://docs.djangoproject.com/en/dev/intro/tutorial01/ Good luck! On Sat, Jul

Re: Web development newbie

2011-07-23 Thread Furqan Rauf
One thing for sure you need to know some HTML + CSS as well I remember when I started Django I had my application but the UI sucked bad so put the combo on ur check list :D On Sat, Jul 23, 2011 at 8:52 AM, jocke khazad wrote: > HI, > > To have some knowlege of python is of course helpful but I t

Re: Web development newbie

2011-07-23 Thread Victor Manuel Quiñones Victor
Hi guys I'm agree with those guys, no further python knowledge it is required to start with django, but maybe in the future will be necesary to increase your django skills. good luck and enjoy django. On Sat, Jul 23, 2011 at 11:04 AM, Furqan Rauf wrote: > One thing for sure you need to know so

Re: Setting LOGIN_URL dynamically, for different users, based on app?

2011-07-23 Thread dpapathanasiou
That's interesting, I hadn't thought about using a hidden input for next in the two login templates. In the end, though, I went with just one login template. And rather than use UserProfiles (since there were no additional attributes I needed to attach to the default User model, and my two user t

writing function into the Manager or the Model

2011-07-23 Thread Eyad Al-Sibai
I am a little bit confused... what functions should I write it in the Manager and what should be within the Model itself... Also what functions do you think should be written inside the class Admin within the Model? Regards, Eyad -- You received this message because you are subscribed to the Go

Re: Static Files on IIS7

2011-07-23 Thread CrabbyPete
Have you got django to run on II7 at all. I tried it and was not able to get it to work. If you did I'd love to try it and see what comes up with it. On Jul 22, 7:46 am, The Ape wrote: > Hi, > > I am running Django (1.3) with PyISAPIe (Python 2.6.6) on IIS7. > I am using the Django tutorial pages

Re: writing function into the Manager or the Model

2011-07-23 Thread Jani Tiainen
About methods in managers and models are described rather well in: https://docs.djangoproject.com/en/1.3/topics/db/managers/#adding-extra-manager-methods Putting Admin class inside models is deprecated about 3 years ago. You should read https://docs.djangoproject.com/en/dev/intro/tutorial02/#writi

Re: writing function into the Manager or the Model

2011-07-23 Thread Matt Mansour
Model methods are custom methods that add custom row level functionality to your objects. For example, if your model has a first_name field and a last_name field, and you wanted to return the full name, your custom model method could be: class Person(models.Model): first_name = models.CharFi

Re: Method call when deleting FK in admin

2011-07-23 Thread Jani Tiainen
Reason is that admin uses QuerySet.delete() (https://docs.djangoproject.com/en/1.3/ref/models/querysets/#delete) Note that deleting files while deleting models is dangerous: what happens if deletion is aborted and rolled back for some reason? You have now deleted files but instances stayed in a da

Re: Web development newbie

2011-07-23 Thread bruno desthuilliers
On 23 juil, 15:19, Riefers wrote: > I've spent the 10+ years developing serverside apps in java. I've > never done any web page developement. Someone recommended Django. Any > suggestions on where to start? Is Django too advanced for me if I've > never done web side developement? I don't understa

Re: Web development newbie

2011-07-23 Thread Javier Guerra Giraldez
On Sat, Jul 23, 2011 at 3:03 PM, bruno desthuilliers wrote: > I don't understand what you mean by "serverside apps" here - I mean, > Django IS for serverside applications, not client side (which would > require javascript). There are other kinds of servers and clients besides web, you know. Also

Re: Changes from 1.2.5 to 1.4 pre-alpha?

2011-07-23 Thread Rodney Topor
Many thanks Bruno and Jacob. Rodney -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. Fo

Re: Web development newbie

2011-07-23 Thread Doug the Webmaster
I went from JAVA to python and am now learning django. Going from JAVA to python is not a big deal. Most of the concepts are the same, the biggest difference being that JAVA is strongly typed and python is weakly typed. This just means a python object can be any type, it doesn't have to be declare

too many queries: populate template from model foreign key lookup

2011-07-23 Thread Gelonida N
Hi, I try to populate a template from a Model with a ForeignKey element) members of the foreign key element should be displayed. If I understand correctly my first attempt resulted in one query for fetching the entries from my first model and in one Query for each row in order to look up the cont

Re: django & py2exe

2011-07-23 Thread Gelonida N
On 07/22/2011 04:15 PM, Alexey Luchko wrote: > On 22.07.2011 02:59, Gelonida N wrote: >> Another issue, that I had is trying to use django under windows with >> py2exe. >> >> Management commands are no more found, as django would require the >> python source code in order to find existing managemen

Re: Looking for Django Developers in the Region of Vienna Austria

2011-07-23 Thread Kashif Ali
I am python django developer having almost 5 years of experience including 3 years of django experience. I have more than 200 hours odesk time as well. Plz let me know if you have such kind of jobs for remote developer. Sincerely, Kashif On Wed, Jul 13, 2011 at 2:38 AM, Robert Boulanger < rober

incorrect padding

2011-07-23 Thread NISA BALAKRISHNAN
TypeError at /waybill/deserialize/ Incorrect padding Request Method: POST Request URL:http://127.0.0.1:8000/waybill/deserialize/ Django Version: 1.3 Exception Type: TypeError Exception Value: Incorrect padding Exception Location: /Library/Frameworks/Python.framew