Re: While trying to set up Django on Windows: Attrib uteError: ‘Settings’ object has no attribute ‘DATABASE S’

2010-04-26 Thread andy saksena
se? > Any help will be appreciated. Thank you! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send emai

Re: multi-language capabilities of Django/Satchmo

2010-04-27 Thread Andy McKay
f the interface: http://docs.djangoproject.com/en/dev/topics/i18n/ For content this is a great talk from djangoski: http://docs.google.com/fileview?id=0B29qXMz8reouYzJhMjhhZDMtOTQ5MC00NjY3LWIxM2EtY2U3ZmI2NzQzYjk3&hl=en -- Andy McKay, @andymckay Django Consulting, Training and Support -- You rec

Error with django-registration

2010-04-28 Thread andy saksena
Hi all, I'm having some troubles while using django-registration used from bitbucket http://bitbucket.org/ubernostrum/django-registration/src After getting evrtythng done Im stuck and having this error. error at /accounts/register/ (111, 'Connection refused') Request Method: POST Request

Re: Error with django-registration

2010-04-28 Thread andy saksena
Thanks Its been resolved On Apr 28, 5:10 pm, James Bennett wrote: > On Wed, Apr 28, 2010 at 2:46 AM, andy saksena wrote: > > (111, 'Connection refused') > > As a Google search would have told you, this is the error Python's > smtplib module will raise when

using django-registration

2010-04-28 Thread andy saksena
Hi all, I m using django-registration app from bitbucket for a form in my project and stuck in understanding where is the model of the form. my database for he project has a table named registration profile woth the uniqhe id..but whatever fields i have in the database are getting populated in some

Re: Error with django-registration

2010-05-02 Thread andy saksena
wrote: > On Wed, Apr 28, 2010 at 2:46 AM, andy saksena wrote: > > (111, 'Connection refused') > > As a Google search would have told you, this is the error Python's > smtplib module will raise when you tell it to connect to a mail server > and it can't. Wh

Django user registration password field

2010-05-02 Thread andy saksena
Hi All, I am having the following error while using the dual password field : class DualPasswordWidget(forms.Widget): ^ SyntaxError: invalid syntax my views.py is # Create your views here. from django.shortcuts import render_to_response, get_object_or_404 from datetime import datetime f

Re: Error with django-registration

2010-05-02 Thread andy saksena
Thats been resolved James but there is another thing I'm having problems with and I'm sorry for asking so many questions. All I now want is to have a minimum of 6 characters in the password field. Thanks On May 3, 8:52 am, andy saksena wrote: > Hi James, > I got that smtp proble

error in urls.py

2010-05-03 Thread andy saksena
syntax’, (‘/home/andy/src/python/django//..// urls.py’, 17, 132, ” (r’^accounts/register/$’,register, {‘form_class’:RegistrationForm,’profile_callback’:UserProfile.objects.profile_callback},name = ‘registration_register’),\n”)) “” Can anyone help me with this. Thanks in advance Andy

Re: Error with django-registration

2010-05-04 Thread andy saksena
Resolved Thanks for the help. On May 3, 2:07 pm, andy saksena wrote: > Thats been resolved James but there is another thing I'm having > problems with and I'm sorry for asking so many questions. > All I now want is to have a minimum of 6 characters in the password > field.

Re: error in urls.py

2010-05-04 Thread andy saksena
n: > > (r’^admin/’, include(admin.site.urls)), > > (r’^accounts/register/$’,register, > > {‘form_class’:RegistrationForm,’profile_callback’:UserProfile.objects.profi > > le_callback},name > > = ‘registration_register’), > > ) > > > but when I try looking under accou

Re: Open source CMS (if based on Django better)

2010-05-07 Thread Andy McKay
at you want to do. -- Andy McKay, @andymckay Django Consulting, Training and Support -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this

Re: Multiple django version on developer machine

2010-05-11 Thread Andy McKay
should look at using virtualenv to isolate your environment: http://pypi.python.org/pypi/virtualenv -- Andy McKay, @andymckay Django Consulting, Training and Support -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

What architecture do you use for media?

2010-05-19 Thread Andy Kelley
I'm doing the first website where I need it to scale and want to host the media on a different server than the one with the django code. I'm going to have a lot of users uploading files ranging in 10 KB to 20 MB in size. I estimate that the average user will upload 20 MB per week. I have several qu

Re: Looking for a Django Developer

2010-05-21 Thread Andy McKay
ng there. http://djangozen.com/jobs is free -- Andy McKay, @andymckay Django Consulting, Training and Support -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To un

Re: Django + Ajax + Jquery

2010-06-06 Thread Andy Kelley
I'll go ahead and insert a plug here: http://github.com/superjoe30/jst-parser On Jun 6, 12:14 am, tazimk wrote: > Hi, > >     I want to use ajax in my templates using jquery. >     Can someone provide me some sample examples /links related to > this. >     Also some sample examples on using Jque

Re: Latest wisdom on 'small migrations'

2010-06-06 Thread Andy Kelley
Use south. The overhead is worth it. On Jun 5, 12:57 pm, Dave E wrote: > ah. forgot about the plain text in Google Groups... apologies. Again, > in English: > > Given that Syncdb won't ever issue an alter table command ('no such > column'), that Schema Evolution is still in debate, that South is

Re: Weekly rss feed

2010-06-21 Thread Andy McKay
and only show posts in the last seven days. -- Andy McKay, @andymckay Django Consulting, Training and Support -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To uns

An idea for a serialization framework

2010-06-23 Thread Andy Kelley
I am coming up with a framework that helps serialization of models. My idea is for each field to have a view permissions level: PUBLIC, OWNER, or ADMIN. I want to have a model to dict function that takes 2 arguments, permission_level and serialize_chain. Firstly, let me explain how it would change

Re: An idea for a serialization framework

2010-06-23 Thread Andy Kelley
God damn it, the most dangerous thing about Dvorak is hitting tab instead of or along with apostrophe. "don't " translates into "don'" Anyways, I think this idea has merit - even alongside a role-based security system. Feedback? On Jun 23, 3:29 am, Andy Kelley

Re: An idea for a serialization framework

2010-06-23 Thread Andy Kelley
I posted this to django-developers instead, so if you want to reply go find that thread and do it there. On Jun 23, 3:33 am, Andy Kelley wrote: > God damn it, the most dangerous thing about Dvorak is hitting tab > instead of or along with apostrophe. "don't " t

Re: Django logging

2010-06-23 Thread Andy McKay
e suggest me a django logging project to log > debug/error messages at server level and as a bonus feature perhaps an > email to admin if a critical error happens. Give Arecibo a look. http://www.areciboapp.com/ http://www.areciboapp.com/docs/client/django.html http://www.agmweb.ca/bl

Re: Signal emitted after successful login?

2010-06-29 Thread Andy McKay
login django.contrib.auth.login. So you can listen to the save signals on that model. -- Andy McKay, @andymckay Django Consulting, Training and Support -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Parsing xml containing image - rawImage gif

2010-07-05 Thread Andy McKay
ibraries: http://www.google.ca/search?q=soap+python -- Andy McKay, @andymckay Django Consulting, Training and Support -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.c

Re: News on every page

2010-07-08 Thread Andy McKay
T_PROCESSORS. Middleware is not the appropriate place, a context processor is the appropriate place. -- Andy McKay, @andymckay Django Consulting, Training and Support -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: Get pk before commit

2010-07-09 Thread Andy McKay
key in sync with your files. I would recommend making a UID field on your model (which also doesn't require a transaction) and using that for your filename. -- Andy McKay, @andymckay Django Consulting, Training and Support -- You received this message because you are subscribed to the G

Re: python logging and multiple process issue?

2010-07-12 Thread Andy McKay
python's built in logging will be just fine for all but the most complicated of use cases. If you want to do access logging, your web server does that for you. -- Andy McKay, @andymckay Django Consulting, Training and Support -- You received this message because you are subscribed

Re: Anyone want to take over maintaining Instant Django?

2010-07-13 Thread Andy McKay
ows installer, and mocked > me when I reported the bug. Is the source for building it in some sort of source control eg: github? -- Andy McKay, @andymckay Django Consulting, Training and Support -- You received this message because you are subscribed to the Google Groups "Django use

mutually referential models

2010-08-21 Thread Andy Howell
d(null=True) computer = models.OneToOneField(Computer) I run into a problem because ComputerInterface is not defined at the time its needed for the "Computer" class: File "/home/andy/src/django-test/netlist/nodes/models.py", line 17, in Computer interfaces = models.ManyT

Re: ANN: PyMySQL 0.3

2010-09-10 Thread Andy Dustman
On Sun, Sep 5, 2010 at 12:48 AM, Andy wrote: > Thanks Pete. > > I'm definitely interested in using PyMySQL for production. > > I'm interested in running Django in an async mode using gevent (http:// > www.gevent.org/). gevent provides a money patch that turns any Pyt

Re: Historical Records from "Pro Django" - not working with multiple foreign keys?

2010-01-05 Thread Andy McKay
this manner? I hit the same problems with that feature. In the end number of relationships and tables it created got so complicated, that we gave up on it. We used http://code.google.com/p/django-reversion/ instead, but there are other choices. -- Andy McKay, @clearwind Whistler confere

Re: Historical Records from "Pro Django" - not working with multiple foreign keys?

2010-01-05 Thread Andy McKay
ather than changing the thread mid stream. -- Andy McKay, @clearwind Whistler conference: http://clearwind.ca/djangoski/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googl

Re: 500 internal error when posting

2010-01-07 Thread Andy McKay
You really need to find a way to get the traceback, without that its really hard to say what the problem is. Tools like http://areciboapp.com are useful for this, but just setting DEBUG=True and restarting your Apache/whatever should be enough. -- Andy McKay, @clearwind Whistler conference

Re: Seeking Django developer for contract work

2010-01-08 Thread Andy McKay
companies directly. -- Andy McKay, @clearwind Whistler conference: http://clearwind.ca/djangoski/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe f

Re: Register signal on all objects

2010-01-09 Thread Andy McKay
/#connecting-to-signals-sent-by-specific-senders -- Andy McKay, @clearwind Whistler conference: http://clearwind.ca/djangoski/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegrou

Djangoski Early Bird - time running out

2010-01-13 Thread Andy McKay
Time is running out for the DjangoSki Early Bird, sign up soon: http://www.clearwind.ca/djangoski/register.html -- Andy McKay, @clearwind Whistler conference: http://clearwind.ca/djangoski/ -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: permalinks from cron job

2010-01-18 Thread Andy McKay
You can set a prefix here: http://code.djangoproject.com/browser/django/trunk/django/core/urlresolvers.py#L364 -- Andy McKay, @clearwind http://clearwind.ca/djangoski -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Best Practice for developing djangoapp in a repository

2010-01-22 Thread Andy Mikhailenko
Why not create a symlink to django-tagging/tagging in the project directory? I think it's the easiest way. -- regards, Andy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googl

Re: GET request breadcrumbs

2010-01-22 Thread Andy Mikhailenko
I would suggest using django-navigation or a similar approach, that is to bind breadcrumbs-related code to views instead of templates. Of course you would still render the breadcrumbs in a template, but that would be a single piece of code (I usually place it right in the project's base.html) which

django admin interface

2010-02-01 Thread Andy Cottell
I am new to django, and have started building a project in it. I have tried to use the admin interface with the project am having issues logging in. I have setup the interface as instruced in the django tutorial part 2, and created a new superuser and cannot use it to log in. The user is always rej

Re: django admin interface

2010-02-01 Thread Andy Cottell
hes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.adm

Re: Gathering performance statistics

2010-02-02 Thread Andy McKay
y the way you want to go. -- Andy McKay, @clearwind http://clearwind.ca/djangoski -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group

Post-save hook after inline records saved?

2010-02-03 Thread Andy Robinson
hen an Order gets saved, I can hook into some event AFTER the related Lines have been saved? Thanks, Andy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To un

Re: FieldError with get_object_or_404

2010-02-04 Thread Andy McKay
error, > FieldError: Join on field 'posted_time' not permitted. Did you > misspell 'hour' for the lookup type? There are lookups for year, month and day as documented here: http://docs.djangoproject.com/en/dev/ref/models/querysets/#year But *not* hour or minute. -- Andy McKay,

Re: django admin interface

2010-02-08 Thread Andy Cottell
Bump! On Feb 2, 1:48 am, Andy Cottell wrote: > I have done this, and created an superuser when prompted. However the > login still fails with the same error. > > Here is the urls.py: > > from django.conf.urls.defaults import * > > # Uncomment the next two lines to

Re: Slow admin performance with specific inline

2010-02-08 Thread Andy McKay
Try using the django-debug-toolbar and see if that tells you anything useful. -- Andy McKay, @clearwind http://clearwind.ca/djangoski -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Callback method on session timeout

2010-02-08 Thread Andy McKay
On 2010-02-06, at 4:08 PM, adamjamesdrew wrote: > Does django have the ability to do a callback when a session time out > occurs? No, there is no session time out. Its just that a session isn't valid anymore. -- Andy McKay, @clearwind http://clearwind.ca/djangoski -- You re

Re: Dynamic Model

2010-02-11 Thread Andy Mikhailenko
s, try serializing them in a single field, that's much easier. I just have no idea about your real requirements so I have to guess and may miss the point. [1] http://pypi.python.org/pypi/eav-django -- regards, Andy -- You received this message because you are subscribed to the Google Grou

Re: Dictionary Model Merge

2010-02-15 Thread Andy McKay
e' error. Without the code that generates that error or the traceback, we can't provide much help. One thing that is useful is model_to_dict, eg: http://www.djangozen.com/blog/useful-django-apis -- Andy McKay, @clearwind http://clearwind.ca/djangoski -- You received this message b

Re: python manage.py test --omit=bad_app_one,bad_app_two

2010-02-17 Thread Andy McKay
levant!) > > How can I knock out a list of apps from the test command line? In the past for this I've defined a custom test runner: http://docs.djangoproject.com/en/dev/ref/settings/#test-runner But I haven't seen anything else that does that. -- Andy McKay, @clearwind h

Re: django admin interface

2010-02-17 Thread Andy Cottell
to log in as. Running the command "python manage.py runserver" uses the database created when you run "python manage.py syncdb" and create a superuser, so you can login successfully. Thanks for all of your suggestions, Andy On 8 Feb, 15:37, Russell Keith-Magee wrote: > On M

Re: Is the user member of a certain group

2010-02-22 Thread Andy McKay
On 2010-02-22, at 2:56 PM, Joakim Hove wrote: > Any tip on how to write the "user_is_member_of_admin_group()" > function? You can access the groups via the ManyRelatedManager, which exposes a queryset: user.groups.filter(...) eg: if user.groups.filter(name="Admin") -

Re: Deciding how to start building a search form

2010-02-23 Thread Andy McKay
ed to do full text searches or searches on more than one model at a time, then you will need something like haystack. -- Andy McKay, @clearwind http://clearwind.ca/djangoski -- You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Optimizing template rendering and database queries

2010-02-23 Thread Andy McKay
> I would like to include the following values on my admin pages, as > part of the base_site: > time_to_query_database > time_to_render_page django-debug-toolbar has all that and more -- Andy McKay, @clearwind http://clearwind.ca/djangoski -- You received this message bec

Re: Django in the enterprise?

2010-02-24 Thread Andy McKay
o and its gone extremely well. It's not on djangosites because the NDA denies it. What you might need to consider if you are pitching to management is making sure that training, consulting and support is available from companies (which it is). -- Andy McKay, @clearwind http://clear

Please criticise this storage architecture...

2010-03-03 Thread Andy Robinson
x things (CouchDB, ZODB, blobs-in-RDBMS-tables)? Has anyone built a nontrivial system this way, and what happened? Thanks for all feedback. Andy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: Django marketplace?

2010-03-11 Thread Andy McKay
On 2010-03-11, at 8:50 AM, Tom Evans wrote: > djangogigs.com djangozen.com/jobs as well (and it's free) -- Andy McKay, @clearwind -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: getting request.user from a signal

2010-03-11 Thread Andy McKay
e a function that accepts a user > argument" untenable. No, but there's lots of other solutions. Marty Alchin solves this nicely with CurrentUserMiddleware: http://bit.ly/9lIxsM I've been wanting to make this into a reusable app for a long time, but the license on that code

Re: Strange difference between runserver and shell

2010-03-11 Thread Andy McKay
> Does anybody have any clue what the problem might be? Thanks for your help! There should be no difference really between the two. What might help us if you show us the code that the runs from the shell and the code in the view. -- Andy McKay, @clearwind -- You received this message beca

Re: Strange difference between runserver and shell

2010-03-11 Thread Andy McKay
>template_name='newssite/writer_archive.html', >template_object_name='stories', Presumably you've used pdb or simple print statements in your code to verify the results that the queryset is empty? After that, look at your templates (this loo

Re: How execute erlang code ?

2010-03-11 Thread Andy McKay
r erland and python): http://code.activestate.com/recipes/534162-an-erlang-port-in-python/ or using the builtin popen functions: http://docs.python.org/library/os.html#os.popen -- Andy McKay, @clearwind -- You received this message because you are subscribed to the Google Groups "Django

Re: DB Adapter for HTML5 Client Database Storage?

2010-04-07 Thread Andy McKay
ugh for me ;) -- Andy McKay, @clearwind Django Consulting, Training and Support -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send em

Re: Giving up PHP. ...Can't decide between Django & Rails

2010-04-12 Thread Andy Mikhailenko
age first and then settle down with the tools written in it. [1] http://dev.pocoo.org/projects/werkzeug/wiki/UsingDebuggerWithDjango Cheers, Andy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

Re: templates..

2007-08-02 Thread Andy McKay
> > def login(request): > html = "HI" > get_template('prova.html') > return HttpResponse(html) -- Andy McKay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: dynamically assigning a field value

2008-01-08 Thread andy baxter
pinco wrote: > Hi, > > I'm trying to figure out how to solve the following issue without > succeed. > > I have a model like this: > > class Product(models.Model): >... >measure_cm = models.FloatField(...) >measure_in = models.FloatField(...) > ... > > The fields contain the same info

ImportError: No module named urls

2008-03-25 Thread andy baxter
line 161 I have checked that the django tutorial app still works, so the problem seems to be with what I've done rather than the django installation. any help appreciated. thanks, andy baxter. --~--~-~--~~~---~--~~ You received this message because you are

not receiving email from the list

2008-03-28 Thread andy baxter
hello, I have subscribed successfully to the group, and can read it online, but I'm not receiving emails sent from the group, even though I have asked to when subscribing. Is this a known issue? Can any of you do anything about it or should I contact google? thanks, andy b

Re: Do I need two classes that are identical because I want to use two database tables?

2008-03-28 Thread andy baxter
27;m planning on doing something similar with my app. andy. --~--~-~--~~~---~--~~ 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 unsubs

compiling files when installing to a web server

2008-03-29 Thread andy baxter
seem to be working. What is the right way to set this up? for example is there a python command you can run to force all the modules in a given path to compile? andy baxter. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: compiling files when installing to a web server

2008-03-29 Thread andy baxter
andy baxter wrote: > hello, > > I have just installed a demo of an app I'm writing to a web server. > There seems to be an intermittent error, and I'm wondering if this is to > do with the permissions on the directories - I've tried to set the > permissions

Re: compiling files when installing to a web server

2008-03-29 Thread andy baxter
andy baxter wrote: > andy baxter wrote: > >> hello, >> >> I have just installed a demo of an app I'm writing to a web server. >> There seems to be an intermittent error, and I'm wondering if this is to >> do with the permissions on the director

Re: compiling files when installing to a web server

2008-03-29 Thread andy baxter
. If it happens again I'll paste the error message here. It was an intermittent error - if I left it for a minute or two and tried again it cured itself without my having done anything to the machine. andy. --~--~-~--~~~---~--~~ You received this message bec

Re: compiling files when installing to a web server

2008-03-29 Thread andy baxter
Michael Wieher wrote: > I had an intermittent error when using just apache/mod_python, but > haven't had it happen since i started w/django > It looks like the speed issue is to do with memory - with just apache2, mysqld and django running, it was 72M into swap. So I guess I need to get a faste

Re: Best practice for databases and distributed development with Django

2008-04-03 Thread andy baxter
re using ./manage.py syncdb - then re-import the data using 'mysql -p -f databasename < dumpfile.sql' (try first without -f to check for errors). This seems to work pretty well for minor changes - e.g. making a field allow nulls, or adding a new non-relational field. andy. --~--~

Re: Best practice for databases and distributed development with Django

2008-04-03 Thread andy baxter
andy baxter wrote: > > Not sure if it's quite an answer to your question, but I've been dealing > with a similar problem which is how to keep the test data I've added to > the system between (mostly minor) changes to the database. The approach > I've taken

django security

2008-04-03 Thread andy baxter
'm not so sure about, such as whether to check strings that will go into html for unwanted tags. How much of this kind of stuff is done automatically and how much do you have to think about yourself? It would be nice to have a summary of security issues in the documentation s

Re: middleware that works with Ajax

2008-04-08 Thread andy baxter
Claudio Escudero wrote: > Hi, > > Someone knows there is any middleware that works with Ajax, similar to > RJS of Ruby on Rails? > Do you mean middleware specifically written for django? If so not sure, but it might be worth looking at dojo (http://www.dojotoolkit.org/). It is a javascript tool

Re: Whats wrong

2008-04-08 Thread andy baxter
Sarah Johns wrote: > Hello, im a newbie so sorry to bother anyone, but i have problems with > my site, i cant see the videos that i attached. whats wrong? Thanks > for the help, the site adress is this: http://www.videoriporter.hu > To be honest I thought your message was cleverly targetted spa

Re: middleware that works with Ajax

2008-04-10 Thread andy baxter
Jarek Zgoda wrote: > Chris Hoeppner napisał(a): > > >> This is new to me. Dojo will be the official js toolkit for django? >> Above jQuery? How come? >> > > No. It was stated many times: Django would not have any "official js > toolkit" and will not "be bound to" or "embrace" any single to

Re: Two sites, one django project

2008-04-11 Thread andy baxter
} } The only problem (I can see) with this method is it might make it hard to later on add i18n alternate language functionality to your code using the django framework for that. andy. Polat Tuzla wrote: > Hi, > I'd like to build two sites, say, two polls sites, e

Re: unknown encoding: utf-8 error

2008-04-11 Thread andy baxter
Cephire wrote: > Thanks Karen. It helped. But I got another error. > > AttributeError: 'module' object has no attribute 'admin'. Searching > through the net, I found that __init.py__ should be present in the > directory. It does have __init.py__. > > Should all directories (like media, templates)

Re: Application Concepts

2008-04-11 Thread andy baxter
James Bennett wrote: > On Tue, Apr 8, 2008 at 1:38 AM, jurian <[EMAIL PROTECTED]> wrote: > >> Are django applications meant to be implemented in such a manner as to >> allow the entire application directory to be copied into another >> project and used without having to alter any of the code

Re: Django on plesk - Virtual Host

2008-04-11 Thread andy baxter
Tim wrote: > I've got a couple Django apps running on Plesk. It's not the greatest > but it works. > > First, after you set up your subdomain, you'll need to create the > file: > /var/www/vhosts/ domain.fr/subdomains/django/conf/vhost.conf > > Here's the contents of mine: > -- > DocumentRo

Re: Images and Stylesheets

2008-04-12 Thread andy baxter
Greg Lindstrom wrote: > Hello Everyone- > > I started learning Django at PyCon in Chicago and have worked most of > the way through the "Django Book" and Sams "Teach Yourself Django", as > well as "Head First HTML with CSS and XHTML". It's been quite a lot > for this old dog, but I'd like to t

Re: can i join your group

2008-04-13 Thread andy baxter
a.f wrote: > am intersting in web desgining & puplishing > e books & soft wear > seo & ather stuff > If you can read this, you're already subscribed to the group. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Application Concepts

2008-04-15 Thread andy baxter
James Bennett wrote: > On Fri, Apr 11, 2008 at 1:09 PM, andy baxter > <[EMAIL PROTECTED]> wrote: > >> What /should/ be inside the project folder? >> > > I often get severely flamed for saying this, but: > > I very rarely have a "project folder&

Re: Search Frameworks

2008-04-15 Thread andy baxter
brydon wrote: > I'm curious what people are currently using for search frameworks on > django based projects. I've done a fair bit of research here and > elsewhere and I still haven't landed on a clear decision. What are > people successfully using with django to get robust search > capabilities a

Re: python manage.py runserver

2008-04-16 Thread andy baxter
[EMAIL PROTECTED] wrote: > when i run the command above it shows this message , what is the > problem i have successful installed django and i want step to run the > server and > $ python manage.py runserver > Validating models... > Unhandled exception in thread started by 0xb7a7995c> > Traceback

Re: Protecting static files

2008-04-17 Thread andy baxter
g"> However, microsoft have added a 'feature' to IE7 which prevents it from opening URLs of this sort, in order (they say) to prevent the risk of spoofing attacks like links with the form: http://[EMAIL PROTECTED] see: http://support.microsoft.com/kb/834489 andy. --~--~--

users and profiles - model structure question

2008-04-18 Thread andy baxter
of doing things here, from the point of view of keeping the code simple, and also minimising the time spent doing database lookups? (I'm guessing that looking up a User from a Member is slightly quicker than looking up a Member from a User). andy --~--~-~--~~~

Re: users and profiles - model structure question

2008-04-18 Thread andy baxter
meant to retrieve the self_description field from the Member object associated with the given User. But this raises a template error: 'Too many values to unpack' Is it possible to refer to profile data in the template like this, or do I need to

Re: users and profiles - model structure question

2008-04-18 Thread andy baxter
andy baxter wrote: > Alex Koshelev wrote: > >> I usually make link to User model not profile. And have no problems >> with usage. >> >> >> > I just tried switching to this way of doing it, and have come up against > a problem with gettin

Re: A modeling/implementation quiz

2008-04-19 Thread andy baxter
Juanjo Conti wrote: > Hi all, > > I am worried about how to model the next scene (this is an example, but > an appropriated one): In the model we have People, and there are > different kind of people, let's say: Professors, Students and Other. > Each People object has a 'type' attribute. Type c

Re: Categorize and List if Item Exists

2008-04-22 Thread andy baxter
uct name here) {% endfor %} {% endfor %} Then you could have a template which recursively included itself, and passed a parameter to say which branch of the tree to render next. But I'm not sure how this would work with django's way of rendering templates. Just my thoughts, andy. --~--~

Re: Categorize and List if Item Exists

2008-04-23 Thread andy baxter
andy baxter wrote: > you want a tag that would let you write an include file like: > > {% for category in categorybranch %} > sorry that should be {% for category in categorybranch.sub_cats %} > (print category name here) > {% include "self.html" with categor

Re: Better Image Uploads: Fake Model Fields?

2008-05-14 Thread Andy Robinson
ata which needs to be managed and backed up, and if it has a structured naming convention, it really helps. The only thing better would be storing BLOBS in the database table directly (he says, donning an asbestos suit and running for cover...;-) ) - Andy Robinson, ReportLab --~--~-~-

Re: Database introspection dies?

2007-02-28 Thread Andy Dustman
On 2/28/07, Adam Seering <[EMAIL PROTECTED]> wrote: > > Hi all, > I'm trying to introspect an old MySQL database (the old software > that used the database was written in some nasty mix of Perl and C; > it just bit the dust recently). I try an inspectdb on it, and I get > an ugly-looking

Re: MySQLdb version

2007-03-20 Thread Andy Dustman
On 3/20/07, chasfs <[EMAIL PROTECTED]> wrote: > > Thanks for the quick reply! Do you know if Django has been tested > with MySQLdb > 1.2.2? Yes. 1.2.2 is the best version you can get. Trust me. > On Mar 20, 11:20 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > > On 3/20/07, chasfs <[EMAIL PROT

Re: Mod_python + MySQLdb won't install ...

2007-03-21 Thread Andy Dustman
On 3/20/07, dbee <[EMAIL PROTECTED]> wrote: > > System: Linux 2.6.9-34.0.1.EL #1 Wed May 24 07:40:56 CDT 2006 i686 > athlon i386 GNU/Linux > OS: CentOS > Python: 2.3.4 > Mysql: 5.0 > > I'm having lots of issues trying to get my django server up. It seems > that mod_python won't work on my system.

Re: Weird get_or_create error

2007-05-01 Thread Andy Dustman
On 5/1/07, Brandon Low <[EMAIL PROTECTED]> wrote: > > How can a get_or_create cause an integrity constraint error? The error is on key 2, which is an additional unique index you presumably have in your model. get_or_create should not cause integrity errors on the primary key, but that's not what'

<    1   2   3   4   5   6   7   >