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

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

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

Model Save with Updated Foreign Key

2009-02-02 Thread Jeff
pkey" Now the problem here is that if I try: select * from finance_ceo where industry_id is not null; I get 0 rows in either case. But the industry row is there: select * from finance_industry; yields: 1 | Commercial Banks So what's wrong with the lines: ceo.industry = industry

Re: Model Save with Updated Foreign Key

2009-02-02 Thread Jeff
Nevermind. I had overriden the get_query_set with a custom manager that only returned a subset of the CEOs. Word to the wise. On Feb 2, 1:04 pm, Jeff wrote: > So I have two models a CEO model: > class Ceo (models.Model): >     first_name = models.CharField(max_length=63) >  

mod_python and import path

2009-02-07 Thread Jeff
I installed django today and have not been able to get it to work with apache, or itself really. I have the path in the sys.path and have set the settings module to point to it, but it cannot find it. It works fine when I use 'python manage.py shell' or 'python manage.py validate' but when I exp

Re: mod_python and import path

2009-02-08 Thread Jeff
On Feb 8, 4:29 am, Bradley Wright wrote: > On Feb 8, 4:39 am, Jeff wrote: > > > I installed django today and have not been able to get it to work with > > apache, or itself really.  I have the path in the sys.path and have > > set the settings module to point to it, bu

Re: mod_python and import path

2009-02-08 Thread Jeff
On Feb 8, 9:52 am, Karen Tracey wrote: > On Sun, Feb 8, 2009 at 9:44 AM, Jeff wrote: > > On Feb 8, 4:29 am, Bradley Wright wrote:> > > > And if you're really using mod_python already with Apache, also post > > > your vhost file. > &

New password does not authenticate

2009-02-19 Thread jeff
' When I run this and then try to login with the username and new password, it fails. Adding the print statements, I find that check_password() works correctly, but authenticate() fails. Thanks for any help. Jeff --~--~-~--~~~---~--~~ You received this message b

Re: New password does not authenticate

2009-02-19 Thread jeff
Yup, obvious. Python newbie forgets the () again. Thanks. On Feb 19, 10:43 am, Alex Gaynor wrote: > On Thu, Feb 19, 2009 at 1:36 PM, jeff wrote: > > > OK, I know I'm missing something obvious here in my basic "Reset > > Password for Forgetful User" form: &g

Modifying the default admin edit page for Sites

2009-02-25 Thread jeff
Is there a good way to modify what fields are displayed on the edit page for a site (from django.contrib.sites)? I want to have the page include inline editing for a model that has a ForeignKey to Sites. Is there a way to change the django.contrib.admin.ModelAdmin class for the Site model? Do I h

Re: Modifying the default admin edit page for Sites

2009-02-25 Thread jeff
Worked like a charm. Thank you! On Feb 25, 6:07 pm, Alex Gaynor wrote: > On Wed, Feb 25, 2009 at 9:03 PM, jeff wrote: > > > Is there a good way to modify what fields are displayed on the edit > > page for a site (from django.contrib.sites)? I want to have the page > >

Problems specifying fields for admin inline

2009-02-25 Thread jeff
I'm trying to modify the default Site admin page to include an inline model. Everything seems to be working fine except that no matter what I try I can't get it to limit the fields displayed in the inline. When I go to the site edit page in the admin, it shows the standard site fields as it should

Re: Problems specifying fields for admin inline

2009-02-25 Thread jeff
Wow, that's much simpler. They should list that option on the admin documentation page. Many thanks! On Feb 25, 10:58 pm, Alex Gaynor wrote: > On Thu, Feb 26, 2009 at 1:51 AM, jeff wrote: > > > I'm trying to modify the default Site admin page to include an inline > >

Users suddenly becoming inactive?

2009-03-07 Thread jeff
ntication views that come with Django, but I am using the standard user class functions. Is there something subtle about users and authentication that not aware of that might explain this? I'm explicitly setting a new user to active when they are created: new_user.is_active = True new_user

Re: Users suddenly becoming inactive?

2009-03-07 Thread jeff
Figured it out. I had a model form that included is_active as a field, but that field was not being displayed in the form for regular users. It was evidently unsetting the value. On Mar 7, 5:08 pm, Malcolm Tredinnick wrote: > On Sat, 2009-03-07 at 10:12 -0800, jeff wrote: > > I&

ModelForm for User allowing username with non-alpha characters

2009-03-14 Thread jeff
I have the ModelForm below to let the user edit some of their basic User fields like username, first/last name and email. During testing, I discovered that I could edit and save a username that included non- alpha characters. When I log into the admin system, the username is set to the new value

Re: Change default queryset in admin for a model

2009-07-19 Thread jeff
/docs.djangoproject.com/en/dev/topics/db/models/#id6. If you really need to restrict the queryset for the model admin's list page, then yes, you can override the default queryset method defined in ModelAdmin just as the link describes. jeff On Jul 19, 12:40 pm, Some Guy wrote

Practical Django Projects Chp. 3: TinyMCE won't appear in admin

2009-08-05 Thread Jeff
I have installed TinyMCE to my machine but I cant get it to appear in my admin screen. I am working through "Practical Django Projects" by James Bennett chapter 3. I am using windows not Linux so sometimes my errors are simply forward vs. backwards slashes but it doesn't appear to be the issue thi

Django searching for admin template in admindocs directory

2009-08-30 Thread Jeff
ts.middleware.RedirectFallbackMiddleware', 'django.middleware.http.ConditionalGetMiddleware') Template Loader Error: Django tried loading these templates, in this order: Using loader django.template.loaders.filesystem.load_template_source: /home/jeff/projects/osl/oslaurier/templates/adm

Re: Django searching for admin template in admindocs directory

2009-08-30 Thread Jeff
Thank you very much, adding it did the trick. Not sure how I missed that. On Aug 30, 4:39 pm, Alex Gaynor wrote: > On Sun, Aug 30, 2009 at 4:33 PM, Jeff wrote: > > > Hi, > > > I'm a Django newbie and have run into a Template Not Found error when > > setting up t

Problems trying to use jinja2

2009-08-31 Thread Jeff
Hi, I seem to have run into a problem trying to use the jinja2 template language. I've tried using Mitsuhiko's snippet (http://bitbucket.org/ mitsuhiko/jinja2-main/src/c07588cf115f/ext/djangojinja2.py) and this other one by Joe Vasquez (http://jobscry.net/downloads/jinja_r2r.txt) where I had to c

Re: Problems trying to use jinja2

2009-08-31 Thread Jeff
Alright, I found this: http://code.djangoproject.com/ticket/10216 which explains the cryptic error message. The fix is to disable TEMPLATE_DEBUG. On Aug 31, 2:44 pm, Jeff wrote: > Hi, > > I seem to have run into a problem trying to use the jinja2 template > language. I&#x

Using a base for multiple settings files

2009-04-28 Thread jeff
I'm trying to get multiple sites to play nice side by side. It makes sense to me to have a base_settings.py file or something of the sort that defines sensible defaults for all the sites I'll be working with (they'll all share the same database and e-mail settings, for example). Then each of the s

Re: View method + template

2009-04-28 Thread jeff
solution is simply to take out the second condition in that statement, so it reads "if 'q' in request.GET:" ... then the next if statement ("if not q:") takes care of testing whether you entered an empty string. Hope it helps jeff On Apr 28, 1:32 am, 83nini <83n...

ManyToMany query on all()?

2009-04-30 Thread jeff
hors for a single entry. 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 django-users@googlegroups.com To unsubscribe from this group, send em

offline population of django auth user table

2009-05-02 Thread Jeff
I'm using Django's authentication. I would like to add several users through a command-line script (not through code executed via the website). Something like manage.py createsuperuser but for normal users and not interactive. I want to be able to put code like this in a script I can run offlin

Re: offline population of django auth user table

2009-05-04 Thread Jeff
Thanks to both of you, both of these answers were very helpful. Jeff On May 2, 10:26 am, Malcolm Tredinnick wrote: > There are a couple of different solutions to this problem. Ultimately, > it comes down to providing the necessary information so that Django can > use your settings to

How to get multiple test cases to work with manage.py test?

2009-10-17 Thread Jeff
Hi, I'm fairly new to Django and unittest and I seem to be having a problem getting manage.py to execute all of my tests. I can only get it to execute one test at a time by specifying the test method. When I just specify the TestCase class expecting it to execute all of the test methods, it won't

Re: How to get multiple test cases to work with manage.py test?

2009-10-18 Thread Jeff
I did not realize that was the case with the xUnit APIs. Thank you so much for your help. On Oct 18, 9:47 am, Russell Keith-Magee wrote: > On Sun, Oct 18, 2009 at 11:49 AM, Jeff wrote: > > > Hi, > > > I'm fairly new to Django and unittest and I seem to be having a >

Bad Marshal Data error

2009-10-31 Thread Jeff
Hi, I'm getting the following error when I run "python manage.py", "python manage.py runserver", or "python manage.py shell" in my project's directory: Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/usr/lib/python2.6/site-packages/djang

Re: Bad Marshal Data error

2009-11-01 Thread Jeff
That did the trick, thank you! On Nov 1, 6:52 am, Karen Tracey wrote: > Try deleting all your .pyc files and it might go away. > > Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

difficulty with 1.2 CSFR processing

2010-04-26 Thread jeff
so i have some views and forms done without using the CsrfViewMiddleware. now i am converting to a 1.2 project using this middleware. read the doc, looked for examples, still can't process the POST function from my form. the example i have is very simple. hoping for someone who knows this to take

QuerySet Behaviour Question (Django 1.1)

2010-06-28 Thread Jeff
Hi, I have a question concerning some queryset behaviour in Django 1.1. In this example, I have an article model that can contain 1 or more authors who are users registered through Django's auth system. I get the following output when playing around with an article in a shell where I have three

Re: QuerySet Behaviour Question (Django 1.1)

2010-06-28 Thread Jeff
Yes I am using PostgreSQL and I didn't add an order by clause. Adding the order by clause fixed the problem. Thank you very much Karen! Jeff On Jun 28, 10:46 am, Karen Tracey wrote: > On Mon, Jun 28, 2010 at 10:37 AM, Jeff wrote: > > Hi, > > > I have a question c

doctests not running

2010-07-10 Thread Jeff
Hi, I have a rather complicated get_absolute_url method in a models.py file that I wanted to use two doctests to check. Unfortunately the doctests do not appear to run when I run python manage.py test according to the verbose output. Here is the method: def get_absolute_url(self): ""

Re: doctests not running

2010-07-10 Thread Jeff
n 7 items. 4 passed and 0 failed. Test passed. TestResults(failed=0, attempted=4) So the problem appears to be with the Django test runner not adding the doctests to the test suite it runs. I'm still not sure how to fix this issue unfortunately. On Jul 10, 9:50 pm, Jeff wrote: > Hi, &g

Re: doctests not running

2010-07-10 Thread Jeff
4 """ self.content = markdown.markdown(self.markdown_content) super(Flatpage, self).save(force_insert, force_update) and here is the new test output: Installed 6 object(s) from 1 fixture(s) Doctest: osl_flatpages.models.Flatpage ... ok Doctest: osl_flatpages.mod

NotImplementedException when trying to log user in after registration

2010-07-22 Thread Jeff
te_account.html', { 'form': form, }, context_instance=RequestContext(request)) And here is the stack trace: File "/home/jeff/.virtualenvs/osl_main-website/lib/python2.6/site- packages/django/core/handlers/base.py" in get_response 100. res

Re: NotImplementedException when trying to log user in after registration

2010-07-23 Thread Jeff
xception > > (code > =http://code.djangoproject.com/browser/django/trunk/django/contrib/aut... > ) > > On 22 July 2010 23:33, Jeff wrote: > > > > > Hi, > > > I get a NotImplementedException when I try to log a user in right > > after they register. &g

Trying to delete all entries results in an AttributeError

2010-10-17 Thread Jeff
g wrong? Full stacktrace: >>> Comment.objects.all().delete() Traceback (most recent call last): File "", line 1, in File "/home/jeff/.virtualenvs/osl_main-website/lib/python2.6/site- packages/django/db/models/query.py", line 441, in delete obj._collect_sub_objects(seen_

Re: Pre-filled user info in Django Comments?

2010-12-10 Thread Jeff
My site takes the route of hiding name, email, and URL fields for authenticated users. You can safely serve up a form without the name field for authenticated users since the comments framework will just copy over either the user's full name if it's set or their username if it isn't for the commen

Can't get Uploaded File into DictReader

2010-02-09 Thread jeff
ame" except Exception, e: print e else: form = ImportFileForm() return render_to_response('admin_import_from_excel.html', {'form': form,}, RequestContext(request) ) Thanks in advance for any assistance. Jeff -- You received this messa

Re: Can't get Uploaded File into DictReader

2010-02-27 Thread jeff
Thanks for the feedback. The bit about it being iterable put me on the right track and it turned out to be pretty simple. For the benefit of others, here's the basic code to select a CSV file on the local machine and process it on the server using DictReader to manage the columns: FORM: class I

form object has no attribute 'cleaned_data'

2010-03-31 Thread jeff
so i've searched high and low on this error. lots of answers about having used old versions of django. i did this: j...@earth:/home/samba/raymour/v1/rrsite$ django-admin.py --version 1.1.1 then a lot of stuff about python path having been done with an easy installer and having an 'egg' in it. doe

Throwing error in admin using ManyToManyField(Site)

2007-07-16 Thread Jeff
ts. Does anyone have any ideas? I don't see anything relevant on the django bug tracker. Jeff --- Models --- class Sport(models.Model): sport_name = models.CharField(maxlength=50, unique=True) def __str__(self): return self.sport_name class Admin: save_on_top = T

Re: Throwing error in admin using ManyToManyField(Site)

2007-07-16 Thread Jeff
Another note: if I comment out 'sites = models.ManyToManyField(Site)' from Team, it loads fine. The same if I use it as a ForeignKey field. I'm using the latest stable, 0.96. On Jul 16, 11:01 am, Jeff <[EMAIL PROTECTED]> wrote: > I'm throwing an error when loadi

Re: Throwing error in admin using ManyToManyField(Site)

2007-07-16 Thread Jeff
SOLVED Apparently, making a call to Site.objects.get_current() in your models.py throws an error when loading a module in Admin. Anyone have an idea why? On Jul 16, 12:14 pm, Jeff <[EMAIL PROTECTED]> wrote: > Another note: if I comment out 'sites = models.ManyToManyField(Site)&#x

Re: Updating multiple rows with Django DB API?

2007-07-20 Thread Jeff
cursor.commit() On Jul 15, 9:12 pm, "Steven Hilton" <[EMAIL PROTECTED]> wrote: > On 7/15/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > > > On 7/14/07, Steven Hilton <[EMAIL PROTECTED]> wrote: > > > I could be updating any number of rows in bar. I want to do this > > > without do a select on

Re: How popular is Django ?

2008-02-12 Thread Jeff
Django is so popular that it barely even notices me. It walks right by me and sits with the popular kids in the lunch room. It even sits at the back of the bus. Yesterday, Django took my lunch money. On Feb 12, 6:00 am, tom <[EMAIL PROTECTED]> wrote: > How popular is Django among other Python

Re: Raising exception when a template objects is not present or raise s exception.

2008-02-12 Thread Jeff
You can't raise an exception from a template short of writing a custom template tag that would raise an uncaught exception. It is a better practice to put that kind of logic in your model or view. On Feb 12, 2:40 pm, shabda <[EMAIL PROTECTED]> wrote: > I want my template to raise exception, when

Re: Weird caching issue

2008-02-12 Thread Jeff
Does it happen with all cache backends? On Feb 12, 3:14 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Upon further investigation, it appears the feeds framework is not the > involved. Even getting a plain page I hit the same problem. As soon as > I make the call from the external site the

Trouble Running Tutorial when running syncdb first time on Mac OS X

2008-06-10 Thread jeff
'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. DATABASE_NAME = '/Users/jeff/django_tutorial/mysite/mydb' # Or path to database file if using sqlite3. when I run, python manage.py syncdb I get the following python traceback: --

django having a foreign key from a field in one database to another

2008-06-19 Thread Jeff
able2 class Table1(models.Model): id = models.AutoField(primary_key=True) brand = models.ForeignKey(Table2, db_column='brand') class Meta: db_table = 'Table1' your help is much appreciated. -Jeff --~--~-~--~~~---~--~~ You received

Re: a way to find out which page (as determined by the paginator) that a specifc object occurs on?

2007-04-16 Thread jeff
hi scanner, i hope i understood correct... i have an newsitem apps with comments, the comments are paginated by 50. this is my get_absolute_url() for the comments: def get_absolute_url(self): comment_ids = [c.id for c in self.newsitem.comment_set.iterator()] comment_ids.rev

Re: context sensitive menus

2007-04-30 Thread Jeff
Are you doing this in Django admin or in a regular view/template? Jeff On Apr 30, 8:41 am, "5264277-ew5264277" <[EMAIL PROTECTED]> wrote: > Hi, > > I am fairly new to Django, so this may be an easy question. > > I have an app where I have a team member table

Re: context sensitive menus

2007-05-01 Thread Jeff
Director, > 4A Solutions > > Office : +44(0)1257 268351 > Mobile: +44(0)7841 340 608 > email: [EMAIL PROTECTED] > > veritas vos liberabit -- The truth will set you free > ==== > > -- Original Message --- >

Re: django-tagging and admin pages

2007-05-11 Thread jeff
> Could you verify that the TagField doesn't sync the list when you > remove tags? i can verify that too. if i delete a tag the taggeditems are deleted but the tagsfield is not updated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Returning a list of entries associated with a tag (using django-tagging)

2007-05-25 Thread jeff
Hi, you could use the related_for_model function in your view: tag = Tag.objects.get(pk=1) assoc_entries = Tag.objects.related_for_model(tag, BlogEntry) On 25 Mai, 18:56, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm trying to write a view to return a list of blog entries associated > wi

Need to examine and act on old vs. new at .save() time

2012-01-10 Thread Jeff
Hi all, I need to be able to determine, at .save() time (before I call the parent class' .save()), if a certain field on my model object was changed, and act on that via some custom code. How can I do this, bearing in mind that we call .save() from non-web code, etc? We use Django's ORM from var

Re: Need to examine and act on old vs. new at .save() time

2012-01-10 Thread Jeff
.save()), ... I need to know how to, in my custom .save() for a model: a) determine what fields changed (if any) (HOW?) b) and take certain actions if field X was one of the changed fields. (I know how) > On Mon, Jan 9, 2012 at 11:39 PM, Jeff wrote: > > Hi all, > > > I need to

Re: Need to examine and act on old vs. new at .save() time

2012-01-10 Thread Jeff
On Jan 10, 10:09 am, Nahuel Defossé wrote: > I think you should see at the forms's cleaned_data attribute and > compare it against the model current state, before saving. As I indicated in the 1st post: > >> > I need to ... ... > >> > How c

Re: Need to examine and act on old vs. new at .save() time

2012-01-10 Thread Jeff
On Jan 10, 10:42 am, Kelly Nicholes wrote: > Isn't there a form.changed_data ? See 1st post below indicating we manipulate Django data from various Django codebases, not just a web form. > > I need to.. ... How > > can I do this, > > beari

Re: Need to examine and act on old vs. new at .save() time

2012-01-10 Thread Jeff
For example, altering 'pana.our.org''s netgroups field, the following save() method results in this debug line which makes no sense to me: CHANGED: Device pana.our.org had old netgroups [{'name': u'testnetgroup', 'desc': u''}] and now has new netgroups [{'name': u'testnetgroup', 'desc': u''}]

Re: Need to examine and act on old vs. new at .save() time

2012-01-10 Thread Jeff
Sigh. I hate Google Groups via web. Here is a readable version of the .save() method below. https://gist.github.com/1591028 On Jan 10, 3:15 pm, Jeff wrote: > For example, altering 'pana.our.org''s netgroups field, the following > save() method results in this debug line

Re: Need to examine and act on old vs. new at .save() time

2012-01-11 Thread Jeff
Matt, On Jan 10, 5:57 pm, Matt Schinckel wrote: > The way I generally do this type of thing > is:https://gist.github.com/1591723 Thanks for the reply! This looked awfully similar to my logic (although yours is 10x more clean), but I was excited to implement it this morning. After doing so, I a

Re: Need to examine and act on old vs. new at .save() time

2012-01-11 Thread Jeff
On Jan 11, 10:03 am, "hanks...@gmail.com" wrote: > I go about this a different way, which is to monkeypatch the object > with the relevant initial values at __init__: > > https://gist.github.com/1595055 > > Saves you a database call. But is costly when the field in question is foreign, no? Mine'

Re: Need to examine and act on old vs. new at .save() time

2012-01-11 Thread Jeff
On Jan 11, 11:59 am, Andre Terra wrote: > The important question here is, what are you trying to achieve, outside of > the functionality itself? Are you trying to log changes to provide an audit > trail? If so, there are tools for that. I wish that's all I was doing. Then again, I also wish Goog

Re: Need to examine and act on old vs. new at .save() time

2012-01-11 Thread Jeff
I've just found that the problem is related to my desired field being M2M. Anyone know what is going on here? :( My approach (and Matt's) works fine on a simple CharField field. class Device(models.Model): # ... floor = models.CharField('Floor', max_length=10, blank=True) # ... Devi

Re: Need to examine and act on old vs. new at .save() time

2012-01-12 Thread Jeff
On Jan 11, 9:23 pm, Dennis Lee Bieber wrote: > On Wed, 11 Jan 2012 17:26:44 +, Tom Evans > wrote: > > >On Wed, Jan 11, 2012 at 5:22 PM, Jeff wrote: > >> When Device.netgroups (a M2M field) changes, we need to perform > >> some python-ldap operations. >

Re: Need to examine and act on old vs. new at .save() time

2012-01-13 Thread Jeff
ciated properly. If I just click 'save' then it reports what it should have reported when I made the new netgroup all along: DEBUG LOG: Existing netgroup in LDAP: mynewnetgroup saving interfaces as ['(agilent,,)', '(agilent.our.org,,)', '(ape,,)', '

Problem with auto tests Get an error creating the test database: (1044, "Access denied for user 'viewbank_django'@'localhost' to database 'test_viewbank_django'")

2012-12-29 Thread Jeff
erver that will only allow me to create a database prefixed with viewbank_. Using the MYSQL client I can create viewbank_django_test or any variation I like as long as it starts with viewbank_. Is there a way to change the way django names the test database? Thanks in advance Jeff -- You received thi

Re: Problem with auto tests Get an error creating the test database: (1044, "Access denied for user 'viewbank_django'@'localhost' to database 'test_viewbank_django'")

2012-12-30 Thread Jeff
is not destroyed by the script when it finishes running. So while not perfect it does seem to work ok. Again thanks Jeff On Sunday, December 30, 2012 3:02:25 AM UTC+8, Ryan Blunden wrote: > > Hey Jeff, > > There sure is. Just specify a "TEST_NAME" key in the database >

UI Engineer with Django @ Very Early Stage Startup

2013-06-12 Thread jeff
http://www.collegefeed.com/cf/featured-jobs/ *Entry Level UI Engineer @ Zubhium* *About Us:* We're a passionate team of accomplished mobile technologists building a mobile app framework that

Looking for remote python/django software engineers

2015-04-06 Thread Jeff
If this post is not allowed, please delete. Thanks I lead a development team that uses django and python to build an online web portal. I am looking for additional help short or long term, if you are **very comfortable with all of the following skills** please let me know and send your resume/

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: 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: 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: 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: 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: 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: 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-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: 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: 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: 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: 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: 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

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: 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,

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

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: 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

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
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-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: 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: 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: 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 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

  1   2   3   4   5   6   7   >