Re: Please help me with static files serving

2008-12-08 Thread Jeff Anderson
IN_MEDIA to something else. '/admin/media' makes sense to me, so that's usually what I set it to. Some people set their MEDIA_URL url to something like '/static'. Another logical way to set the URLs is to have MEDIA_URL be '/media' and ADMIN_MEDIA_PREFIX set to '/media/admin' Hopefully this is helpful and makes sense! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: range-like template tag?

2008-12-07 Thread Jeff FW
You could write a very simple filter to do this. Something like (untested): def range(top): return xrange(0, top) then use {% for i in someInt|range %} I think it would still be better to pass it in the context--why can't you do that? -Jeff On Dec 7, 5:12 pm, Berco Beute &l

Re: using settings in templates

2008-12-06 Thread Jeff FW
http://docs.djangoproject.com/en/dev/ref/templates/api/?#id1 -Jeff On Dec 6, 1:17 pm, barracuda <[EMAIL PROTECTED]> wrote: > Hello, > How can I use a configuration in settings in templates? > For e.g , I would like to use the DATE_FORMAT configured in settings > to format the database dateti

Re: How can I report a new user?

2008-12-06 Thread Jeff FW
angoproject.com/en/dev/topics/signals/ -Jeff On Dec 6, 1:26 pm, Patricio Palma <[EMAIL PROTECTED]> wrote: > I have a model user > > class User(models.Model): >     name = models.CharField(_("name"), max_length=40) >     paternals = models.CharField(max_length=40) &g

How to use Fixtures and/or Initial SQL for project auth_user data?

2008-12-05 Thread Jeff Kowalczyk
During early prototyping, I'm relying on specific auth_user content in the project admin, as my app model use User as a ForeignKeyField. Project layout is:myproject/myapp Initial SQL myproject/myapp/mymodel/sql/mymodel.sql works fine, and I'm interested in initial_data.[xml/yaml/json for the sam

AuditTrail with Django-1.0 Admin: how to define type() as dj.c.admin.autodiscovered module attribute?

2008-12-05 Thread Jeff Kowalczyk
For AuditTrail [1] to appear in Django-1.0.x Admin, I need to define a ModelAdmin subclass as a module attribute. The current version of AuditTrail still uses the Admin class attribute. How can I set the result of type('FooAdmin',admin.ModelAdmin) as a module attribute that will be located by dja

Re: Can javascript call a python script?

2008-12-03 Thread Jeff Anderson
#x27;s what Ajax is for. The javascript will send a request to the server without reloading the page in the browser, and can (optionally) change something in the loaded page based on data received by the response, while the server can do whatever it wants– including updating a database. Ho

Re: Django 1.0 no longer prints higher ASCII?

2008-11-30 Thread Jeff FW
What do you mean by "disappears"? How are you trying to output it? There's nothing special about the string that line generates, and I doubt anything would have changed between versions of Django that would stop that string from doing something it used to do. -Jeff On Nov 30,

Re: "safari can't open the page"

2008-11-29 Thread Jeff Anderson
going on with wireshark. It very well could be an issue with a header or something– especially if you're doing something crazy weird in the view. Have you checked the log to see if Safari is actually hitting the webserver? Hopefully this will give you some idea as to how to start diagnosing the

Re: locmem or memcache

2008-11-28 Thread Jeff Anderson
Peter Bengtsson wrote: > What's faster, locmem or memcache? > > I know that the docs rave on about how fast memcache is but what about > locmem? That sounds pretty fast to me since it doesn't need another > TCP service and just uses the RAM. > My particular site (for mobile phones without any media

Re: Usage opinion wanted

2008-11-27 Thread Jeff FW
such thing. Hope that helps, Jeff On Nov 26, 9:23 am, "Saurabh Agrawal" <[EMAIL PROTECTED]> wrote: > Hi Jeff, > > Thanks again for all the info. > > Can I trouble you a little more, for something which in fact, might not be > Django related at all? You can choose to

Re: Compare Lists for Unique Items

2008-11-27 Thread Jeff FW
two lists > verses making 300+ save()'s in a try/except, 90% of which won't be committed > to the database? > > On Wed, Nov 26, 2008 at 9:00 AM, Jeff FW <[EMAIL PROTECTED]> wrote: > > > If you already have a unique key on the project's name field, then > &g

Re: Usage opinion wanted

2008-11-26 Thread Jeff FW
;, as you have no real control over them. You can lock access down to specific users or groups (in postgres), but that can be a very arduous, and doesn't always work for your business logic. -Jeff On Nov 25, 11:45 am, "Saurabh Agrawal" <[EMAIL PROTECTED]> wrote: > Hi, >

Re: Compare Lists for Unique Items

2008-11-26 Thread Jeff FW
If you already have a unique key on the project's name field, then you're good to go--no duplicates will ever get inserted. No need to do any filtering ahead of time--just put each save() in a try/except block that catches the error you get and does nothing. -Jeff On Nov 25, 4:53

Re: Compare Lists for Unique Items

2008-11-25 Thread Jeff Anderson
t_list' into a list, do the comparison there: if item not in current_projects: new_projects.append(item) Of course, this won't work if you are getting a list as input, and not the individual items. Cheers! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Dynamic image creation

2008-11-25 Thread Jeff Anderson
fice document. You'll likely want to use PIL for the actual manipulation/operation, but as long as you can get the binary content of the image into Python, you're fine. Simply set the mime type and content of the response, and you're good to go. There are examples in the

Re: Develop in windows, serve in linux

2008-11-25 Thread Jeff Anderson
he tools mentioned use an ssh connection to provide their various services. There's plenty of info "out there" about using the terminal. Take care! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: multi field validation

2008-11-25 Thread Jeff FW
b/admin/#adding-custom-validation-to-the-admin You can do multi-field validation by adding a clean() method that will run after every clean_FIELDNAME() method, and can do any checking you need, and raise a ValidationError if it fails. -Jeff On Nov 25, 4:29 am, "Alessandro Ronchi" <[EMA

Re: Usage opinion wanted

2008-11-25 Thread Jeff FW
you may have to sacrifice some usability. -Jeff On Nov 24, 8:24 pm, "Saurabh Agrawal" <[EMAIL PROTECTED]> wrote: > Hi group: > > I hope that you good people here could help me with a decision I am finding > hard to make. > > I am about to develop a MIS type app

Re: shared application?

2008-11-24 Thread Jeff Anderson
his. I skimmed the admin doc for info about a using a custom manager. I didn't see it, but that doesn't mean it isn't there. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: shared application?

2008-11-24 Thread Jeff Anderson
I've never implemented it myself, but it's all documented. You can also have multiple admin sites installed on different URL paths. Make one admin site for one app, and another admin site for the other. I've never done that either though, but it too is documented. :) Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Problem upgrading to Django 1.0.2

2008-11-23 Thread Jeff Anderson
setup.py when I install Django, but I'm sure there's a way to skip the byte compiling stage, at least for the gis stuff. As long as you don't plan on using gis, ignoring those errors won't hurt you. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Using a HTML to fire off a data processing script on the server (REST or SOAP)

2008-11-22 Thread Jeff Anderson
shi shaozhong wrote: > Dear Jeff Anderson, > > Thank you for your email. > > It sounds very interesting to me. I must confess that I am not a > programmer, and have no experience with Django. But I have a project > in hand to do such a work. > > Have you ever tried

Re: Custom Select widget choices - how to reuse choices?

2008-11-21 Thread Jeff FW
BasicRelicForm ): disk_type = forms.CharField( widget = choicewidget ( choices=Movie.CHOICES )) class Meta: model = Movie That seems, to me, to be the cleanest way to do it. You can also access the choices like this, but I wouldn't recommend it: choices = Movie._meta.get_fiel

Re: Using a HTML to fire off a data processing script on the server (REST or SOAP)

2008-11-21 Thread Jeff Anderson
ou aren't familiar with AJAX, I suggest reading a tutorial about how AJAX works, and then consider using an AJAX library. Hopefully this gives you a good starting point. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Views triggering twice

2008-11-17 Thread Jeff Gentry
> you've used the value "#fff", that will be interpreted by the browser as > a reference to the current page (#fff being an anchor, and not passed to > the server). Ergo, a second request is made. Wow, thanks. Just reading through your step by step taught me some things I didn't know :) > The

Re: Using Admin From a Sub-Directory

2008-11-16 Thread Jeff FW
You need a trailing slash after /myapp/media/admin. The final URL will then come out to: http://localhost/media/admin/css/dashboard.css -Jeff On Nov 16, 11:37 am, Chris <[EMAIL PROTECTED]> wrote: > I'm trying to setup my app so it's accessible from a /myapp sub- > direct

Re: php templates support

2008-11-15 Thread Jeff Anderson
isn't what you wanted to hear, but I disagree with the concept of running PHP to get an html template into Django, though I think it's kind of cool that someone has done it. :p Take care! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Views triggering twice

2008-11-14 Thread Jeff Gentry
> Quoting from the book of "if you hear hoofbeats, think horses, not > zebras": This obviously isn't normal Django behaviour and since calling > views is easily the most common operation in Django, it's safe to assume > that any breakage here in Django would have been noticed by other > people. Whi

Re: Views triggering twice

2008-11-13 Thread Jeff Gentry
Another piece of info, in case it's useful here - the page does *not* render on the first view call, it's only after the second call that the page will render. I don't think it's even pulling up the template until the second go-around, as a test I put some intentionally bad template code in a te

Re: Views triggering twice

2008-11-13 Thread Jeff Gentry
> How have you noticed that view was triggered twice? I noticed that the URLs were displaying twice in the devel server console (and in HTTP logs for when running off of apache). For the former case, I put a print statement in the view function - when loading those pages, the print is triggered

Re: Views triggering twice

2008-11-13 Thread Jeff Gentry
Actually I lied a little bit - a completely blank file doesn't trigger this (I can also seem to put in a and tag), but adding anything else will cause the view to be loaded 2x. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Views triggering twice

2008-11-13 Thread Jeff Gentry
In my apps, I'm finding that my views are triggering twice. I have a series of related apps, working off of the same settings.py file (there's a global urls.py, which triggers off of the first string and sends to a subdirectory w/ it's own urls.py/__init__.py/models.py/views.py/etc. With one exc

Re: creating django middleware

2008-11-12 Thread Jeff FW
pass return response Also, may I suggest adding a process_exception method? Here's mine: def process_exception(self, request, exception): request.db_session.rollback() request.db_session.close() -Jeff On Nov 12, 7:18 am, ershadul <[EMAIL PROTECTED]> wrote: &g

bottom line on postgres schema use in 0.96?

2008-11-10 Thread jeff
es anyone know whether any of these options should work? if not is there a work-around or is it expected in a particular version? thanks, Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&qu

Re: Newbie question: HTML formatting not applied to pages

2008-11-06 Thread Jeff Beckham
ml has only one line: {% extends 'base.html' %} and nothing at all in /templates/blog/detail.html Thanks! Jeff On Nov 5, 3:52 pm, Daniel Hepper <[EMAIL PROTECTED]> wrote: > > I feel like I'm missing something simple. I read up on the autoescape > > tags,

Newbie question: HTML formatting not applied to pages

2008-11-05 Thread Jeff Beckham
I feel like I'm missing something simple. I read up on the autoescape tags, but I'm not sure that's the solution. Any ideas? Thanks, Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: Keeping track of online users

2008-11-02 Thread Jeff FW
Can you be more specific? What are you trying to do? -Jeff On Nov 1, 3:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have found some post of 2007 on this argument but maybe with django > 1.0 something is changed. > > how do you d

Re: Is there a way to use the Cut Filter to only do the first instance?

2008-10-31 Thread Jeff FW
you want in the first place. But then, I don't know what you're trying to do. -Jeff On Oct 31, 12:06 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 31, 2008 at 11:55 AM, Frank Peterson > <[EMAIL PROTECTED]>wrote: > > > > > I am us

Re: geodjango on cough-vista-cough?

2008-10-30 Thread Jeff Johnson
ks with Vista" applications. I install everything in \users\public. So I would install PostgreSQL in \users\public\postgresql. I also put my apps in something like \users\public\myapps. I am sure you can find other recommendations for postgresql. HTH -- Jeff Jeff Johnson [EMAIL PROTECT

Re: Noon Help

2008-10-27 Thread Jeff Anderson
Admins should. It's there to make your life much easier, and it does that very well. You'll still need to build views for your app, but if you need to go in and change something manually, the admin interface is way better than dropping to SQL. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Noon Help

2008-10-26 Thread Jeff Anderson
ic questions that come up, this is the place to ask. It sounds like you're already headed in the right direction. Use Django's auth system, the admin site, and build your own app for reptile tracking. I'd use it, except I'm not a reptile owner– we only have a bird. Happy C

Re: Receiving emails via app

2008-10-26 Thread Jeff Anderson
James Bennett wrote: > On Sat, Oct 25, 2008 at 2:09 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote: > >> We have an alias set up in postfix that sends the e-mail to our script >> via a pipe. >> >> The python script imports our Django models, and parses the e-m

Re: Receiving emails via app

2008-10-26 Thread Jeff Anderson
amount of load on the mailserver to constantly check and download hundreds of messages all the time, but my guess is that it might be less load than loading several hundred instances of a python interpretor. It'd be interesting to test. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Receiving emails via app

2008-10-25 Thread Jeff Anderson
the e-mail to our script via a pipe. The python script imports our Django models, and parses the e-mail message with the email module, and does what it needs to. This should give you a decent starting point. Cheers! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: why not django's default server?

2008-10-25 Thread Jeff FW
And you don't need root access to install/run Apache either. It might be a pain to install w/o root, depending on your OS, but running it wouldn't be too hard, as long as you pick a port above 1024. One very good reason (I think) to avoid using Django's development server is the inability to use

Re: variable tag / filter

2008-10-24 Thread Jeff FW
e in the future. -Jeff On Oct 24, 1:01 am, ramya <[EMAIL PROTECTED]> wrote: > I wanted to write one all purpose generic template.. > > Now I have split that and extended multiple specific templates.. :( > > Thanks, > ~ramyak/ > > On Oct 23, 6:34 pm, Jeff FW <[EMAIL PR

Re: variable tag / filter

2008-10-23 Thread Jeff FW
to get the effect you want--what are you trying to achieve? -Jeff On Oct 23, 6:59 am, ramya <[EMAIL PROTECTED]> wrote: > Is it possible to have variable tags / filters > > {{ my_value | my_filter }} > where c['my_filter'] = 'formatDateTime' > formatDateTime is

Re: Accidentally creating a model with "def unicode(self):" will crash django with no stack trace

2008-10-23 Thread Jeff FW
an (almost) infinite recursive loop--"almost" because Python is smart enough to die after a while (usually with: "RuntimeError: maximum recursion depth exceeded"). -Jeff On Oct 23, 8:54 am, Brian <[EMAIL PROTECTED]> wrote: > I should be more precise. :) Here's a s

Re: Import error exception "No module named urls" when running from eclipse

2008-10-21 Thread Jeff Anderson
l need to include the code for the view that is being called, and possibly your urls.py Do you have a urls.py in your project? Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Get External IP Address

2008-10-17 Thread Jeff Johnson
; > > > > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.173 / Virus Database: 270.8.1/1730 - Release Date: 10/17/2008 > 8:07 AM > -- Jef

Re: Get External IP Address

2008-10-17 Thread Jeff Anderson
e. > http://dmiessler.com/blog/how-to-use-python-to-get-your-external-ip > There might be a Python networking library out there, or you could parse the output of "ifconfig" on linux, or "ipconfig" on windows. You could look at the SERVER_NAME environmental variable, whi

Re: newforms question

2008-10-17 Thread Jeff Gentry
> Oops. It could also read > from django import newforms as forms > in which case you should change it to > from django import forms Right, that's what I was thinking. > but I hope you've got the idea: basically newforms has *become* forms. Yup - just wasn't sure on that. I had remembe

Re: newforms question

2008-10-17 Thread Jeff Anderson
Jeff Gentry wrote: > Hi there ... > > To date, I've not been using Django's form system (nor 'newforms'), but am > trying to integrate another app into a suite that I'm developing. The > code on this is a bit older and is using newforms - when I fire up the

newforms question

2008-10-17 Thread Jeff Gentry
Hi there ... To date, I've not been using Django's form system (nor 'newforms'), but am trying to integrate another app into a suite that I'm developing. The code on this is a bit older and is using newforms - when I fire up the server (running off of the 1.0 branch) I get "No module named newfo

Re: Django development environment (newbie)

2008-10-16 Thread Jeff Anderson
view when running the Django development environment, and turning that off in a production environment. Jeff Anderson signature.asc Description: OpenPGP digital signature

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 conten

Re: ldapauth and TLS

2008-10-16 Thread Jeff Anderson
ython2.5/site-packages/django/contrib/auth/ldapauth.py in > authenticate, line 113 > > The full error is at: <http://dpaste.com/84838/> > > How can we set LDAP_OPTIONS to turn on TLS? > Hello, LDAP_OPTIONS should be defined in your settings.py. Paste what you have in your settings.py for the ldap configuration, and I can help diagnose. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: manage.py tab completion

2008-10-14 Thread Jeff Anderson
ot currently supported, how hard would it be to include? > Would it use the readline library? > This is already implemented with a bash completion script. I'm not 100% sure where in svn it lives, but its there, and it works. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: HTTPS Service for Django

2008-10-14 Thread Jeff Anderson
Harish wrote: > Hi Friends, > > I configured a django site using apache, which is running on Fedora 9. > Now I want to enable the > HTTPS (secured ) service on that site > > Any ideas on how to achieve this? > Configure apache to do SSL-- no special setup needed for Django. signature.asc Desc

Re: Which IDE do you choose with django?

2008-10-12 Thread Jeff Anderson
zjffdu wrote: > I am a newbie of django, and want to know which IDE is suit for > django? > I'd say that it'd be good to continue using whatever IDE you use for your other Python development. Django is, after all, simply Python code that you call from your code. Jeff Anders

Picky Generic Views

2008-10-10 Thread Jeff Anderson
put our generic views in a separate python module (smug.genericurls for example)? We'd really rather use the generic views, but they seem a bit picky for some of the crazy stuff we're doing. If there's a way to turn that behavior off, great. If not, we can split it out. Thanks! J

Re: django cms outside of django

2008-10-06 Thread Jeff Anderson
there are plenty of examples and the like out there. Its pretty straightforward to do-- you just need to set your DJANGO_SETTINGS_MODULE to point to your settings, and write models/use inspectdb. The same type of thing is achieved when someone wants a cronjob to do something with their Django m

Django Hosting Survey

2008-10-06 Thread Jeff
is sufficient for most Django apps. I appreciate any thoughts or comments. Thanks! Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: django cms outside of django

2008-10-05 Thread Jeff Anderson
s, models, or urls. It was more like a traditionaly CGI script. You just need to import the appropriate Django libs in your Python script, and you are good to go. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: How to invoke a request to an URL inside a web app without making a real request?

2008-09-30 Thread Jeff Anderson
x27;ll get an response object back, and you can take the content of the response object, and do whatever you want with it. I ran into something similar and worked out how to implement it. I haven't actually done it yet, so I can't share any gotchas that might come up. Cheers! Jeff Ander

Re: HTTPS Question...

2008-09-30 Thread Jeff Anderson
SSL. There is also a middleware that exists so Django can handle the redirects. There are a few different incarnations of it here: http://www.djangosnippets.org/tags/ssl/ Hopefully this is what you need! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Integrating into PHP-based site...

2008-09-29 Thread Jeff Anderson
> No, you just need to make sure that the html code spit out by Django points to the proper location. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: how to get a magnifier in an image

2008-09-29 Thread Jeff Anderson
Kenneth Gonsalves wrote: > hi, > when I open a jpg file directly in firefox, I get a magnifying glass cursor, > which on clicking gives me a bigger more detailed image. The same file when > served through the get_photo_url in a django template does not give this - > how can I achieve this? >

Re: Integrating into PHP-based site...

2008-09-28 Thread Jeff Anderson
base, you can do that. Look in the Django documentation for "legacy db" stuff to get Django working with your existing tables. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: How to stop internal django server

2008-09-28 Thread Jeff Anderson
/init.d/httpd stop is just a wrapper script that uses the kill command. You need to do the same thing to kill any process. ctrl+c sends signal 2 to the running process. kill is exactly what you need to use. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: faking a cron job

2008-09-28 Thread Jeff Anderson
ve no way of knowing that it was doing something. If a cronjob is really what fits the bill, consider switching your hosting provider or plan to something that includes cronjobs-- its worth it to not be hackish. :) Jeff Anderson signature.asc Description: OpenPGP digital signature

Incorrect cache headers

2008-09-26 Thread Jeff
I have an application that is getting incorrect cache headers set, including pragma "no-cache". It is running via mod_apache without mod_expires or mod_cache. I am setting the upstream cache headers in the view with the cache_control decorator, which should override anything set by the framework

Re: User Login with Django 1.0

2008-09-25 Thread Jeff Anderson
jeffhg58 wrote: > I just recently upgraded to Django 1.0, but when I log in with users > that I have created I get up a popup window > stating syntax error and after I login the clock and calendar objects > are lost. > You'll need to be much more specific. Where are you logging in. What do you m

Re: actual django stack

2008-09-25 Thread Jeff Anderson
Frédéric Sidler wrote: > What it the best Django stack today. > > In django doc, it says that apache with mod_python is the best > solution in production. But in the same time I see that everyblock use > nginx (probably in mode fastcgi). > > Did you some of you test different solution and can share

Re: Sending HTML email

2008-09-23 Thread Jeff Gentry
On Tue, 23 Sep 2008, Berco Beute wrote: > But now I want to use HTML in the body of the email. How do I format > such a message and can I just send it like above? Emails should be plain text, not HTML ;) --~--~-~--~~~---~--~~ You received this message because yo

Re: where is my pythonpath

2008-09-20 Thread Jeff Anderson
his information is in nearly every python book available, and freely available on the internet. Try googling for "python path" and I'm sure this information would have come up in your search. This isn't even Django specific-- this is a python question. Cheers! Jeff Anderson s

Re: Help: Running 1.0 and 0.96 side by side?

2008-09-12 Thread Jeff Anderson
Matt Conrad wrote: > Thanks for the reply. I don't quite understand yet. Let's see how close I am. > > I have a Python application directory (on my machine, > C:\apps\Python25\). Inside that directory I have > \Lib\site-packages\django, which is currently v0.96. > > Right now, the PYTHONPATH envi

Re: Help: Running 1.0 and 0.96 side by side?

2008-09-12 Thread Jeff Anderson
Matt wrote: > Does anyone have ideas on running 0.96 and 1.0 side by side safely? > All I've done in the past is set my PYTHONPATH based on which checkout/release of Django I want used in a particular instance. It works quite well, even in production. Jeff Anderson signature.asc

Re: Need suggestions on subversion structure for project

2008-09-05 Thread Jeff FW
track of your settings, without having to worry about overwriting your production environment's settings (something none of us have ever done, right?) -Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread Jeff FW
Thank you all, yet again, for making it feel like the past decade or so that I've been using other languages/frameworks was completely wasted :-) Keep it up, please. -Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: First App: devel server - can't establish a connection to 127.0.0.1

2008-08-23 Thread Jeff Anderson
owhere near as convenient as the Django dev server. At least for initial developing of Django projects, I'd recommend you stick with the dev server-- it is there to help you be more productive and keep things from getting in your way. Hopefully this helps! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Composite Forms? Are widgets the right thing to use?

2008-08-22 Thread Jeff Anderson
get passed a value they don't need, they discard it. Simple as pie. Hopefully this is helpful! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: mas sobre unicodedecode erros RESUELTO!

2008-08-21 Thread Jeff Anderson
casos que requieren otron opciones, pero nunca he visto un projecto que lo usa. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: mas sobre unicodedecode erros

2008-08-20 Thread Jeff Anderson
do eso con algo más de Mysql? No sé si soporte unicode sqlite. ¿Sierve eso sin los opciones DATABASE_OPTIONS, o teine la misma problema? Disculpa mí español. No lo uso en la computadora mucho. ¡Graciás! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: status of unicode support in 0.96?

2008-07-21 Thread Jeff Anderson
tures, and less bugs than 0.96. It is also very near to 1.0 status. It would be silly to start with 0.96 and then have to rework all your code for 1.0 in the near future. Cheers! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Custom validation

2008-07-21 Thread Jeff FW
Sounds like you're looking at the oldforms documentation--that's all been deprecated. Read this instead: http://www.djangoproject.com/documentation/newforms/ Especially this part: http://www.djangoproject.com/documentation/newforms/#custom-form-and-field-validation -Jeff On Jul 2

Re: Field representation in n-f-admin

2008-07-18 Thread Jeff FW
difying it in the change view, then you might need something like (but not exactly) this: http://code.djangoproject.com/wiki/NewformsHOWTO#Q:HowdoIchangetheattributesforawidgetonasinglefieldinmymodel. -Jeff On Jul 17, 4:51 am, "Alex Rades" <[EMAIL PROTECTED]> wrote: > Hi, > I

Re: Modulo of 4 not working right

2008-07-16 Thread Jeff Anderson
e more, and 12 % 4 will evaluate to false. The 'good fix' is set up to do the logic all at once. Because modulo returns an integer, you can just set the number of blank fields to the number that modulo returns. Hopefully that helps! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Unique Case Sensitivity

2008-07-16 Thread Jeff FW
Check out: http://dev.mysql.com/doc/refman/5.0/en/case-sensitivity.html However, instead of dealing with it that way, you could also use this: http://www.djangoproject.com/documentation/db-api/#iexact -Jeff On Jul 16, 5:54 am, "Peter Melvyn" <[EMAIL PROTECTED]> wrote: > On W

Re: Quick question about switching to newforms-admin branch....

2008-07-16 Thread Jeff FW
y* helpful, but not the easiest to find. -Jeff On Jul 15, 4:55 pm, Jon Brisbin <[EMAIL PROTECTED]> wrote: > I assumed that trunk would be moving in the newforms-admin direction,   > so I've switched already. I would rather do it now than have to   > backport stuff later... &

Re: Help with Forms (Dynamic Fields)

2008-07-16 Thread Jeff FW
rgs) Also, I'm not sure if you modified your view, but you have to pass request.POST when you instantiate the form in order for that to actually work. -Jeff On Jul 16, 6:01 am, Srik <[EMAIL PROTECTED]> wrote: > Hi Jeff, > > I did try to move __init__ but the problem still exists.

Re: Help with Forms (Dynamic Fields)

2008-07-15 Thread Jeff FW
to the form dynamically--might as well put them in the MyForm class definition. Unless you're planning to upload files, you don't need the enctype attribute in the form tag. -Jeff On Jul 15, 9:54 am, Srik <[EMAIL PROTECTED]> wrote: > Hi Djangoers, > > I'm trying to

Re: .pyc files not being created

2008-07-15 Thread Jeff Anderson
time. You would see a huge slowdown if you were using python to run cgi, and python had to load itself into memory, compile the code, and run it for each and every request. Fortunately with mod_python, this isn't the case. Hopefully this makes a little more sense now. Cheers!

Re: Root Access

2008-07-14 Thread Jeff Gentry
> I don't think that is true, the only time I needed root was when I was > symlinking django into /usr/lib/python2.5/site-packages/ but since you I've run Django on machines w/ no root access and nothing special installed for me. Granted I've been running off of non-standard ports, but ... --~

Re: Inquiry

2008-07-14 Thread Jeff Anderson
s: Python has them. If you are asking about urls in Django, I suggest you read through the tutorial in the official Django documentation. Good luck! Jeff Anderson PS - instead of replying to an existing thread and changing the subject, it is better to start your own thread. Your message is in

Re: modify select widget

2008-07-13 Thread Jeff FW
Misspoke in that last post--if you want a select tag, obviously you won't be using li tags. You'd use option tags, and maybe throw in some text in front of each option to indicate the level. Everything else still applies the same. -Jeff On Jul 12, 11:57 am, Nenillo <[EMAIL PROT

Re: modify select widget

2008-07-13 Thread Jeff FW
the nodes, making sure to save what "level" each particular node is at. You can then output that in a template, using the level to set each li's class. Let me know if you need more help--I can send some code if you want, though I can't promise it's very good :-) -Je

Re: Updating Database Schema

2008-07-12 Thread Jeff Anderson
server with lots of data. You have a few options: * issue the alter table command yourself * drop the table altogether and run syncdb again * check out the django-evolution project on google code. I haven't used it, but it is designed to handle just this. Good Luck! Jeff Anderson

Re: XML and django

2008-07-10 Thread Jeff Anderson
and run with it. Jeff Anderson signature.asc Description: OpenPGP digital signature

<    1   2   3   4   5   6   7   >