Re: hosting from /some/url in apache

2009-10-15 Thread Jani Tiainen
Graham Dumpleton kirjoitti: > > > On Oct 15, 5:14 am, Jani Tiainen wrote: >> Chris Withers kirjoitti: >>> Hi All, >>> I need to host my django project from /some/folder in my apache instance. >>> I have the following: >>> WSGIScriptAlias /some/folder /path/to/django.wsgi >>> Does this now mean

Re: unable to see SQL even after DEBUG=True in settings

2009-10-15 Thread Jani Tiainen
Indudhar Devanath kirjoitti: > Here is what is happening. > > >>> from django.db import connection > >>> from mysite import settings > >>> settings.DEBUG > True > >>> connection.queries > [] > > I have run the app such that it has executed number of db queries and I > know for sure there mu

Re: app model

2009-10-15 Thread Zilva
Find way models.py . uid= models.IntegerField(blank = True, null = True, ... admin.py class Media: js = ( 'js/jquery.min.js', 'js/us.js' ) us.js $(document).ready(function(){ $(".form-row.uid").css("display","none

Re: django images nginx and authentication

2009-10-15 Thread Graham Dumpleton
On Oct 15, 9:41 pm, ReneMarxis wrote: > Hello > > i'm faceing the following problem: i have some application for > creating image galleries (upload/change...). > Till now the images are served by an nginx webserver (and are > therefore open to everyone). The django app is running in apache with

Re: django images nginx and authentication

2009-10-15 Thread ReneMarxis
Many thanks. i will try that out. But sounds to be a good solution :) On 15 Okt., 15:00, tback wrote: > Hi Rene, > > look at this:http://wiki.nginx.org/NginxHttpSecureDownload. I personally use > lighttpd and mod_secdownload and googled the above. > > It works like this: > Your django applicati

Re: invalid sytax when naming url

2009-10-15 Thread Adam Olsen
On Thu, Oct 15, 2009 at 10:14 PM, David wrote: > > I can't figure out why this is invalid syntax... You can't pass a keyword argument to a tuple. It should read: url(r'^$', object_list, list_args, name='list'), -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic

Re: Converting namespaces to dictionaries for use in template context processors ...

2009-10-15 Thread jc
Hey, so to follow up ... I wrote my own that seems to do the trick, my little project here is called Tycho, so the Tycho.globals.Config contains the stuff mentioned in my previous email: # ContextProcessors.py # # all Tycho context processors: import Tycho.globals.Config i

invalid sytax when naming url

2009-10-15 Thread David
I can't figure out why this is invalid syntax... Here is my code: from cube.books.models import Listing from django.contrib import admin from django.conf.urls.defaults import * from django.views.generic.simple import direct_to_template from django.views.generic.list_detail import object_list adm

Converting namespaces to dictionaries for use in template context processors ...

2009-10-15 Thread jc
Hey Django users, So I've got a python file in my django app that I'm using to store some configs in (to be global across several django apps), it's basically looks something like this: [ -- Contents of Config.py -- ] VERSION = '0.1' MEDIA_PREFIX = '/usr/local/dev-www/m/' [ .. etc ...] class u:

Re: Upload Progress Bar

2009-10-15 Thread mattimck
Well, John at fariviewcomputing ended up helping me out (Thanks again John!), and it all works fine now. Turns out nginx was grabbing the files during the upload, and only handing them to Apache at the end, so the progress bar didn't work. I took nginx out of the equation and it works great now.

Re: Running Tornado instead of modwsgi apache

2009-10-15 Thread Kenneth Gonsalves
On Friday 16 Oct 2009 8:10:08 am djangou...@gmail.com wrote: > Blog post with tornado setup? :) http://www.djangosnippets.org/snippets/1748/ -- regards kg http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Running Tornado instead of modwsgi apache

2009-10-15 Thread djangou...@gmail.com
Blog post with tornado setup? :) Kenneth Gonsalves wrote: On Friday 16 Oct 2009 4:16:26 am Graham Dumpleton wrote: > > > Are you certain that the web server is the performance bottleneck? In > > > my experience, it rarely is. > > > > That argument aside, can we get an answer? > > But what

Re: Deadlock detected

2009-10-15 Thread Christophe Pettus
On Oct 15, 2009, at 8:01 AM, Szymon wrote: > CONTEXT: SQL statement "SELECT 1 FROM ONLY "public"."postac_postacie" > x WHERE "id" OPERATOR(pg_catalog.=) $1 FOR SHARE OF x" What this is doing is acquiring a shared lock on the row where id = $1 (the parameter) on table postas_postacie (you prob

Re: Running Tornado instead of modwsgi apache

2009-10-15 Thread Kenneth Gonsalves
On Friday 16 Oct 2009 4:16:26 am Graham Dumpleton wrote: > > > Are you certain that the web server is the performance bottleneck? In > > > my experience, it rarely is. > > > > That argument aside, can we get an answer? > > But what he states is very important and shouldn't just be ignored. > > No

Re: Middleware to replace @login_required SOLVED, + PCI Compliance

2009-10-15 Thread Shawn Milochik
Ethan, Thanks for the feedback. I did create my own middleware, and it was ridiculously simple. I just looked at the django.middleware files and saw how easy it was. I only had to make exceptions for the pages pertaining to resetting a forgotten password (from django.contrib.auth.views) and the

Re: Running Tornado instead of modwsgi apache

2009-10-15 Thread Graham Dumpleton
On Oct 16, 10:21 am, Antoni Aloy wrote: > 2009/10/16 Graham Dumpleton : > > > On Oct 16, 4:59 am, Ramdas S wrote: > >> On Thu, Oct 15, 2009 at 11:11 PM, Christophe Pettus > >> wrote: > > >> > On Oct 15, 2009, at 10:36 AM, Ramdas S wrote: > > >> > > I am currently running all my sites on modws

Re: When would you use Context instead of RequestContext?

2009-10-15 Thread ringemup
You have a point. Then again, Django does have a wiki, which is a good place for suggestions to be annotated with a discussion of the pros and cons of a particular approach. On Oct 15, 6:13 pm, bruno desthuilliers wrote: > > who is going to decide which are "best" practices ?-) --~--~-

Re: Running Tornado instead of modwsgi apache

2009-10-15 Thread Antoni Aloy
2009/10/16 Graham Dumpleton : > > > > On Oct 16, 4:59 am, Ramdas S wrote: >> On Thu, Oct 15, 2009 at 11:11 PM, Christophe Pettus wrote: >> >> >> >> > On Oct 15, 2009, at 10:36 AM, Ramdas S wrote: >> >> > > I am currently running all my sites on modwsgi apache! Though I >> > > cannot complain that

Console output on dev server

2009-10-15 Thread DeeDubb
When running the dev server, it shows a log of everything that happens (i.e. - GET & POST messages) in the console. Is there anyway to hide those log messages and only show errors (if they happen)? --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Running Tornado instead of modwsgi apache

2009-10-15 Thread Graham Dumpleton
On Oct 16, 4:59 am, Ramdas S wrote: > On Thu, Oct 15, 2009 at 11:11 PM, Christophe Pettus wrote: > > > > > On Oct 15, 2009, at 10:36 AM, Ramdas S wrote: > > > > I am currently running all my sites on modwsgi apache! Though I > > > cannot complain that the performance is bad, I would like to hav

Re: How manage (for testserver) fixtures files when use django.contrib.auth

2009-10-15 Thread aa56280
Are you looking for help on creating fixtures? If so, try this: http://docs.djangoproject.com/en/dev/howto/initial-data/#howto-initial-data If you're trying to add users using fixtures, then have a look here: http://groups.google.com/group/django-users/browse_thread/thread/c66f564797e64d47/35ab82

Customizing form widget

2009-10-15 Thread aa56280
I have a Category and SubCategory model. Each SubCategory belongs to a Category via a Foreign Key. (So each Category can have many SubCategories.) I have several places throughout my app where I show the list of SubCategories as part of some ModelForm. It renders like so: subcategory 1 subcateg

Re: When would you use Context instead of RequestContext?

2009-10-15 Thread bruno desthuilliers
On 15 oct, 18:28, ringemup wrote: > I don't think I've seen the two-function technique used much, if at > all. To be true, I never saw it anywhere except in some of my own code. But I wish I'd seen it more often... Also and FWIW, the "rendering" part of the "two-fold" views is easily factorabl

Re: Can't get css working

2009-10-15 Thread bruno desthuilliers
On 15 oct, 17:44, David wrote: > Thank you for the interesting discussion. > Still, my original problem is bothering me. The "interesting discussion" was actually a practical example of a setup that is known to work and really helps avoiding typos. Did you try to rewrite your code according to

Re: Django and SSL Deployment using mod_wsgi

2009-10-15 Thread Vitaly Babiy
Hey take a look at this http://www.howsthe.com/blog/2009/sep/20/djang-nginx-mod_wsgi-ssl/ Vitaly Babiy On Thu, Oct 15, 2009 at 5:30 PM, neri...@gmail.com wrote: > > I'm trying to do the same thing but I'm having problems getting nginx > to server over https. I removed all 443 references for apac

Re: Django and SSL Deployment using mod_wsgi

2009-10-15 Thread neri...@gmail.com
I'm trying to do the same thing but I'm having problems getting nginx to server over https. I removed all 443 references for apache and added them to my nginx/sites-available/domain.com, so I have a declaration for static content listening on port 80 and then another for ssl on 443. I'm totally ne

InLine Validation

2009-10-15 Thread Jairo R. Peralta
hello, I'm somewhat new to Python->Django and I found a little problem. -> I have 2 classes <-- - PayForm class (models.Model): type = models.CharField (max_length = 1, choices = PAYFORMS_TYPES) weekendDays = models.BooleanField () models.BooleanFiel

InLine Validation

2009-10-15 Thread Jairo R. Peralta
hola, soy algo nuevo en Python-Django y me he encontrado con un pequeño problema. -> tengo 2 clases <- class PayForm(models.Model): type = models.CharField(max_length=1, choices=PAYFORMS_TYPES) weekendDays = models.BooleanField() holydays = models.BooleanField()

Re: Can't get css working

2009-10-15 Thread David
thanks for your help! I just won't get it. The "GET /media_site/style.css HTTP/1.1" 404 2118 is triggered by the link-tag in the template. After it checks in the urls.py. The output is the same, whether I have the "static-stuff" configured or not. So I probabely can't tell whether the url wasn't

Re: Middleware stored locally

2009-10-15 Thread When ideas fail
I have an init.py, is the path the likely problem or is it something else? thanks, Andrew On 15 Oct, 02:07, BenW wrote: > I think every dir on the import path needs and __init__.py > > On Oct 14, 5:10 pm, When ideas fail wrote: > > > If i have a lib folder in my app what is the correct way to

Re: Can't get css working

2009-10-15 Thread Jim McGaw
Sorry, David, didn't mean to hijack your discussion! Looking over your original code, is it possible you need to use the += operator? So, you have your urlpatterns, and then you add one for the static media below: urlpatterns = pattern('', # patterns for site here ) urlpatterns += patterns(

Re: Developer help appreciated: unicode() not returning SafeString correctly - possibly a bug?

2009-10-15 Thread Margie Roginski
Ah - ok, I see! My knowledge of the unicode area is lacking, so I hadn't actually realized we were overriding a built-in by defining __unicode__. Completely obvious now that you point it out of course. I don't need to be returning a string instead of unicode. I just inadvertantly ended up doin

Re: Running Tornado instead of modwsgi apache

2009-10-15 Thread Ramdas S
On Thu, Oct 15, 2009 at 11:11 PM, Christophe Pettus wrote: > > > On Oct 15, 2009, at 10:36 AM, Ramdas S wrote: > > > I am currently running all my sites on modwsgi apache! Though I > > cannot complain that the performance is bad, I would like to have > > more. > > Are you certain that the web serv

Re: Admin Settings

2009-10-15 Thread freeav8r
Creating a function off the model worked great! --- On Wed, 10/14/09, Bayuadji wrote: > From: Bayuadji > Subject: Re: Admin Settings > To: django-users@googlegroups.com > Date: Wednesday, October 14, 2009, 11:52 PM > > or create a function that return > object.foreign_key.field1. > then use t

Re: Running Tornado instead of modwsgi apache

2009-10-15 Thread Christophe Pettus
On Oct 15, 2009, at 10:36 AM, Ramdas S wrote: > I am currently running all my sites on modwsgi apache! Though I > cannot complain that the performance is bad, I would like to have > more. Are you certain that the web server is the performance bottleneck? In my experience, it rarely is.

Running Tornado instead of modwsgi apache

2009-10-15 Thread Ramdas S
I am currently running all my sites on modwsgi apache! Though I cannot complain that the performance is bad, I would like to have more. I have been reading on the web on different peopl's experience and suggestions, on migrating to Tornado with Nginx or Lighty serving the static files I seen both

How manage (for testserver) fixtures files when use django.contrib.auth

2009-10-15 Thread Jacobian
I find very much, if exists a link with explain could you send me, Thanks. P.D. Sorry, for my english. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: Middleware to replace @login_required

2009-10-15 Thread Ethan Jucovy
On Thu, Oct 15, 2009 at 12:24 PM, Shawn Milochik wrote: > > Middleware question: > > If 100% of an apps views require a logged-in user except for the login > page, does it makes sense to have middleware check the URL and > redirect to the login page rather than putting the @login_required > decora

DRY: max length not taken from Model.field when using ModelForm

2009-10-15 Thread Gerard
Hi All, It seems the max_lenght from the model definition is not respected thoughout the form that's created when using Modelform. company_name = models.CharField(max_length=75) Is this correct or am I missing something? And while violating DRY is the Modelform definition the best place t

Re: When would you use Context instead of RequestContext?

2009-10-15 Thread ringemup
I don't think I've seen the two-function technique used much, if at all. I'd certainly find it beneficial if more of the pluggables I use took that approach. I wonder if a central repository of information about best practices would benefit the community? On Oct 15, 3:40 am, bruno desthuillie

Re: Embedding multiple images in html email

2009-10-15 Thread Tim Chase
> Can't you include the link and source within the html code of the email? The problem then becomes that many email programs no longer display remote images inline unless the email comes from a trusted source. It was a popular way to add tracking bugs to HTML emails, so MUAs began to disable

Middleware to replace @login_required

2009-10-15 Thread Shawn Milochik
Middleware question: If 100% of an apps views require a logged-in user except for the login page, does it makes sense to have middleware check the URL and redirect to the login page rather than putting the @login_required decorator over all the views? I have to ensure that users' passwords expir

Re: Embedding multiple images in html email

2009-10-15 Thread Angel Cruz
Can't you include the link and source within the html code of the email? for example, as a snippet: . . . html = """\ blah blah blah http://blah-blah-blah.com";>http://blah-blah-blah.com/media/img/blah-blah-whatver-image.png"; width=100%> Blah-whatever-your-messa

Re: Can't get css working

2009-10-15 Thread David
Thank you for the interesting discussion. Still, my original problem is bothering me. Any idea what I could do to narrow it down? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Multi-db support

2009-10-15 Thread David De La Harpe Golden
Jeff Bell wrote: > My problem occurs during larger queries - I get 'Too many connections' > error. If I run these queries through django's default manager they > are handled fine. Can anyone point me in the right direction, maybe > the source code where django handles this. I'm pretty sure I n

Deadlock detected

2009-10-15 Thread Szymon
Hello, Sometimes Django (on higher loads) throws exception: TransactionRollbackError: deadlock detected DETAIL: Process 58214 waits for ShareLock on transaction 121403425; blocked by process 58200. Process 58200 waits for ShareLock on transaction 121403482; blocked by process 58214. HINT: See

Cannot create notification records in management.py

2009-10-15 Thread simonecare...@gmail.com
Hi, I'm using django notification. I've installed django-messages, that tries to add records for into the notification_noticetype table. Here is the management.py from django.db.models import get_models, signals from django.conf import settings from django.utils.translation import ugettext_noop

Re: ModelAdmin.save_model Not being called

2009-10-15 Thread eka
The problem was that I was overriding the save_model method on the InlineAdmin instead of on the ModelAdmin itself. Now is being called... Cheers. and thanks! On Oct 15, 11:16 am, eka wrote: > DR: > > Yes your are right. My bad... still my one is not being called. > > Here is the code: > > cla

Re: ModelAdmin.save_model Not being called

2009-10-15 Thread eka
DR: Yes your are right. My bad... still my one is not being called. Here is the code: class LocatedItemStackedInline(generic.GenericStackedInline): template = "admin/location_app/located_items/stacked.html" model = LocatedItem extra = 1 form = MyModelForm raw_id_fields = ('l

Re: ModelAdmin.save_model Not being called

2009-10-15 Thread Peter2108
Is this what you were looking for? def save_model(self, request, obj, form, change): """ Given a model instance save it to the database. """ obj.save() It is in contrib.admin.options: -- Peter --~--~-~--~~~---~--~~ You received

Re: ModelAdmin.save_model Not being called

2009-10-15 Thread Daniel Roseman
On Oct 15, 2:58 pm, eka wrote: > Hi all > > I need to override the ModelAdmin save_model and I found out that is > not being called. I checked the documentation where it says how to use > it and the searched around the code to see if there is a call to that > method and can't find any call to sav

Re: ModelAdmin.save_model Not being called

2009-10-15 Thread eka
Also overriding the Model.save is not an option since I need to use the request object that is passed to the save_model method cause I have some stuff in the request I need to use. Any clue? On Oct 15, 11:07 am, eka wrote: > But is there any reason why I can't use that one? Is documented :P > >

Bug #6138

2009-10-15 Thread Peter2108
This fix for this bug has been commited and is in revision 11624. As I 'own' the bug should I chnage the status to 'fixed'? Presently no-one has done that. -- Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: ModelAdmin.save_model Not being called

2009-10-15 Thread eka
But is there any reason why I can't use that one? Is documented :P On Oct 15, 11:05 am, Bayuadji wrote: > Hi, > > You could override save on Model instead. > > -djibon- > > On 10/15/09, eka wrote: > > > > > > > Hi all > > > I need to override the ModelAdmin save_model and I found out that is >

Re: displaying tree data in admin

2009-10-15 Thread ev
Thank you, Daniel, I'm trying to use this: http://magicrebirth.wordpress.com/2009/08/18/django-admin-and-mptt-2/ On Oct 15, 12:09 pm, Daniel Roseman wrote: > On Oct 15, 8:16 am, ev wrote: > > > May be there were developers solutions? Where should I look for? > > Look at the django-mptt project.

Re: ModelAdmin.save_model Not being called

2009-10-15 Thread Bayuadji
Hi, You could override save on Model instead. -djibon- On 10/15/09, eka wrote: > > Hi all > > I need to override the ModelAdmin save_model and I found out that is > not being called. I checked the documentation where it says how to use > it and the searched around the code to see if there is a

ModelAdmin.save_model Not being called

2009-10-15 Thread eka
Hi all I need to override the ModelAdmin save_model and I found out that is not being called. I checked the documentation where it says how to use it and the searched around the code to see if there is a call to that method and can't find any call to save_model anywhere in all Django src (version

Re: Generic View update_object with foreign key.

2009-10-15 Thread luam.azchey...@gmail.com
-- Sent from my Palm Unknown BvgfgfDavodM wrote: Hello all, Im just getting started with Django so apologies if this is a silly question. I have worked through the 4 tutorials and built the Poll application. I am now trying to add a page to edit polls using a generic view. My aim is t

Re: question about foreign key

2009-10-15 Thread tback
Hi jul, if there is a chance that the country doesn't exist you have to check that before. Have a look at get_or_create: http://docs.djangoproject.com/en/dev/ref/models/querysets/#get-or-create-kwargs Cheers, Till On Oct 15, 1:51 pm, jul wrote: > Hi, > > I've got the two models Country and Res

Re: django images nginx and authentication

2009-10-15 Thread tback
Hi Rene, look at this: http://wiki.nginx.org/NginxHttpSecureDownload. I personally use lighttpd and mod_secdownload and googled the above. It works like this: Your django application and your image server(s) share a secret. Your application takes the secret, the url and a timestamp to generate a

Re: django images nginx and authentication

2009-10-15 Thread tback
Hi, it seems that my first post didn't go through. I'm personally using lighttpd with mod_secdownload. But google just gave me this this: http://wiki.nginx.org/NginxHttpSecureDownload I'm pretty sure it will serve your needs. cheers, tback On Oct 15, 12:41 pm, ReneMarxis wrote: > Hello > > My

Re: question about foreign key

2009-10-15 Thread Daniel Roseman
On Oct 15, 1:46 pm, bruno desthuilliers wrote: > On 15 oct, 13:51, jul wrote: > > > Hi, > > > I've got the two models Country and Restaurant shown below. Is there a > > way to directly set a country by instanciating a restaurant with a > > Country instance? Something like: > > > r=Restaurant(nam

Re: When would you use Context instead of RequestContext?

2009-10-15 Thread Russell Keith-Magee
On Thu, Oct 15, 2009 at 9:01 PM, wiswaud wrote: > > If i'm not mistaken, RequestContext, through context_processors.auth, > will call request.user.get_and_delete_messages() and put in the > messages to the user in the context. That's fine and dandy, except > that in most modern applications, you

Re: When would you use Context instead of RequestContext?

2009-10-15 Thread wiswaud
If i'm not mistaken, RequestContext, through context_processors.auth, will call request.user.get_and_delete_messages() and put in the messages to the user in the context. That's fine and dandy, except that in most modern applications, you have client-side code that will be calling server-side part

Re: question about foreign key

2009-10-15 Thread bruno desthuilliers
On 15 oct, 13:51, jul wrote: > Hi, > > I've got the two models Country and Restaurant shown below. Is there a > way to directly set a country by instanciating a restaurant with a > Country instance? Something like: > > r=Restaurant(name='whatever', country=Country(name='newcountry')) > r.save() >

Embedding multiple images in html email

2009-10-15 Thread Muhammed Abad
As the topic says, can I embed multiple images in an html email template so the recipient does not have to download them? I know this might be a silly request, but a client has asked me to do this for him and Im absolutely stumped. The closest to a solution I have come to is this : http://www.dj

question about foreign key

2009-10-15 Thread jul
Hi, I've got the two models Country and Restaurant shown below. Is there a way to directly set a country by instanciating a restaurant with a Country instance? Something like: r=Restaurant(name='whatever', country=Country(name='newcountry')) r.save() which returns "Column 'country_id' cannot be

Generic View update_object with foreign key.

2009-10-15 Thread DavodM
Hello all, Im just getting started with Django so apologies if this is a silly question. I have worked through the 4 tutorials and built the Poll application. I am now trying to add a page to edit polls using a generic view. My aim is to be able to edit polls in the same way as in the admin view

help, insert into a foreign key produces unusual 'invalid keyword argument' error

2009-10-15 Thread Sam Walters
Hi, im using django 1.0+mysql I get an unexpected error: "'event' is an invalid keyword argument for this function" I get using a django view which used to work for moving data into the mysql db by saving a foreign key instance of 'Event' in 'Category'. 1. The model is: class Event (models.Model

unable to see SQL even after DEBUG=True in settings

2009-10-15 Thread Indudhar Devanath
Here is what is happening. >>> from django.db import connection >>> from mysite import settings >>> settings.DEBUG True >>> connection.queries [] I have run the app such that it has executed number of db queries and I know for sure there must be some sql. But still I don't see any in connection.

Re: questions about model attribute permissions set in django admin

2009-10-15 Thread Eesti Mate
Hi Allen, it looks like there is a 'pain in the ass' solution to your needs: http://stackoverflow.com/questions/1336382/how-can-i-modify-django-to-create-view-permission Cheers Eesti --~--~-~--~~~---~--~~ You received this message because you are subscribed to

django images nginx and authentication

2009-10-15 Thread ReneMarxis
Hello i'm faceing the following problem: i have some application for creating image galleries (upload/change...). Till now the images are served by an nginx webserver (and are therefore open to everyone). The django app is running in apache with wsgi. My problem is i need to restrict the image d

Re: Django project layout - authentication

2009-10-15 Thread nausikaa
Correction: We have a class 'LDAPBackend' with an authenticate function. Then in the view we use 'authenticate' from django.contrib.auth and if that returns None, we call the 'authenticate' bound to 'LDAPBackend'. Does it make sense to have a separate app just for one class? I assume the answer

Re: [django-tagging] machinetags with namespaces and values, a ready-to-use branch

2009-10-15 Thread Sam Lai
2009/10/15 Gregor Müllegger : > Hi django-users, > > in the last week i took a quick look over the django-tagging issue tracker and > found the interesting issue #14 "Support for machine tags". This seems to be > the oldest unclosed issue for django-tagging. This thrilled me so much that i > wante

Django project layout - authentication

2009-10-15 Thread nausikaa
Hi I'm writing a web interface where users (in groups with different rights) can login and view and edit db entries. At the moment the login functionality is in myproject/ auth.py The authenticate method in auth.py checks the Users table and if that fails it tries ldap authentication. Now m

complete a form from auth_user

2009-10-15 Thread luca72
Hello i need to put in the forms.ChoiceField the value of the django uath_user table i can do it? how can import the table in the forms.py file Thanks luca --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: Can't get css working

2009-10-15 Thread Bayuadji
Hi Bruno, Nice tips you got. thanks :) -djibon- On 10/15/09, bruno desthuilliers wrote: > > On 14 oct, 19:34, David wrote: >> Thanks JIm, didn't solve my problem, but always good to learn some >> best practices. Any particular reason  why >> {'document_root' : os.path.join(settings.CURRENT_PA

Re: Can't get css working

2009-10-15 Thread bruno desthuilliers
On 14 oct, 19:34, David wrote: > Thanks JIm, didn't solve my problem, but always good to learn some > best practices. Any particular reason  why > {'document_root' : os.path.join(settings.CURRENT_PATH,"media_site") }) > is better than > {'document_root': settings.MEDIA_ROOT} > in settings.py? Ob

Re: First tutorial - Not off to a good start :(

2009-10-15 Thread Brett Parker
On 14 Oct 20:27, AndrewXHill wrote: > > Glad you found a solution. I think though that you could have also > just removed the .py, not add 'python', so your command would have > been, > > $ django-admin startproject mysite Quite correct - the debian/ubuntu packages have django-admin, not django

Re: displaying tree data in admin

2009-10-15 Thread Daniel Roseman
On Oct 15, 8:16 am, ev wrote: > May be there were developers solutions? Where should I look for? > Look at the django-mptt project. It implements an efficient algorithm for tree access, and also has some useful libraries that help with displaying trees. You might be able to use one of them. Alt

Re: When would you use Context instead of RequestContext?

2009-10-15 Thread bruno desthuilliers
On 14 oct, 19:44, Nan wrote: > So it's basically just an issue of optimization? > > Is using RequestContext best practice for apps meant to be pluggable? > As a general rule, yes. FWIW and while we're at it, another best practice for pluggable apps would be, whenever possible, to write "two- fol

Re: displaying tree data in admin

2009-10-15 Thread ev
May be there were developers solutions? Where should I look for? On Oct 15, 9:18 am, Михаил Лукин wrote: > There is no sucj feature in admin interface > > On Wed, Oct 14, 2009 at 9:18 PM, ev wrote: > > > I've created model Structure referenced to itself and filled it with > > my data. > > > cla