Django and Cherokee...

2011-08-30 Thread Brian Myers
Hi all, I'm having some trouble getting Cherokee to work with Django, and I noticed there are a number of Cherokee, Django users out there. I've posted questions on the Cherokee list, but there are some Django specific questions I have. My project is called triagedb. It resides in the director

Re: Combining queries? A "join" in Python?

2011-08-30 Thread graeme
On Aug 30, 11:48 pm, Andre Terra wrote: > FWIW, I'm using django-mptt to help me traverse my tree of self-referencing > models, as well as run complex aggregates based on them. > > http://django-mptt.github.com/django-mptt/index.html > > Be aware that the API has changed a lot from 0.3 (which is

Re: Password Field Not being encrypted

2011-08-30 Thread Jirka Vejrazka
Raj, PasswordInput deals with browser forms to make sure that a password can't be seen in the form by someone looking over user's shoulder. But it does nothing to encrypt passwords in database. Why don't you check out django.contrib.auth.models for inspiration about encrypting passwords if pl

Password Field Not being encrypted

2011-08-30 Thread raj
Hey guys, I'm trying to make a custom registration form for a custom UserProfile class. I have the following form: class UserForm(ModelForm): username = forms.EmailField(label = _("Email"), widget = forms.TextInput(attrs ={ 'id':'email'}), required=True) first_name = forms.CharFiel

Re: django-admin.py not found

2011-08-30 Thread PremAnand Lakshmanan
The setup.py just gets opened as a text file. But you can ignore it now, Django got installed once I used this command, python setup.py install instead of setup.py install Thanks for your great support. On Tue, Aug 30, 2011 at 9:58 PM, Yves S. Garret wrote: > What do you mean it gets opened?

Re: django-admin.py not found

2011-08-30 Thread Yves S. Garret
What do you mean it gets opened? Also, I'd recommend doing this in a temp My Documents (Documents in Vista/Windows 7) folder, let the installers build the necessary directory trees (get rid of the previous installs.) On Tue, Aug 30, 2011 at 9:52 PM, PremAnand Lakshmanan wrote: > I downloaded as

Re: django-admin.py not found

2011-08-30 Thread Yves S. Garret
No. Here is a more lengthy explanation as to what you need to do: https://docs.djangoproject.com/en/dev/topics/install/#installing-official-release On Tue, Aug 30, 2011 at 8:46 PM, PremAnand Lakshmanan wrote: > Where do I type the following commands? Is it in the python shell? > > tar xzvf Djan

Re: django-admin.py not found

2011-08-30 Thread PremAnand Lakshmanan
Where do I type the following commands? Is it in the python shell? tar xzvf Django-1.3.tar.gz cd Django-1.3 sudo python setup.py install What does tar xzvf mean? On Tue, Aug 30, 2011 at 8:41 PM, Yves S. Garret wrote: > Where do you have Python installed? > > I just followed these steps to insta

Re: django-admin.py not found

2011-08-30 Thread Yves S. Garret
Where do you have Python installed? I just followed these steps to install Django, worked like a charm (no special setup or anything.) I did this just for the fun of it without any production settings (just to try stuff out), did you do something different? https://docs.djangoproject.com/en/dev/

Re: django-admin.py not found

2011-08-30 Thread PremAnand Lakshmanan
I dont see any file under site packages. I think my Django is not installed within Python. Something is wrong.. On Tue, Aug 30, 2011 at 8:28 PM, Yves S. Garret wrote: > Do me a favor and check that you have install>\Lib\site-packages\django\bin\django-admin.py > > If you do, try that. I don't

Re: django-admin.py not found

2011-08-30 Thread Yves S. Garret
Do me a favor and check that you have \Lib\site-packages\django\bin\django-admin.py If you do, try that. I don't think I have a C:\django-1.3\... directory, could be an issue with how you installed it (I didn't experiment, there was no need). On Tue, Aug 30, 2011 at 8:18 PM, PremAnand Lakshmanan

Re: django-admin.py not found

2011-08-30 Thread PremAnand Lakshmanan
My django-admin.py file is located in C:\django-1.3\django\bin\django-admin.py I tried executing this command but get the following error in my python shell, >>> python C:\django-1.3\django\bin\django-admin.py startproject mysite SyntaxError: invalid syntax On Tue, Aug 30, 2011 at 11:28 AM,

manage.py test app can't find tests

2011-08-30 Thread Mike Dewhirst
Using Python 2.7 and Django trunk I can run python tests.py successfully in the app directory or in /app/tests subdirectory where it says (no setup or teardown required yet) . -- Ran 25 tests in 0.

Re: Argh: templates, admin, and app loading order

2011-08-30 Thread Doug Ballance
Can you use the filesystem loader as the first template loader, then set TEMPLATE_DIRS in settings.py to specify a template directory outside any app? Use this location for all of your overrides, just make sure the path is right... ie each app you override would have its own subdirectory. -- You

Login based in url for user

2011-08-30 Thread Carsten Jantzen
Hej I am new and trying to make a login for mysite. I have written a basic login which validates against another site and is working fine atm. I would like to make the auth related to the url. So that user a with permission 1 can access www.test.dk/1/content but he is not allowed to access www.tes

using django-filer with rich textfields

2011-08-30 Thread EricSI
Is anyone aware of a way to add images from django-filer to rich textfields? I'm using django-filer in my project for an image library, and WYMEditor for a rich textfield in the admin panel. The default behavior of the image button in WYMEditor is to prompt the user to enter a URL where the ima

Re: "manage.py" command not found

2011-08-30 Thread Mitesh Patel
Hi, Put python (Location of install python directory. mainly C:\Python26\) in your windows environment variable path also with django-admin.py path. Thanks, Mitesh Patel Senior OpenSource Executive, Mobile: +91-97110-99601 Email: mitesh.patel1...@gmail.com LinkedIn : http://in.linkedin.com/in/m

Re: "manage.py" command not found

2011-08-30 Thread Yves S. Garret
Maybe you have Python installed somewhere that's not described in the shebang line? Don't know, don't know your environment. Glad that your stuff works now :) . On Tue, Aug 30, 2011 at 4:22 PM, Phil wrote: > I opened my "manage.py" file to insert the line, but it was already there > on the fir

Re: "manage.py" command not found

2011-08-30 Thread Shawn Milochik
On 08/30/2011 04:18 PM, Yves S. Garret wrote: I don't know about Windows (if anyone does, please say so), but in a *nix OS putting this (don't remember its official name) at the top of your file can help: #!/usr/bin/env python It's called a 'shebang line,' and it's ignored in Windows. It's i

Re: "manage.py" command not found

2011-08-30 Thread Phil
I opened my "manage.py" file to insert the line, but it was already there on the first line. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/uXSA23Fl7iEJ.

Re: "manage.py" command not found

2011-08-30 Thread Yves S. Garret
I don't know about Windows (if anyone does, please say so), but in a *nix OS putting this (don't remember its official name) at the top of your file can help: #!/usr/bin/env python On Tue, Aug 30, 2011 at 4:11 PM, Phil wrote: > The permissions were OK, but putting python in front of it seems to

Re: "manage.py" command not found

2011-08-30 Thread Phil
The permissions were OK, but putting python in front of it seems to have worked(I have database connection issue now, but once I fix that I reckon it will be work)! Thanks Yves, big help! -- You received this message because you are subscribed to the Google Groups "Django users" group. To vie

Re: How to run tests?

2011-08-30 Thread Reinout van Rees
On 30-08-11 21:02, mrstevegross wrote: INSTALLED_APPS = ( ... 'vip_mobile.data', ) It also contains a file data/tests.py with appropriate test content. When I run: manage.py test vip_mobile.data I get the error: django.core.exceptions.ImproperlyConfigured: App with label vip_mo

Re: "manage.py" command not found

2011-08-30 Thread Yves S. Garret
Put python in front of it or check permissions to make it executable? On Tue, Aug 30, 2011 at 4:01 PM, Phil wrote: > Hi, > > I'm running the latest django 1.4 alpha from the repository. > > I have a django project hosted on bitbucket, I run the bitbucket "clone" > command and pull down my code o

"manage.py" command not found

2011-08-30 Thread Phil
Hi, I'm running the latest django 1.4 alpha from the repository. I have a django project hosted on bitbucket, I run the bitbucket "clone" command and pull down my code onto my server. But when I go into my project folder and run the command... "./manage.py runfcgi method=threaded host=127.0.0.

How to run tests?

2011-08-30 Thread mrstevegross
Newbie question: I am trying to run tests for my one webapp "vip_mobile". The settings.py contains a line like this: INSTALLED_APPS = ( ... 'vip_mobile.data', ) It also contains a file data/tests.py with appropriate test content. When I run: manage.py test vip_mobile.data I get the er

Argh: templates, admin, and app loading order

2011-08-30 Thread Nan
So... I'm trying to keep all site-specific code and overrides to third- party app behavior in a single "current_site" app in my project. For the sake of template loading order, this app is listed first in INSTALLED_APPS so that its templates are located before the third- party defaults. But... N

Re: Combining queries? A "join" in Python?

2011-08-30 Thread Andre Terra
FWIW, I'm using django-mptt to help me traverse my tree of self-referencing models, as well as run complex aggregates based on them. http://django-mptt.github.com/django-mptt/index.html Be aware that the API has changed a lot from 0.3 (which is easily found around the web) to 0.5 (which will requ

Re: question regarding doing authentication for a mobile client via REST call

2011-08-30 Thread sanket
reposting the thread link http://groups.google.com/group/django-users/browse_thread/thread/4417516a26c2a1cc/496b54b93e4420a8?lnk=gst&q=authentication#496b54b93e4420a8 On Aug 30, 11:20 am, sanket wrote: > Hello All, > hope you all are doing great. > > I have a question regarding how to authenticat

question regarding doing authentication for a mobile client via REST call

2011-08-30 Thread sanket
Hello All, hope you all are doing great. I have a question regarding how to authenticate a User via REST (using tastypie) call. I search the group and found something similar here (http://groups.google.com/group/django-users/browse_thread/thread/ 4417516a26c2a1cc/496b54b93e4420a8? lnk=gst&q=authen

Re: Combining queries? A "join" in Python?

2011-08-30 Thread graeme
On Aug 30, 7:25 pm, Stuart wrote: > On Aug 30, 3:10 am, graeme wrote: > > > I think I need to restate this question with the actual models. > > Apologies in advance for answering a question you didn't ask, but is > your subcategory model truly representing something different from > your catego

Re: satchmo project down?

2011-08-30 Thread Tim Sawyer
On 30/08/11 15:55, John Fabiani wrote: Hi, I can't get one the website. Johnf http://www.downforeveryoneorjustme.com/http://www.satchmoproject.com/ Tim. http://percussion360.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: django-admin.py not found

2011-08-30 Thread Yves S. Garret
What OS are you running? Is it in your path? I'm having a similar issue and managed to get around it (although the solution is not as elegant as I'd like) using this: python C:\Python27\Lib\site-packages\django\bin\django-admin.py startproject mysite2 On Tue, Aug 30, 2011 at 10:39 AM, PremAnand

Re: django-admin.py not found

2011-08-30 Thread Bill Freeman
Not all methods of installing Django on all systems manage to make that file work as a command. You can use whatever file search tool your system provides to find the file. For example, almost everywhere but windows you can type, at a bash prompt. find / -name django-admin.py 2>& /dev/null A

Groups Model Randomly Disappears In the Admin View

2011-08-30 Thread Laurence
I have a very strange problem that I am having difficultly in debugging. In my application I have registered two models, each of which contains two classes. When I go to the admin view, the groups class from the auth model sometimes disappears. If I keep refreshing, it will appear then disappear al

satchmo project down?

2011-08-30 Thread John Fabiani
Hi, I can't get one the website. Johnf -- 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.

django-admin.py not found

2011-08-30 Thread PremAnand Lakshmanan
I get the following error when I execute this command, django-admin.py startproject mysite Error: django-admin.py not found. -- Prem 408-393-2545 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: App namespace/packages?

2011-08-30 Thread Tom Evans
On Tue, Aug 30, 2011 at 8:57 AM, Danny W. Adair wrote: > Hi, > There are "reusable" apps which provide functionality in a variety of > contexts. > However, some apps only make sense (because of dependencies) in the > context of one or more other apps. > For example, I have a relatively big piece o

Re: Combining queries? A "join" in Python?

2011-08-30 Thread Stuart
On Aug 30, 3:10 am, graeme wrote: > I think I need to restate this question with the actual models. Apologies in advance for answering a question you didn't ask, but is your subcategory model truly representing something different from your category model? I think the problems you are having with

Re: Update the parent model when a related (inline) model changed?

2011-08-30 Thread Carsten Fuchs
Hi all, many thanks to everyone who replied! For the records/archives, here is the solution that we eventually implemented: Am 25.08.2011 16:19, schrieb Carsten Fuchs: what is the best way to automatically update a parent model when one of it's related models (i.e. the "inline" models in the

Re: Looking for an experienced full time Django developer, Birmingham UK

2011-08-30 Thread Christian Ramsey
Hi James, I am a Django developer, for the last 6 months. I am moving to Manchester soon from the USA for 4-6 months to look for work. I am interested in the position, I lived in the UK when I was a child as well. Christian On 30 Aug 2011, at 02:48, jamesm wrote: > Hi All > > Looking to expa

Re: Error was: No module named io

2011-08-30 Thread tiemonster
Let me make a couple of suggestions stemming from my experience: 1. Develop on the same exact version of python that you have installed on your production server. These kinds of backwards incompatible changes have bitten me more than once. This should be true for any language you develop in. You w

Re: Django Development environment

2011-08-30 Thread Bastian Ballmann
Arch Linux, GNU/Emacs with emacs-for-python extension, pylint, virtualenv, fabric, pudb, winpdb and firebug, postgresql, django-extensions, git Am 23.08.2011 00:07, schrieb Stephen Jackson: I am new to the world of Django. I would like to hear from other django developers describe their dev

Re: Model.save() does nothing

2011-08-30 Thread j0ker
That won't be necessary. I found the problem and it was just because I was to stupid. The problem was not the toggle function for that worked absolutely as it should. But the function which it redirects to in the not working case doesn't retrieve the data from the database. Instead it uses a sessio

Re: Unable To Delete Records

2011-08-30 Thread Daniel Molina Wegener
On Tuesday 30 August 2011, Showket Bhat wrote: > Hi All... Hello Showket... > > I have created a small application where in i am inserting and > deleting records. I am able to delete a single record however when a > select all or more then one record it deletes the last record only.. I > tri

Re: Unable To Delete Records

2011-08-30 Thread Tom Evans
On Tue, Aug 30, 2011 at 12:44 PM, Reinout van Rees wrote: > On 30-08-11 13:05, Showket Bhat wrote: >> >> I have created a small application where in i am inserting and >> deleting records. I am able to delete a single record however when a >> select all or more then one record it deletes the last

Re: Unable To Delete Records

2011-08-30 Thread Reinout van Rees
On 30-08-11 13:05, Showket Bhat wrote: I have created a small application where in i am inserting and deleting records. I am able to delete a single record however when a select all or more then one record it deletes the last record only.. I tried a lot but failed please help I am wring the Code

Re: App namespace/packages?

2011-08-30 Thread Reinout van Rees
On 30-08-11 09:57, Danny W. Adair wrote: I think a shop system is a good example, and looking at satchmo I saw apps called "satchmo_this" and "satchmo_that". I'd rather see such apps packaged up so it's clear where they belong to. Before posting a feature request on the issue tracker I thought I

dynamic use of django form widgets in template

2011-08-30 Thread bob the builder
Hi, I have a dictionary of field names and a their type. I want to use this in the html template to render form widgets for the correct type for each field. Am I better off rendering the html in the python view and then passing it through as content? Example: data = {'name' : 'string', 'age' :

Unable To Delete Records

2011-08-30 Thread Showket Bhat
Hi All... I have created a small application where in i am inserting and deleting records. I am able to delete a single record however when a select all or more then one record it deletes the last record only.. I tried a lot but failed please help I am wring the Code and the Console output here...

Re: Teacher online

2011-08-30 Thread Allimuthu Maurya
Hi ivan, I am a home tutor for engineering candidates.I posses 1 yr experience in python and django. Tell your availability. Thanks, Maurya 9962973320 On Mon, Aug 8, 2011 at 3:40 PM, bambanx wrote: > Hey guys i am looking for a teacher for django beginner i Pay for > hour ,with the skype > And

Re: Historical Djangocon videos available for download in iTunes?

2011-08-30 Thread David Watson
Hi Simon, If you add /rss to the end of the blip.tv url this should give you an rss feed suitable for iTunes. For example http://blip.tv/djangocon-europe-2011/rss regards David On Sat, Aug 27, 2011 at 12:59 PM, Simon Connah wrote: > Does anyone know of a source for previous Djangocon (both US

Looking for an experienced full time Django developer, Birmingham UK

2011-08-30 Thread jamesm
Hi All Looking to expand an existing small but specialist team in Birmingham UK for established market leading retail / trading operation. Ideal candidates will be a proficient and experienced solution developer with strong commercial awareness. Technologies required : Django / LAMP / postgress.

Re: Combining queries? A "join" in Python?

2011-08-30 Thread graeme
I think I need to restate this question with the actual models. Sorry again. I have omitted irrelevant fields (ones I do not want too query against) replacing them with dots. class Category(models.Model): order = models.IntegerField(default=100) .. class CategoryText(models.Model)

App namespace/packages?

2011-08-30 Thread Danny W. Adair
Hi, There are "reusable" apps which provide functionality in a variety of contexts. However, some apps only make sense (because of dependencies) in the context of one or more other apps. For example, I have a relatively big piece of software consisting of (like a good boy) multiple apps, which work

Check related object attribute in a view

2011-08-30 Thread gdebure
This is probably very simple, but I've been hitting walls ever since I started... I have a model A that contains a link to another model B. B has an "owner" attribute. This owner attribute is translated as a per object permission using guardian. Models: class Service (models.Model): name =

RE: [] Re: Combining queries? A "join" in Python?

2011-08-30 Thread Henrik Genssen
Yes, you can - but not in models.py! I have created a query.py and defined all models for raw queries in that file. Then I do raw SQL as defined here: https://docs.djangoproject.com/en/dev/topics/db/sql/ But you won't be able to update/insert data using this models. regards H. >reply to message

Re: Combining queries? A "join" in Python?

2011-08-30 Thread graeme
On Aug 30, 6:25 am, Tim wrote: > worst case you could always just write the sql query? > > https://docs.djangoproject.com/en/dev/topics/db/sql/ > I have been looking at that already, what I have not yet figured out is how the results map to models if I do a join in the SQL query. Can it create