Error -- 'str' object has no attribute 'creation_counter'

2009-06-22 Thread Phil
(admin.TabularInline): model = plantGenus class plFamAdmin(admin.ModelAdmin): inlines = [plGenIn,] I'm sure I had this working before, but since then I have installed the composite primary key patch and I notice the 2nd to last traceback is in class CompositePrimaryKey... Could this

Re: Error -- 'str' object has no attribute 'creation_counter'

2009-06-23 Thread Phil
n the main release. However, as neither my main table or the foreign key table had composite primary keys, why did the code use this class? Phil On Jun 24, 1:02 am, Karen Tracey wrote: > On Tue, Jun 23, 2009 at 2:02 AM, Phil wrote: > > I'm sure I had this working before, bu

Re: Error -- 'str' object has no attribute 'creation_counter'

2009-06-23 Thread Phil
as caused by the patch. But reverting to the base release also fixed the Inlines issue that I raised in the first place. It seems the composite foreign key patch needs some work Phil On Jun 24, 11:07 am, Phil wrote: > OK thanks Karen, so the patch is the cause, foreign key filters now > wor

Re: syncdb is not doing anything

2009-07-06 Thread Phil
x27;t change a thing if you run in after model changes, but it does for the new models. Cheers, Phil On Jul 6, 3:17 pm, chefsmart wrote: > Hi, > > I have been working on an app for some time now. I have been using the > Django svn trunk. > > I have a lot of data in the database. Today

Re: Problem with Reverse

2009-07-06 Thread Phil
Hi, agree with that - does it work if you go through the url first? Cheers, Phil On Jul 6, 3:21 am, Karen Tracey wrote: > On Sat, Jul 4, 2009 at 11:44 PM, tam...@gmail.com wrote: > > > Hi, > > > I am trying to decouple my views.py with respect to my url.py but I > &g

Model save() weird behaviour

2009-07-16 Thread Phil
as expecting to have: fulltitle = 'QWERTY' title = 'sampletext' so - does it mean that i pass reference to an existing object, not a value? Do i miss some fundamental thing about Django? :) Cheers Phil --~--~-~--~~~---~--~~ You

Re: email as username, issue with admin page

2009-07-16 Thread Phil
Hi, as a simple idea you may overcome that by prompting user to enter email and then generate username for a User model, if you mean it, yourself. Of course you can leave option to enter username, but leave email as required or allow to enter any of those in the same field. Kind of 'slugify' will

Re: usernames for auth.User are too restrictive for my company's clients

2009-07-16 Thread Phil
generate username yourself using, say, email or both email or username, etc. Cheers, Phil On Jul 16, 5:50 am, "Andrew D. Ball" wrote: > Good afternoon. > > Here's the username field from the latest Django trunk's > django.contrib.auth.models module: > > u

Re: Model save() weird behaviour

2009-07-16 Thread Phil
i've entered 'QWERTY' title1 = str(self.title) self.fulltitle = title1 #fulltitle = title = 'QWERTY' self.title = 'sampletext' super(Page, self).save() Thanks for that correction, Cheers, Phil On Jul 16, 9:50 pm, Karen Tracey

Re: Current user in model.save() context

2009-07-16 Thread Phil
.user = request.user newObj.save() --- Cheers, Phil On Jul 17, 7:19 am, Joshua Russo wrote: > I think I might be overlooking something simple here. I have a set of > 4 fields in almost every table (user create & modified and date create > & modified). The date (datetime) is

Re: Model save() weird behaviour

2009-07-20 Thread Phil
anyone? any ideas? :) On Jul 17, 11:00 am, Phil wrote: > oh, sorry for that - exampling mistake, should be: > > class Page(models.Model): >     title = models.CharField(_(u"Title"), max_length=50) >     fulltitle = models.CharField(_(u"Full Title"), m

Re: Model save() weird behaviour

2009-07-22 Thread Phil
Thanks Brian, 'QWERTY' goes from the form entry here...but that's not important as issue is located somewhere else, precisely save is called twice... apologise for that Cheers, Philip On Jul 21, 2:52 pm, Brian May wrote: > On Thu, Jul 16, 2009 at 04:09:36AM -0700, Phil wrot

Help with the url template tags

2009-08-28 Thread Phil
Guys, I have this error in my template when rendering my view: "Caught an exception while rendering: Reverse for 'entry_archive_month' with arguments '()' and keyword arguments '{'month': 8, 'year': 2009}' not found." I've starred at my code for too long and I can't see where the problem lies. I

MySQL with pyodbc error

2009-05-15 Thread Phil
perlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb Is there replacement code for pyodbc to get this working? Cheers Phil --~--~-~--~~~---~--~~ You rece

Complex Query Optimization

2009-09-12 Thread Phil
I am trying to minimize the database hits. Take this example... from django.contrib.auth.models import User class Group(models.Model): # a bunch of fields here user = models.ForeignKey(User, related_name="groups") class Member(models.Model): # a bunch of fields here user = model

trouble creating first project

2010-10-10 Thread Phil
Hi, I am having trouble creating my first project. I am running the latest version of Ubuntu and I installed Django from svn, when I run 'import django' i get no errors back so I assume its installed OK. When I run 'django-admin.py startproject myproject' I get back an error saying 'django-admin.

Re: trouble creating first project

2010-10-12 Thread Phil
ut I'm not sure what "/usr/local/bin" is supposed to point to or what path should this be exactly? On Oct 11, 6:20 pm, Steve Holden wrote: > On 10/11/2010 1:47 AM, Phil wrote:> Hi, > > > I am having trouble creating my first project. I am running the latest > >

django i18n and google bots

2007-05-02 Thread Phil
/fr/ and http://www.mysite.com/path/to/url/en/) or something equivalent ? Phil. --~--~-~--~~~---~--~~ 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@google

Re: django i18n and google bots

2007-05-02 Thread Phil
I have indeed access to my logs, I'll check that and let you know. Many thanks Malcolm. On May 2, 10:32 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2007-05-02 at 08:16 +, Phil wrote: > > Guys, > > > I use the i18n framework of django to

Re: django i18n and google bots

2007-05-02 Thread Phil
o > > that suffers the same problem and it was a design decision to use > > googlebot-friendly urls. > > Eugene > > > On 2 май, 12:16, Phil <[EMAIL PROTECTED]> wrote: > > > > Guys, > > > > I use the i18n framework of django to offer my site

Re: FastCGI shared hosting

2007-11-26 Thread Phil
In case your hoster is dreamhost, please consider changing your "app.fci" to "dispatcher.fcgi". Dreamhost is known to do special stuff when the fcgi is named that way. On Nov 22, 6:31 pm, Dwarf <[EMAIL PROTECTED]> wrote: > Hello, > the problem is getting to be annoyed. > I have shared django host

Re: template and special character problem

2006-09-19 Thread Phil
I finally nailed it ! For some strange reason my editor did not save the index.html template in utf8. I've reloaded both template in another editor, force to save in utf-8 and all went well. Thanks to all for the support. Jorge Gajon wrote: > On 9/18/06, Phil <[EMAIL PROTECTED]>

Re: Fast fcgi on dreamhost --> shauwn of the dead, help me shoot zombies

2006-12-04 Thread Phil
confident. But now, it runs smoothly since. A great thanks. Phil. On Dec 3, 4:37 pm, "Maciej Bliziński" <[EMAIL PROTECTED]> wrote: > coulix napisał(a): > > > Any idea on how to fix these problems on dreamhost?I'm not sure if what > > you're currently

Re: Fast fcgi on dreamhost --> shauwn of the dead, help me shoot zombies

2006-12-07 Thread Phil
Yes, me too It failed twice since Monday morning. )c: But 'happily', it is not a mission critical site, so I can afford to have some downtime from time to time. Which you luck. Phil. On Dec 6, 11:43 pm, "coulix" <[EMAIL PROTECTED]> wrote: > I did the rename trick

template and special character problem

2006-09-12 Thread Phil
emplate that extends base.html. In this template, I also have accentuated character. When I render index.html, the special character from base.html are rendered normaly but the ones from index.html are shown as '?'. Anyone has an idea where I need to look ? Phil. --~--~-~--~~

Re: template and special character problem

2006-09-16 Thread Phil
s seems to solved my problem but leave my html output with several 'content-type' meta which is not that good and not that bad. I plan to debug this to see why Django doesn't seem to know what is the encoding of the index.html template. Jorge Gajon wrote: > Hi, > > On 9/12/

Re: template and special character problem

2006-09-16 Thread Phil
Now that I think of it, I use the same editor for all of my templates, so I doubt that this is the root cause. Jorge Gajon wrote: > Hi, > > On 9/12/06, Phil <[EMAIL PROTECTED]> wrote: > > When I render index.html, the special character from base.html are > > rendere

Re: template and special character problem

2006-09-18 Thread Phil
: > On 9/16/06, Phil <[EMAIL PROTECTED]> wrote: > > In the base.html template I added in the section a {% block > > extrahead %}{% endblock %}. > > And in the index.html template I added {% block extrahead %} > http-equiv="content-type" content=&

multiple valuesfor keyword arguement 'prefix'

2012-02-16 Thread Phil
es/django/core/urlresolvers.py" in _get_urlconf_module 274. self._urlconf_module = import_module(self.urlconf_name) File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module 35. __import__(name) File "/home/phil/mydev/projects/

django-admin.py makemessages issue

2012-07-12 Thread Phil
Hi, (django version 1.3.1, Python2.7) (at the end of my settings file) # translation support ugettext = lambda s: s LANGUAGES = ( ('en', ugettext('English')), ('es', ugettext('Spanish')), ('de', ugette

Re: django-admin.py makemessages issue

2012-07-12 Thread Phil
Python2.7) > > > > (at the end of my settings file) > > > > # translation support > > ugettext = lambda s: s > > > > LANGUAGES = ( > > ('en', ugettext('English')), > > ('e

Re: django-admin.py makemessages issue

2012-07-12 Thread Phil
Now I'm getting the following error... Error: errors happened while running xgettext on __init__.py /bin/sh: 1: xgettext: not found It creates the right folders, but no .mo files. On Thursday, July 12, 2012 7:13:14 PM UTC+1, Phil wrote: > > ugh, that would explain it! Thanks

model translationissue

2012-07-12 Thread Phil
le "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in _get_urlconf_module 274. self._urlconf_module = import_module(self.urlconf_name) File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module 35. __import__(name)

html compress advice

2012-07-26 Thread Phil
Hi, Just looking for some advice/ wisdom really. I have compressed my css/js files and am now looking to strip all the white space from the html in the templates to help speed things up as much as possible. Is putting my hole base.html file between django's "spaceless" template tag an ok way o

Re: html compress advice

2012-07-26 Thread Phil
ah, thank you. I'll take a look now. On Thursday, July 26, 2012 10:34:49 PM UTC+1, mhulse wrote: > > Hi, > > > Just looking for some advice/ wisdom really. > > While not a direct answer to your question, there was a discussion on > the group recently on the topic of the spaceless tag: > > "{%

setting up Django Compressor

2012-08-31 Thread Phil
Hi, Django1.4, Python2.7 I am currently trying to get django compressor to work locally, I installed django_compressor via pip install earlier, added it to my installed apps. Here is a copy of my base template {% load i18n %} {% load compress %}

Re: How sitemaps used in the Django

2012-08-31 Thread Phil
Hi Mugdha, First add 'django.contrib.sitemaps' to your installed apps. Then create a file "sitemap.py" in your project root with something like from django.core.urlresolvers import reverse from django.contrib.sitemaps import Sitemap from blog.models import Entry class ViewS

Re: How sitemaps used in the Django

2012-08-31 Thread Phil
nearly forgot, also in urls.py... (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}), On Friday, August 31, 2012 10:04:26 AM UTC+1, Mugdha wrote: > > Please help me in generating site maps for app. which is in django. > -- You received this message because you

Re: setting up Django Compressor

2012-09-02 Thread Phil
Hi Joni, Thanks a million for reply. Yes I am using django runserver, its a working site just trying to get compressor working locally before moving to production. My css works fine without the compressor app. I can't see the file if I copy it in my url I get a 500 error and the "CACHE" folder

Re: setting up Django Compressor

2012-09-05 Thread Phil
s like its defaulting to MEDIA_URL, but you said you were using > Django 1.4, which should have STATIC_URL available. > > > On Sunday, September 2, 2012 11:13:53 AM UTC-3, Phil wrote: >> >> Hi Joni, >> >> Thanks a million for reply. >> >> Yes I am us

login auth issue - beginner

2011-08-20 Thread Phil
ocal/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 111. response = callback(request, *callback_args, **callback_kwargs) File "/home/phil/mydev/projects/healthapp/../healthapp/views.py" in login 16. username = request.POST['username'] File

Re: login auth issue - beginner

2011-08-20 Thread Phil
Thanks for reply. Yes my form is using POST. Here is my template file... {% block content %} {% if form.errors %} Sorry, that's not a valid username or password {% endif %} User name: Password: {% endblock %} -- You received this message because yo

"manage.py" command not found

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

Re: "manage.py" command not found

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

Re: "manage.py" command not found

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

error message on runserver locally

2012-12-15 Thread Phil
Hi, I had django setup and working for over a year now working with it on and off. I was away for a month, came back and now whenever I run "django-admin.py runserver 8080" I get the following error... ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODUL

Re: error message on runserver locally

2012-12-15 Thread Phil
Hi Xavier, I tried a project called "boom" too and same message, plus my other 3 django projects I had working previously all get the same error now. On Saturday, December 15, 2012 2:34:48 PM UTC, Xavier Ordoquy wrote: > > Hi Phil, > > test is a python module. Your proje

virtualenv setup

2012-12-29 Thread Phil
Hi, I have python/django working system wide. But am currently looking into using Heroku for a new project so am trying to get virtualenv setup for the first time. When I run "django-admin.py startproject whatever" it creates the project ok, but then when I run "python manage.py runserver 8080"

Re: virtualenv setup

2012-12-29 Thread Phil
I get the error. If I runserver without activating source it works fine but that would be using my system wide python. Just need to figure out how to get it to recognise the virtualenv python. On Saturday, December 29, 2012 10:16:45 PM UTC, quinonesvictor wrote: > > Hi Phil > > sorry

django setup advice for AWS Elastic Beanstalk

2013-02-03 Thread Phil
Hi, I am following the steps here to setup django on aws... http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html I got as far as step 6 but when I "git aws.push" I never see the django "it worked" page, only the green beanstalk page. I'm sure where I've gone wro

empty static_url

2013-03-02 Thread Phil
Hi, I'm using django1.4.3 I have a django project with 3 apps. All 3 apps templates extend 'app.html'. On 2 of my projects the CSS loads fine, but on third one the CSS doesn't get loaded because it's not adding '/static/' to the url to the CSS. So instead of '/static/css/style.css' I'm getting

Re: empty static_url

2013-03-06 Thread Phil
r_to_response('sales/index.html', {'sales_list': sales_list},context_instance=RequestContext(request)) and that did the job. Thanks again. On Monday, March 4, 2013 2:33:50 PM UTC, Tom Evans wrote: > > On Sat, Mar 2, 2013 at 4:47 PM, Phil > > wrote: >

Re: Error.

2013-07-27 Thread Phil
5.1, using settings 'foo.settings.local' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Note that if will be slightly different if you are using gunicorn or something else. Also, make sure your settings file contains "DEBUG = True". Re

Re:

2013-07-30 Thread Phil
attern, but AFTER any other URL patterns. I am not a Django expert by any mean, but I don't think (r'', include('django.contrib.flatpages.urls')) works, since the regex is empty... Regards, Phil On Tuesday, July 30, 2013 1:02:53 PM UTC-3, Robin Lery wrote: > > >

Re: I all django's user I'm new here and also new to Python+ django technology. but i wanna learn phython........

2013-08-01 Thread Phil
other interesting blogs on the topic. For Python itself, http://learnpythonthehardway.org/ or (my favourite) http://www.diveintopython.net/ are excellent resources to get you started. Regards, Phil On Thursday, August 1, 2013 6:28:48 AM UTC-3, Rakesh Balhara wrote: > > I all django's user

Re: Importing project URLs without a database

2013-08-01 Thread Phil
Could you post the entire content of your script? There is no way those 2 lines (and the necessary "os" import) can cause this error. Regards, Phil On Thursday, August 1, 2013 5:39:46 PM UTC-3, Jon Dufresne wrote: > > Hi, > > I am trying to write a script that outputs info

Re: Admin Center is not displaying

2013-08-05 Thread Phil
There are 3 steps in the documentation. You seem to have done the first 2, but what about your mysite/urls.py file? Did you uncomment those lines: # Uncomment the next two lines to enable the admin:*from django.contrib import admin**admin.autodiscover()* Regards, Phil On Sunday, August 4

Re: Can't run manage.py runserver (Django 1.5.1)

2013-08-05 Thread Phil
Without knowing more what you are doing, it is hard to help. But it seems like you are trying to decode as utf-8 something encoded differently. Please provide more information about what you are doing with Django. Regards, Phil On Sunday, August 4, 2013 3:38:11 PM UTC-3, Anton Yermolenko wrote

Re: not able to run applets

2013-08-05 Thread Phil
How are you invoking the applet? Could you show your relevant code (template)? Regards, Phil On Monday, August 5, 2013 5:08:12 AM UTC-3, Kaushik Roy wrote: > > hello everyone, > > i am a new user of django and i am doing a small project for my course. i > can show static cont

error on django-admin.py startproject

2011-07-02 Thread Phil
Hi, I recently installed the latest development version of Django from subversion. I followed all steps on site, got no errors. When I type "import django" in Python interpreter I get no errors. But when I try run "django-admin.py startproject mysite" I get the following error... "ImportError: N

Re: error on django-admin.py startproject

2011-07-02 Thread Phil
Well I already have subversion installed, that's how I got django in the first place. When I type "import functools" into the python interpreter I get no errors back either. I can't make it out. On Jul 2, 7:31 pm, ravinder singh wrote: > @ >   plz try this >     sudo apt-get install subversion >

Re: error on django-admin.py startproject

2011-07-03 Thread Phil
uilliers wrote: > On 2 juil, 21:57, Phil wrote: > > > When I type "import functools" into the python > > interpreter I get no errors back either. I can't make it out. > > see my other answer - either you're not invoking the right Python (if > you ha

Re: error on django-admin.py startproject

2011-07-07 Thread Phil
gt; (it will pick up the python in the shell - you can also I think use > pip with a subversion repos[2], but I haven't done that). > [1]http://pypi.python.org/pypi/virtualenv > [2]http://www.pip-installer.org/en/latest/requirement-format.html > > On Jul 4, 9:26 am, bruno des

get django/lighttpd "hello world" page

2011-07-18 Thread Phil
Hi, I have an ubuntu server, django is fully installed and working, lighttpd is installed and working(works with standard html page), but I am not sure how to get them talking to each other? It is my first time putting a django site onto a live server so any help is appreciated. I'm used to a php

Re: get django/lighttpd "hello world" page

2011-07-18 Thread Phil
Thanks for reply. Yeah I seen that, I did run "./manage.py runfcgi method=threaded host=my ip address port=80" in my mysite directory but am still getting a "not found" page. On Jul 18, 10:41 pm, Daniel Roseman wrote: > Op maandag 18 juli 2011 20:29:03 UTC+1 sc

Re: get django/lighttpd "hello world" page

2011-07-20 Thread Phil
if I can get a standard HTML to display on port 80 with lighttpd does that still mean I have to use a different port for fcgi? On Jul 18, 10:59 pm, Javier Guerra Giraldez wrote: > On Mon, Jul 18, 2011 at 4:55 PM, Phil wrote: > > I did run "./manage.py runfcgi > > method

Re: get django/lighttpd "hello world" page

2011-07-20 Thread Phil
r/bin/python" ) } ## Warning this represents a security risk, as it allow to execute any file ## with a .pl/.php/.py even outside of /usr/lib/cgi-bin. # cgi.assign = ( # ".pl" => "/usr/bin/perl", # ".php" => "/usr/bin/php-cgi&quo

Re: get django/lighttpd "hello world" page

2011-07-20 Thread Phil
thanks Javier. On Jul 20, 8:13 pm, Javier Guerra Giraldez wrote: > On Wed, Jul 20, 2011 at 2:02 PM, Phil wrote: > >            "host" => "my ip address", > > sometimes flup (and other fastcgi launchers) bind only to the > 127.0.0.1 IP.  if you want to pu

Setup issue

2011-01-04 Thread Phil
Hi all, I am having a setup issue on my personal laptop, I got through setup and couple of tutorials on my Mac in work but not having any joy at home. I'm running Ubuntu 10.04 Lucid Lynx. I run "import django" and I don't get any errors back so I thought I was OK, but when I run "django-admin.py

Re: Setup issue

2011-01-04 Thread Phil
Hi Shawn, When it wasn't working I tried both from command line and from interpreter, from command line just says "command not found". No I wasn't calling the project that, I've tried a few different project names and none seem to work. Thanks for advice/ tips. I'll keep posted when I get to the

Re: Setup issue

2011-01-16 Thread Phil
Thanks for reply Mike and TheRedRabbit, unfortunately I have never got to try your suggestions. Before your response came in I tried upgrading Lucid Lynx to Maverick Meerkat and lets just say it didn't go well for me, I no longer have Linux installed on my laptop so am back in Windows :( to be con

Re: Admin interface question

2009-03-30 Thread Phil Edwards
Phil Edwards wrote: > Hi All: > > First off, apologies if this message ends up appearing twice - I had a > minor problem getting Google to recognise that I'd subscribed... > Somehow, I just *knew* that was going to happen... :-) -- Regards Phil Edwards | PGP/GnuPG

Admin interface question

2009-03-30 Thread Phil Edwards
displayed above it. Is there any way to get rid of this? The 'polls' application in the tutorial doesn't have object names displaying like this, but I can't see what I'm doing differently. Just in case my explanation isn't clear, I've put a partial screen shot

Re: First Django project - Admin question

2009-03-30 Thread Phil Edwards
class. That sort of works - it gets rid of the text, but the space on the page that it used to occupy is still there. I've got a better clue where to look now, which is good. Thanks for your help. -- Regards Phil Edwards | PGP/GnuPG Key Id Brighton, UK | 0x68393AEE --~--~

How to download archives for this mailing list?

2009-04-15 Thread Phil Mocek
instead of having to go through Google's Web interface. -- Phil Mocek --~--~-~--~~~---~--~~ 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

Is django-users available via NNTP?

2009-04-15 Thread Phil Mocek
Is this list available via NNTP on Usenet? Google Groups started out as a Web interface to Usenet. It's unclear now where the line between mailing list and newsgroup lies with Google Groups. -- Phil Mocek --~--~-~--~~~---~--~~ You received this message be

Re: Is django-users available via NNTP?

2009-04-15 Thread Phil Mocek
provider? -- Phil Mocek --~--~-~--~~~---~--~~ 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 emai

Why does dumpdata, flush, loaddata cycle not result in same db content?

2009-04-15 Thread Phil Mocek
I have a simple project using the flatpages app. If I use manage.py to run dumpdata (with no command line arguments, redirecting output to a file), then flush, then loaddata (with no command line arguments, redirecting input from a file), my sqlite3 database file is different than a backup copy I

manage.py loaddata fails to report error [was: Why does dumpdata, flush, loaddata cycle not result in same db content?]

2009-04-15 Thread Phil Mocek
s fixed with r7595 #10200 (loaddata command does not raise CommandError on errors) new -- Phil Mocek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: manage.py loaddata fails to report error (#10849)

2009-04-16 Thread Phil Mocek
On Thu, Apr 16, 2009 at 04:04:29PM +0800, Russell Keith-Magee wrote: > On Thu, Apr 16, 2009 at 11:30 AM, Phil Mocek wrote: > > The built-in usage help shows that the filename argument (called a > > fixture for reasons that I have not yet researched) is mandatory: > > &g

proposal to allow loaddata to read from stdin [was: manage.py loaddata fails to report error]

2009-04-17 Thread Phil Mocek
example of the usefulness of using loaddata with standard input, consider the act of loading the database of a Django-based Web application with the content of the database of an instance of the same application running elsewhere: ssh remotehost /path/to/manage.py dumpdata | /path/to/local/manag

How can I create a Python source code file? [was: .py!]

2009-04-17 Thread Phil Mocek
[3]: <http://www.python.org/> [4]: <http://www.gnu.org/software/emacs/> [5]: <http://www.vim.org/> [6]: <http://www.flos-freeware.ch/notepad2.html> [7]: <http://www.barebones.com/products/bbedit/index.shtml> [8]: <http://www.codingmonkeys.de/subethaedit/> [

Re: .py!

2009-04-17 Thread Phil Edwards
Ionut G. Stan wrote: > I guess you're coding in Notepad, in which case I'd recommend to look > for another editor. Yup - my favourite for code editing on Windows is PSPad. Free download from here: http://www.pspad.com/en/ Compatible with XP, Vista and Windows7 -- Regar

Re: Registration

2009-04-19 Thread Phil Mocek
rt Way," by Eric S. Raymond: <http://www.catb.org/~esr/faqs/smart-questions.html> In particular, see the section, "Use meaningful, specific subject headers": <http://www.catb.org/~esr/faqs/smart-questions.html#bespecific> -- Phil Mocek --~--~-~--~~--

verdjn.com down; alternative location or replacement for TemplatePages? [was: verdjnlib templatepages vs django static content server]

2009-04-21 Thread Phil Mocek
ect.com/documentation/static_files/ ) www.verdjn.com has not been responding to HTTP requests for the past several days. Is TemplatePages available elsewhere? Can someone suggest another project which aims to allow users to modify both content and templates for flat pages via Web inter

Does 1and1 Hosting provide Django prerequisites? [was: installing a development environment on a 1and1.com shared hosting.]

2009-04-21 Thread Phil Mocek
Friendly advice: in order to get more help from subscribers to the list, you should read <http://www.catb.org/~esr/faqs/smart-questions.html#bespecific> -- Phil Mocek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Can I use the django test server for this?

2009-04-21 Thread Phil Mocek
h to serve admin media. --version show program's version number and exit -h, --helpshow this help message and exit See also: <http://www.catb.org/~esr/faqs/smart-questions.html#rtfm> -- Phil Mocek --~--~-~--

meaning of localhost & loopback interface [was: Can I use the django test server for this?]

2009-04-21 Thread Phil Mocek
not an address. It typically resolves to the IP address 127.0.0.1, which is the address of the loopback interface [2]. References: [1]: <http://en.wikipedia.org/wiki/Localhost> [2]: <http://en.wikipedia.org/wiki/Loopback> -- Phil Mocek --~--~-~--~~~---~--~

Re: Changing MEDIA_ROOT while running tests (as in ./manage.py test)

2009-04-22 Thread Phil Mocek
ations at runtime. For >> example, don't do this in a view: >> >> from django.conf import settings >> >> settings.DEBUG = True # Don't do this! >> >> The only place you should assign to settings is in a settings fi

Re: Webpy vs Django

2009-04-22 Thread Phil Mocek
are asking, > then a simple "give us more details about what you are trying to > build" is generally as effective. Agreed. See also: <http://www.catb.org/~esr/faqs/smart-questions.html#id308223> -- Phil Mocek --~--~-~--~~~---~--~~ You re

Python on Windows: how to pass a string of text to a PostgreSQL utility? [was: How to automatic backup Postgres on Windows?]

2009-04-22 Thread Phil Mocek
information by searching or posing your question in places where people discuss Python, PostgreSQL, and Windows development. -- Phil Mocek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Webpy vs Django [and how to ask questions the smart way]

2009-04-22 Thread Phil Mocek
st search turned up no answers (or too >> many). >> >> Prepare your question. Think it through. Hasty-sounding questions get >> hasty answers, or none at all. The more you do to demonstrate that >> having put thought and effort

Re: Changing MEDIA_ROOT while running tests (as in ./manage.py test)

2009-04-22 Thread Phil Mocek
ll. So with respect, for the second time, RTFM. Before you do that, *please* read <http://www.catb.org/~esr/faqs/smart-questions.html#rtfm>. -- Phil Mocek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Changing MEDIA_ROOT while running tests (as in ./manage.py test)

2009-04-22 Thread Phil Mocek
On Wed, Apr 22, 2009 at 12:46:32PM -0700, Phil Mocek wrote: > [What you've repeatedly asked is] explained in the Django > settings documentation that I referenced earlier, that you > apparently did not read before asking your question or after I > helpfully suggested that you re

rude, curt, and impatient, or direct, cut-through-the-B.S. communications? [was: Webpy vs Django]

2009-04-23 Thread Phil Mocek
entitlement. >> >> Sometimes people will attack you personally, flame without an >> apparent reason, etc., even if you don't screw up (or have only >> screwed up in their imagination). In this case, complaining is the >> way to really screw up. >> >&

Re: rude, curt, and impatient, or direct, cut-through-the-B.S. communications

2009-04-23 Thread Phil Mocek
On Fri, Apr 24, 2009 at 10:46:46AM +0800, Russell Keith-Magee wrote: > On Thu, Apr 23, 2009 at 10:19 PM, Phil Mocek > > On Thu, Apr 23, 2009 at 06:58:53AM -0700, joeygartin wrote: > > > Their inner sorrow is projected out in a form of rage and that > > > usually (hopefu

Re: Django development on OS X. Accessing development server from local network

2009-04-28 Thread Phil Mocek
experienced participants to ignore such requests for help or to simply reply with "RTFM" [6]. Sometimes this is rudeness, and sometimes it is simply the result of busy people moving on to help solve problems that people cannot be expected to solve f

Re: Admin menu not logging in

2009-04-29 Thread Phil Mocek
c OS X, check the man page for the admin util: man django-admin.py You need to run either: manage.py createsuperuser or: django-admin.py createsuperuser -- Phil Mocek --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: How to deal with problem about ForeignKey

2009-04-29 Thread Phil Mocek
ecific to Django, but applies to all relational databases. Maybe someone else can tell you how to select one of the aforementioned options using Django's ORM. -- Phil Mocek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: export the html data in table format to CSV or excel file format using javascript

2009-04-30 Thread Phil Mocek
aqs/smart-questions.html#before> -- Phil Mocek --~--~-~--~~~---~--~~ 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

  1   2   3   >