Re: Memory leak!

2008-10-16 Thread bcrem
Yup - that did it. Yeeha! On Oct 16, 10:02 pm, Ned Batchelder <[EMAIL PROTECTED]> wrote: > If you have DEBUG = True, then the SQL for the queries against the > database are collected for debugging purposes.  That can consume a lot > ofmemory(especially for 800k+ records).  Could that be the

Re: Memory leak!

2008-10-16 Thread bcrem
Dunno Ned - but I do, so I'll turn it off & see. THanks! On Oct 16, 10:02 pm, Ned Batchelder <[EMAIL PROTECTED]> wrote: > If you have DEBUG = True, then the SQL for the queries against the > database are collected for debugging purposes.  That can consume a lot > ofmemory(especially for 800k+

Re: How to get a page in Django?

2008-10-16 Thread Malcolm Tredinnick
On Thu, 2008-10-16 at 21:08 -0700, Gnarlodious wrote: > I don't know anything about Python except for how to run SQLite > commands. Mostly my strong point is HTML Then that is going to be a showstopper for doing Django work until you learn some Python. Django is a set of tools built on top of

multiple sites on webfaction (need help with installation)

2008-10-16 Thread Bobby Roberts
hi. I am trying to setup 11 websites sharing a common admin and database using the sites framework. can someone help me out and tell me how to get this installed over at webfaction. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: How to get a page in Django?

2008-10-16 Thread Gnarlodious
I don't know anything about Python except for how to run SQLite commands. Mostly my strong point is HTML Is there an example site offered where I can download and install and just run it and get a page? If I can study a working configuration maybe I can figure it out. It seems like including one

GEOIP_LIBRARY_PATH in settings.py

2008-10-16 Thread ryan
Is this correct?: GEOIP_LIBRARY_PATH = '/home/USERNAME/geoip/lib/libGeoIP.a' --~--~-~--~~~---~--~~ 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

Re: choices instantiation

2008-10-16 Thread [EMAIL PROTECTED]
Karen, Thank you. Based on your answer, I continued looking for problems in my code and in my setup. Firstly, the strings in the values of the choices were of length 7 and the CharField was of length 6. I was helped by a coworker to fix that. Then the problem of not showing the save'd choice

Extending the User model

2008-10-16 Thread jeffself
I'm working on an application that will need data entry from many users. The users belong to various departments in the organization and the information that gets entered by each user should contain the department information. The reason for this is that the users should be able to view and

Re: Memory leak!

2008-10-16 Thread Ned Batchelder
If you have DEBUG = True, then the SQL for the queries against the database are collected for debugging purposes. That can consume a lot of memory (especially for 800k+ records). Could that be the problem? --Ned. http://nedbatchelder.com bcrem wrote: > Hi all, > > I've got a memory issue

Re: count of regroup list?

2008-10-16 Thread [EMAIL PROTECTED]
On Oct 16, 8:28 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > However {{ type.list|length }} will do what you want. > Thanks. Perfect. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

count of regroup list?

2008-10-16 Thread [EMAIL PROTECTED]
When using the regroup template tag, is there a way to get the count of the the regroup list? For example, if I have {% regroup items by type as type_list %} {% for type in type_list %} There are X items of {{type.grouper}} {% end for %} For X, I thought I could just use type.list.count,

Re: count of regroup list?

2008-10-16 Thread Malcolm Tredinnick
On Thu, 2008-10-16 at 18:02 -0700, [EMAIL PROTECTED] wrote: > When using the regroup template tag, is there a way to get the count > of the the regroup list? > > For example, if I have > > {% regroup items by type as type_list %} > {% for type in type_list %} >There are X items of

Memory leak!

2008-10-16 Thread bcrem
Hi all, I've got a memory issue with a script I'm running to load my database. It leaks, slowly but surely, until I exceed the memory limits set by my service provider. It's a very simple script; all it does is 1. Read in a data file, one line at a time 2. Parse the line to initialize

Re: everything works except apache seeing django app

2008-10-16 Thread Stephen Moore
On Fri, Oct 17, 2008 at 1:04 AM, felix <[EMAIL PROTECTED]> wrote: > > is your app like this > > testSite > __init__.py >models.py >settings.py >etc. ? > > > ie. its not one folder deeper > > testSite > actualSite > __init__.py > models.py > settings.py

Re: save existing jpg to model

2008-10-16 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I have users dumping jpgs into a folder within the media root, the > idea is to monitor this folder and programmatically add the jpgs to > certain model instances based on a naming convention. It all works > fine... except... every time i put a jpg in File object and

Re: ldapauth and TLS

2008-10-16 Thread Daniele Procida
On Thu, Oct 16, 2008, Dj Gilcrease <[EMAIL PROTECTED]> wrote: > >Where are you changing this setting? It should be in the ldapauth.py >settings section which should look something like the following, but >with your data in it > >import ldap >from django.conf import settings >from

Re: getting error when accessing response.context['form']

2008-10-16 Thread Malcolm Tredinnick
On Thu, 2008-10-16 at 10:49 -0700, meppum wrote: [...] > closer investigation reveals that the response.context dictionary is > somehow transformed into a list of 2 identical dictionaries. so > instead I need to do something like this: > >

Re: ldapauth and TLS

2008-10-16 Thread Dj Gilcrease
Where are you changing this setting? It should be in the ldapauth.py settings section which should look something like the following, but with your data in it import ldap from django.conf import settings from django.contrib.auth.models import User settings = { 'LDAP_SERVER_URI':

Re: Python have a JIT (Just-in-time) compiler?

2008-10-16 Thread Malcolm Tredinnick
On Thu, 2008-10-16 at 12:02 -0700, bruno desthuilliers wrote: > On 16 oct, 20:28, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > Python have a JIT (Just-in-time) compiler? > > There's psyco, but it only works on x86 and imposes some restrictions > in the way you code. There's also the

Re: icontains case-sensitive on MySQL

2008-10-16 Thread Malcolm Tredinnick
On Thu, 2008-10-16 at 11:15 -0700, AndyB wrote: > Well - someone on #Django told me to check encoding settings and I did > but I failed to read the following: > http://dev.mysql.com/doc/refman/5.0/en/case-sensitivity.html > > Using binary collation changes the default sensitivity of string >

save existing jpg to model

2008-10-16 Thread [EMAIL PROTECTED]
I have users dumping jpgs into a folder within the media root, the idea is to monitor this folder and programmatically add the jpgs to certain model instances based on a naming convention. It all works fine... except... every time i put a jpg in File object and save to a model the jpg gets

Re: Parsing through feed to get to enclosure data?

2008-10-16 Thread Malcolm Tredinnick
On Thu, 2008-10-16 at 07:40 -0700, Frank Peterson wrote: > I have a RSS feed and I need to be able to get to the enclosure data > out of it. > Our code loads libRSS, here is what I have so far and its not working > > > {% for itm in rss.items %} > >

Re: Limit choices by object, not model

2008-10-16 Thread AmanKow
> Wouldn't it make more sense to limit them in the admin or the forms > instead of limiting them right in the models? The act of selecting an > activity topic in a form is form specific, the models don't (and > probably don't need to) have any knowledge of that. I'm not sure what you're driving

Re: How to use class_prepared signal

2008-10-16 Thread Malcolm Tredinnick
On Thu, 2008-10-16 at 16:11 +0200, Thomas Guettler wrote: > Hi, > > I try to use the class_prepared signal to register permissions on a > model class. > > Example: MyModel has a View-Permission. To avoid typos I don't want > to use the string representation of permissions

Re: internationalization and template magic caching

2008-10-16 Thread Malcolm Tredinnick
On Thu, 2008-10-16 at 06:45 -0700, matei wrote: > You are right. I now know what happened to me and caused confusion. It > appears to me django is taking the po files from the django admin so > words like password and change were translated without me specifying > my own .po .mo files. Not a

[OT] [JOB] Django developer required for location-aware advertising startup in London, UK

2008-10-16 Thread Sean Legassick
MobGeo - London, UK http://mobgeo.com/ We are looking for a smart and passionate software developer who is interested in working in the very exciting world of mobile and web development, with an emphasis on location-aware software and tools. You should have significant web or mobile

Re: Figuring out prefork v. worker

2008-10-16 Thread Graham Dumpleton
On Oct 17, 7:14 am, Doug Van Horn <[EMAIL PROTECTED]> wrote: > I run several applications on a Slicehost VPS and I recently switched > them to run the worker MPM andmod_wsgi. > > After switching, I ran into an issue with the worker MPM leaking > timezone information across django applications

Re: How to avoid out of sync sequence for primary key using Postgresql?

2008-10-16 Thread David Durham, Jr.
On Thu, Oct 16, 2008 at 2:38 PM, cfobel <[EMAIL PROTECTED]> wrote: > I recently encountered a situation where the sequence for the primary > key of one of my models became out of sync, which caused the following > error when trying to save a new model instance: > > IntegrityError ... 'duplicate

Announcing Agile Project Management Tool developed in Django

2008-10-16 Thread ashish
Hi All, I am pleased to announce the beta release of Agile Software Project and Product Management tool - http://wrap.woodranchtech.com WRAP stands for WoodRanch Agile Projects. It is from my company http://www.woodranchtech.com This tool is based on SCRUM, but will go much beyond scrum and

Admin won't display datetime widget with custom form?

2008-10-16 Thread mthorley
Hello, I'm building a custom admin site with a custom form and the datetime widget shows up as a text input. When I set the widget for the date field to textarea I get a textarea, but when I set it to datetime, I get I text input. I also tried not specifying any widget and I still get just a text

Re: ldapauth and TLS

2008-10-16 Thread Daniele Procida
On Thu, Oct 16, 2008, Steven Armstrong <[EMAIL PROTECTED]> wrote: >import ldap >LDAP_OPTIONS = {ldap.OPT_X_TLS_DEMAND: True} It's doesn't crash the server, but it's the same error as before: Exception Type: AttributeError Exception Value: 'dict' object has no attribute

Caching and comments

2008-10-16 Thread Matic Žgur
Hi, I used to cache the whole site, but then comments would not be displayed on time, which is not good. I switched to per-view caching now and I cache everything in my blog except post_detail function (it displays a certain blog post) which includes the comments. I decided to cache fragments of

Re: django on apache looses all styling

2008-10-16 Thread Dj Gilcrease
In your settings.py file there is a MEDIA_URL setting and an ADMIN_MEDIA_PREFIX setting In my case I have MEDIA_URL = 'http://media.digitalxero.net/' + SITE_NAME + '/' ADMIN_MEDIA_PREFIX = 'http://media.digitalxero.net/admin/' That way all of my static files are server off my CDN (Separate

Re: Custom template tag problem: "No module named models"

2008-10-16 Thread Chris Amico
OK, tried all that, got pretty much the same results: >> import bookmarks >>> dir(bookmarks) ['__builtins__', '__doc__', '__file__', '__name__', '__path__', 'models'] >>> bookmarks.__file__ '/home/chrisamico/lib/python2.5/bookmarks/__init__.pyc' >>> from bookmarks import templatetags >>>

Re: Query to display ManyToOne Bi-Directional associations?

2008-10-16 Thread Doug Van Horn
I think you'd rather use the default serialization behavior and write the Choice and Poll objects, letting the Choice objects contain the FK back to the Poll. However, if you write your own serializer you'd want to look for *class* attributes of type

Re: How to display image from ImageField in ModelAdmin?

2008-10-16 Thread volksman
Beauty in motion! Works like a charm...Thanks! --~--~-~--~~~---~--~~ 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

Re: django on apache looses all styling

2008-10-16 Thread William Purcell
I see that django documentation says to copy the admin media files so that they live within your Apache document root. I have put the media files from the django/contrib in the Apache document root. How does django/apache see them? On Thu, Oct 16, 2008 at 2:42 PM, William Purcell <[EMAIL

django on apache looses all styling

2008-10-16 Thread William Purcell
I am new to django, and web development in general for that matter, so please bear with me. I have done the introductory tutorial at the django web site. Everything works fine. I have now installed apache and I'm trying to serve django with mod_python installed in apache. I can now browse to

Re: ldapauth and TLS

2008-10-16 Thread Steven Armstrong
Daniele Procida wrote on 10/16/08 20:43: > On Thu, Oct 16, 2008, Dj Gilcrease <[EMAIL PROTECTED]> wrote: > >> LDAP_OPTIONS = 'ldap.OPT_X_TLS_DEMAND: True' >> should be >> LDAP_OPTIONS = {ldap.OPT_X_TLS_DEMAND: True} > > Sdly, that immediately crashes the server: > > Traceback (most recent call

Re: database fail over

2008-10-16 Thread Vance Dubberly
Just saw this: http://softwaremaniacs.org/soft/mysql_replicated/en/description/ anybody try it? Looks pre- queryset refactor, don't know if that matters. Vance On Thu, Oct 16, 2008 at 11:17 AM, Vance Dubberly <[EMAIL PROTECTED]> wrote: > Ok just got a huge project that is going to require

Re: Django development environment (newbie)

2008-10-16 Thread Jeff Anderson
Trastabuga wrote: > Can I combine it with Apache so I can serve my static and index.html > with Apache and the rest with django-admin.py server? > You could make your MEDIA_URL point to a URL that is hosted somewhere else, like Apache. I find it easiest to just use the static file view when

Re: Django development environment (newbie)

2008-10-16 Thread Hernan Olivera
> Can I combine it with Apache so I can serve my static and index.html > with Apache and the rest with django-admin.py server? There is a very single configuration option in apache that auto-reloads code too, in django documentation. -- Hernan Olivera

Re: Execute function after Add in admin site

2008-10-16 Thread Joe Sr
On Oct 13, 1:53 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 13 oct, 18:11, Joe Sr <[EMAIL PROTECTED]> wrote: > > > I am working on an "Issues" application and I want to execute code to > > send an e-mail to an assignee after an issue has been added.  I saw > > that there are signals I

Re: ldapauth and TLS

2008-10-16 Thread Daniele Procida
On Thu, Oct 16, 2008, Dj Gilcrease <[EMAIL PROTECTED]> wrote: >LDAP_OPTIONS = {'OPT_X_TLS_DEMAND': True} I'm afraid that's not it either; nor is: LDAP_OPTIONS = {'ldap.OPT_X_TLS_DEMAND': True} Daniele --~--~-~--~~~---~--~~ You received this message because

Re: Search functionality over the DB

2008-10-16 Thread R. Gorman
The is a view I have to search some of my models: def search(request): query = request.GET.get("s", "") q = Q() for term in query.split(): q |= Q(abstract__icontains=term) | Q(next_field__icontains=term) results = [i for i in

Figuring out prefork v. worker

2008-10-16 Thread Doug Van Horn
I run several applications on a Slicehost VPS and I recently switched them to run the worker MPM and mod_wsgi. After switching, I ran into an issue with the worker MPM leaking timezone information across django applications (actually the timezone leaks under both mod_python and mod_wsgi/embedded

Search functionality over the DB

2008-10-16 Thread Katja L.
Hi, I need to implement a search over a text field I have ... The user can enter multiple values into a search box and I need to do kind of full text search in one field of the database. E.G. class DataSet(models.Model): ... abstract = models.TextField() ... Let's say the user enters

Re: ldapauth and TLS

2008-10-16 Thread Dj Gilcrease
Ahh yes, been a while since I messed with my settings for that file but I think this is what you need LDAP_OPTIONS = {'OPT_X_TLS_DEMAND': True} Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Oct 16, 2008 at 12:43 PM, Daniele Procida <[EMAIL PROTECTED]> wrote: > > On Thu, Oct

How to avoid out of sync sequence for primary key using Postgresql?

2008-10-16 Thread cfobel
Hi, My setup is: Django 1.0 (rev 9066) Postgresql v8.3 I recently encountered a situation where the sequence for the primary key of one of my models became out of sync, which caused the following error when trying to save a new model instance: IntegrityError ... 'duplicate key violates

Re: Django development environment (newbie)

2008-10-16 Thread Trastabuga
Can I combine it with Apache so I can serve my static and index.html with Apache and the rest with django-admin.py server? Thank you, Andrew On Oct 16, 3:10 pm, "Ronaldo Zacarias Afonso" <[EMAIL PROTECTED]> wrote: > You can use django-admin.py runserver. Maybe it uses a different > approach,

Re: How to avoid out of sync sequence for primary key using Postgresql?

2008-10-16 Thread cfobel
Oh, and I want to emphasize that I am open to any constructive suggestions - if this is a known issue with Postgresql that doesn't have a reasonable solution, I'd be open to switching to MySQL, etc. if necessary. (Obviously my preference would be to stick with Postgresql because that's what our

Re: Python have a JIT (Just-in-time) compiler?

2008-10-16 Thread [EMAIL PROTECTED]
But because it does not track the python when it is installed natively, since this is a great benefit On 16 out, 17:02, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 16 oct, 20:28, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Python have a JIT (Just-in-time) compiler? > > There's

Re: DB record retrieval from every N minutes

2008-10-16 Thread grahamu
Good idea Thomas. I'll experiment with using __range to get 24 individual records instead of retrieving all records and then looping over the queryset. Thanks. Graham On Oct 15, 1:15 am, Thomas Guettler <[EMAIL PROTECTED]> wrote: > grahamu schrieb:> I'd like to find an efficient method to

Re: Django development environment (newbie)

2008-10-16 Thread Ronaldo Zacarias Afonso
You can use django-admin.py runserver. Maybe it uses a different approach, but in a nutshell, it's a web server that you can use to develop your django applications and it does what you want (You don't have to reboot the server every time you do a change in your apps). []s Ronaldo. On Thu,

Re: Python have a JIT (Just-in-time) compiler?

2008-10-16 Thread bruno desthuilliers
On 16 oct, 20:28, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Python have a JIT (Just-in-time) compiler? There's psyco, but it only works on x86 and imposes some restrictions in the way you code. --~--~-~--~~~---~--~~ You received this message because you

Re: Django development environment (newbie)

2008-10-16 Thread bruno desthuilliers
On 16 oct, 20:26, Trastabuga <[EMAIL PROTECTED]> wrote: > Hi (snip background) > Basically the question is: "Can I connect to remote Python process > which handles http requests and add/modify functions there without > reloading the server?" Short answer : no. Anyway, on-the-fly editing of

Re: rename or renaming a Django application

2008-10-16 Thread varikin
On Oct 15, 7:17 pm, coderb <[EMAIL PROTECTED]> wrote: > hi tim, thanks for the quick response. > > I will convert your bash commands to my (whisper) "windows" > equivalents to manually rename all instances. I have tools like > windows grep etc.. > Doing batch renames, search replaces etc ..

Re: ldapauth and TLS

2008-10-16 Thread Daniele Procida
On Thu, Oct 16, 2008, Dj Gilcrease <[EMAIL PROTECTED]> wrote: > > LDAP_OPTIONS = 'ldap.OPT_X_TLS_DEMAND: True' >should be > LDAP_OPTIONS = {ldap.OPT_X_TLS_DEMAND: True} Sdly, that immediately crashes the server: Traceback (most recent call last): File "manage.py", line 4, in import

Django development environment (newbie)

2008-10-16 Thread Trastabuga
Hi I am used to Emacs/Slime/Lisp running under detachtty so I can connect to the remote lisp image using Emacs/Slime and do my development in this environment. I'd like to give Python/Django a try, so I'd like to know is it possible to emulate a similar environment? Basically the question is:

Python have a JIT (Just-in-time) compiler?

2008-10-16 Thread [EMAIL PROTECTED]
Python have a JIT (Just-in-time) compiler? --~--~-~--~~~---~--~~ 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

Re: ldapauth and TLS

2008-10-16 Thread Dj Gilcrease
LDAP_OPTIONS = 'ldap.OPT_X_TLS_DEMAND: True' should be LDAP_OPTIONS = {ldap.OPT_X_TLS_DEMAND: True} I would think Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Oct 16, 2008 at 12:04 PM, Daniele Procida <[EMAIL PROTECTED]> wrote: > > On Thu, Oct 16, 2008, Jeff Anderson

Re: Limit choices by object, not model

2008-10-16 Thread Ronny Haryanto
On Fri, Oct 17, 2008 at 12:23 AM, AmanKow <[EMAIL PROTECTED]> wrote: > I need to limit choices dynamically by an object, not a class: > When adding or changing a > participation object, either in the admin or via model forms, I need > to limit the choices for cert type to those offered by

database fail over

2008-10-16 Thread Vance Dubberly
Ok just got a huge project that is going to require alot of big iron. Prolly 4 webservers and at least 2 if not 4 database server and a memecache server. Load balancing across webservers isn't a big deal. But 1 very big weakness I'm seeing in django as it stands is the ability to deal with

Re: icontains case-sensitive on MySQL

2008-10-16 Thread AndyB
Well - someone on #Django told me to check encoding settings and I did but I failed to read the following: http://dev.mysql.com/doc/refman/5.0/en/case-sensitivity.html Using binary collation changes the default sensitivity of string comparisons. Is this not something that Django should be

Re: ldapauth and TLS

2008-10-16 Thread Daniele Procida
On Thu, Oct 16, 2008, Jeff Anderson <[EMAIL PROTECTED]> wrote: >> According to the documentation, we should be able to set LDAP_OPTIONS >> along with the other settings: >> >> ``LDAP_OPTIONS`` -- hash, python-ldap global options and their values >>

Re: Deploy application in bytecode

2008-10-16 Thread [EMAIL PROTECTED]
H. Thank you bruno, thank ovnicraft, thank all. I understand this question, we all help me. On 16 out, 14:45, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 16 oct, 18:31, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > H. > > The byte-code of Java and byte-code of dot.net are

Re: icontains case-sensitive on MySQL

2008-10-16 Thread Ronny Haryanto
On Fri, Oct 17, 2008 at 12:55 AM, AndyB <[EMAIL PROTECTED]> wrote: > I've googled and the only problems seem to be with people trying to do > case-sensite lookups. > > What could be going wrong here?: > b.filter(name__icontains='Saff') > [] b.filter(name__icontains='saff') > [] Could

icontains case-sensitive on MySQL

2008-10-16 Thread AndyB
I've googled and the only problems seem to be with people trying to do case-sensite lookups. What could be going wrong here?: >>> b.filter(name__icontains='Saff') [] >>> b.filter(name__icontains='saff') [] MySql 5.0.51 Django 1.0 Tables are InnoDB UTF8 collation UTF8 bin Tried it on a my dev

Limit choices by object, not model

2008-10-16 Thread AmanKow
I need to limit choices dynamically by an object, not a class: class CertType(models.Model): name = models.CharField(max_length=128) class ActivityTopic(models.Model): cert_types = models.ManyToMany(CertType) class Participation(models.Model): activity_topic =

Re: recursive relationship in model

2008-10-16 Thread coderb
Thanks DJ and Bruno for the super quick responses On Oct 16, 6:00 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 16 oct, 18:52, coderb <[EMAIL PROTECTED]> wrote: > > > > > hi all, > > > I'm having trouble with a category table when trying to add rows in > > admin > > > my model is a

Re: How to get a page in Django?

2008-10-16 Thread Jonathan Lin
Hi There, I'm also a new user of Django, so I understand that the learning curve might be steep, but you should know that Django requires you to actually build things. Ie. There is no built in cms. It is a framework that allows you to construct a content management system, or a web app. I

using flat pages and sites

2008-10-16 Thread Bobby Roberts
hi. I am needing advice as a django noob. I am hosting at webfaction and want to use django to power about 11 sites. I have my django app installed with a current project in its own directory with its own settings etc. My question is what is the best way to proceed from this point? Do I just

Re: everything works except apache seeing django app

2008-10-16 Thread felix
is your app like this testSite __init__.py models.py settings.py etc. ? ie. its not one folder deeper testSite actualSite __init__.py models.py settings.py and did you restart apache ? flix >

Re: How to get a page in Django?

2008-10-16 Thread bruno desthuilliers
On 16 oct, 18:13, Gnarlodious <[EMAIL PROTECTED]> wrote: > Hello. I've spent about 8 hours trying to figure out how to get an > actual page in my browser. Are there any clear instructions on how to > get a minimal default? yes, indeed: http://docs.djangoproject.com/en/dev/ HTH

Re: recursive relationship in model

2008-10-16 Thread bruno desthuilliers
On 16 oct, 18:52, coderb <[EMAIL PROTECTED]> wrote: > hi all, > > I'm having trouble with a category table when trying to add rows in > admin > > my model is a Category table with a self reference using 'parent' > which enables unlimited depth of categories. Its defined as follows: > > class

Re: recursive relationship in model

2008-10-16 Thread Dj Gilcrease
Here is my Category model (With generic relations) that has unlimited depth and it works http://dpaste.com/hold/84881/ It has generic relations since so many things need to be categorized and I didnt think writing a category model for each thing followed the DRY principle, but if you dont need

Re: everything works except apache seeing django app

2008-10-16 Thread bruno desthuilliers
On 16 oct, 18:06, "Stephen Moore" <[EMAIL PROTECTED]> wrote: > On Thu, Oct 16, 2008 at 11:56 PM, bruno desthuilliers (snip) > > You need to know the user under which Apache is running (wait... > > Ubuntu ? This should be www-data then) and give read access to this > > user. Something like > > >

recursive relationship in model

2008-10-16 Thread coderb
hi all, I'm having trouble with a category table when trying to add rows in admin my model is a Category table with a self reference using 'parent' which enables unlimited depth of categories. Its defined as follows: class Category(models.Model): name=

Re: Error Pages and Flatpages

2008-10-16 Thread Håkan Waara
Try searching for 404 on http://docs.djangoproject.com -- there's both flatpages-specific information on how to deal with 404 errors and also how to handle it in general in your django apps. In general, try searching the django docs site first -- there's a lot of good info there. /Håkan

Re: Deploy application in bytecode

2008-10-16 Thread bruno desthuilliers
On 16 oct, 18:31, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > H. > The byte-code of Java and byte-code of dot.net are also not safe? Not even binary machine code is safe. Where do you think all these cracked softwares come from ? Back in the mid-heighties, when Steinberg came to France

Re: Deploy application in bytecode

2008-10-16 Thread Ovnicraft
2008/10/16 [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > H. > The byte-code of Java and byte-code of dot.net are also not safe? > > The best way to protected my code is a license? What you mean with protect? > > > On 16 out, 11:54, bruno desthuilliers <[EMAIL PROTECTED]> > wrote: > > On 16

Re: Legacy databases

2008-10-16 Thread Dj Gilcrease
Your first obstacle (currently) is going to be getting django to work with multiple databases (the two Oracle and whatever its base DB is). This is achievable, but undocumented and involves knowing the internals of the QuerySet. Once you have that setup and functional (I would create separate

How to get a page in Django?

2008-10-16 Thread Gnarlodious
Hello. I've spent about 8 hours trying to figure out how to get an actual page in my browser. Are there any clear instructions on how to get a minimal default? Sorry, I guess I expected a default configuration that could be modified. All I can see is a page that tells me "It worked!

Re: Deploy application in bytecode

2008-10-16 Thread [EMAIL PROTECTED]
H. The byte-code of Java and byte-code of dot.net are also not safe? The best way to protected my code is a license? On 16 out, 11:54, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 16 oct, 07:02, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > On Oct 16, 3:41 pm, "[EMAIL PROTECTED]"

Legacy databases

2008-10-16 Thread huw_at1
Hi, I want to use Django to query two legacy Oracle databases. >From what I have read Django can handle legacy databases provided the primary key is an auto-incremented integer field in the tables of the databases. Does Django work in such a way that it will take these databases and rebuild

Re: everything works except apache seeing django app

2008-10-16 Thread Stephen Moore
On Thu, Oct 16, 2008 at 11:56 PM, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > > On 16 oct, 16:58, "Stephen Moore" <[EMAIL PROTECTED]> wrote: >> On Thu, Oct 16, 2008 at 10:42 PM, felix <[EMAIL PROTECTED]> wrote: >> >> > possibly it may be on YOUR pythonpath but it won't be on apache's >> >

Re: everything works except apache seeing django app

2008-10-16 Thread bruno desthuilliers
On 16 oct, 16:58, "Stephen Moore" <[EMAIL PROTECTED]> wrote: > On Thu, Oct 16, 2008 at 10:42 PM, felix <[EMAIL PROTECTED]> wrote: > > > possibly it may be on YOUR pythonpath but it won't be on apache's > > pythonpath. > > k then.. > > well I added PythonPath "['/home/iambob/web', >

Re: Best Practices in Implementing Mini-Content Boxes Across the Site

2008-10-16 Thread Lisa Dusseault
+1 - thanks to Ronny, Bruno and Daniel's advice in this thread. It helps sometimes to have pointers to info/tools in the context of a problem, even if I was vaguely aware of the info/tools before. On Thu, Oct 16, 2008 at 4:30 AM, Israel Dacanay Canasa <[EMAIL PROTECTED]>wrote: > > Bruno, > >

MSSQL+django-pyodbc gives ProgrammingError

2008-10-16 Thread Michael J. Korman
I'm using Django 1.0 with django-pyodbc SVN and MS SQL Server. I have a model with a field of type TextField. When I try searching (on a different field) for items of this model in the admin, I get the following error: ProgrammingError at /admin/llreg/propertycontact/ ('42000', '[42000]

Re: How to translate into Django

2008-10-16 Thread Jeff Anderson
Pythoni wrote: > In PHP can be used > include "http://url_address;; > ?> > > > How must I translate that to be able to use it in Django? > Use a Python library to fetch the content, and set a context variable passed to a template to hold the included content. Jeff Anderson signature.asc

Re: How to translate into Django

2008-10-16 Thread Brett Parker
On 16 Oct 08:09, Pythoni wrote: > > In PHP can be used > include "http://url_address;; > ?> > > > How must I translate that to be able to use it in Django? First off, is that a fixed string URL... Second, is that a site under your control that you're including if one isn't true, probably a

Re: ManyToManyField with extra content and Django admin

2008-10-16 Thread Brandon Taylor
Hi Marco, I'm going to handle this a little differently than using inlines. That method doesn't give me quite the workflow that I'm looking for, but an extra class with some meta data for the table name will work just fine. Thanks, Brandon On Oct 16, 1:32 am, Marco Buttu <[EMAIL PROTECTED]>

How to translate into Django

2008-10-16 Thread Pythoni
In PHP can be used http://url_address;; ?> How must I translate that to be able to use it in Django? Thanks for help. Cheers, Jo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: everything works except apache seeing django app

2008-10-16 Thread Stephen Moore
On Thu, Oct 16, 2008 at 10:42 PM, felix <[EMAIL PROTECTED]> wrote: > > > possibly it may be on YOUR pythonpath but it won't be on apache's > pythonpath. > k then.. well I added PythonPath "['/home/iambob/web', '/home/iambob/web/testSite'] + sys.path" to my httpd.conf so the relevant section

Re: ldapauth and TLS

2008-10-16 Thread Jeff Anderson
Daniele Procida wrote: > I'm trying to get django.contrib.auth.ldapauth.LDAPBackend - from: > > > > working with our LDAP server. > > IWe need TLS before the server will permit us to exchange a password with it. > > According to

Re: everything works except apache seeing django app

2008-10-16 Thread felix
possibly it may be on YOUR pythonpath but it won't be on apache's pythonpath. here is my /etc/apache2/extra/httpd-vhosts.conf # SUSTAIN BETA PythonPath "['/home/crucial/gitpo/djapps','/home/crucial/gitpo/pluggables','/home/crucial/gitpo','/home/crucial/gitpo/sustain'] + sys.path"

Parsing through feed to get to enclosure data?

2008-10-16 Thread Frank Peterson
I have a RSS feed and I need to be able to get to the enclosure data out of it. Our code loads libRSS, here is what I have so far and its not working {% for itm in rss.items %} {{itm.description}} FLV {% endfor %} Here is what my feed

ldapauth and TLS

2008-10-16 Thread Daniele Procida
I'm trying to get django.contrib.auth.ldapauth.LDAPBackend - from: working with our LDAP server. IWe need TLS before the server will permit us to exchange a password with it. According to the documentation, we should be able

How to use class_prepared signal

2008-10-16 Thread Thomas Guettler
Hi, I try to use the class_prepared signal to register permissions on a model class. Example: MyModel has a View-Permission. To avoid typos I don't want to use the string representation of permissions ('myapp_view_mymodel'). I want to use a class attribute (MyModel.PERM_VIEW) in my code. It

Re: Template inheritance and flatpages

2008-10-16 Thread chiggsy
> > Yeps. But use {% extends "base.html" %} instead - notice the quotes. Aie! How could I miss that? :( Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

  1   2   >