Re: Python/Django hosting

2010-07-28 Thread Horst Gutmann
Have you already looked through this list? http://djangofriendly.com/hosts/ -- Horst On Wed, Jul 28, 2010 at 9:41 PM, kostia wrote: > Our startup http://github.com/vaxXxa/projector has to be hosted > somewhere. > > I'm looking for someone who can help. > > Be happy, >

Re: Database systems

2010-07-16 Thread Horst Gutmann
Do you plan to do anything really fancy that requires some server-specific features? If not this becomes more of a deployment question. If you're just starting with Django, using sqlite3 instead of PostgreSQL or MySQL is just fine (depending on your project). For later and for me personally

Re: Existing sites using Django

2010-07-13 Thread Horst Gutmann
And don't forget sites like http://www.giantbomb.com and other sites by Whiskey Media :-) -- Horst On Tue, Jul 13, 2010 at 7:59 PM, Piotr Kilczuk wrote: > Hi, > > As far as I know, http://grono.net was built using Django. At once it > was Polish biggest community portal which

Re: Calling some javascript for new visitors only

2010-07-12 Thread Horst Gutmann
What is stopping you from doing the cookie check itself with JavaScript which is quite capable to do that :-) http://www.quirksmode.org/js/cookies.html http://plugins.jquery.com/project/cookie On Wed, Jul 7, 2010 at 11:55 AM, euan.godd...@googlemail.com wrote: > You'll

Re: Deployment hesitation after James Bennett's post, WSGI or ...?

2010-06-26 Thread Horst Gutmann
On 24 Jun 2010, at 12:15, Daniel Roseman wrote: > On Jun 24, 10:54 am, Dave E wrote: >> I'm about to enter my first deployment learning curve, but after >> reading James Bennett's post 'Let’s talk about WSGI' (http://www.b- >>

Re: not able to install django development version

2010-06-22 Thread Horst Gutmann
The checkout works for me. Are you perhaps behind some HTTP proxy or firewall that blocks certain HTTP commands? You could also try one of the project mirrors on github or bitbucket. Perhaps you have more luck downloading one of these: http://github.com/django/django

Re: Django + Ajax + Jquery

2010-06-06 Thread Horst Gutmann
Django itself doesn't really care what JS framework you use and only offers some framework agnostic helpers within the request object like http://docs.djangoproject.com/en/1.2/ref/request-response/#django.http.HttpRequest.is_ajax to distinguish requests coming as XHRs as well as

Re: Django form validations

2010-05-31 Thread Horst Gutmann
not support some new built in validation functions . > Also, where should valiadtions be done ideally server side or client > side i.e using javascripts etc ? > > On May 31, 1:01 pm, Horst Gutmann <ho...@zerokspot.com> wrote: >> Have you already >> readhttp://docs.dja

Re: Django form validations

2010-05-31 Thread Horst Gutmann
Have you already read http://docs.djangoproject.com/en/1.2/ref/forms/validation/#ref-forms-validation ? On Mon, May 31, 2010 at 9:16 AM, tazimk wrote: > How to use django custom validators to verify form fields data > > -- > You received this message because you are

Re: Django setup problem when executing syncdb

2009-02-28 Thread Horst Gutmann
As the error message already says: Your missing the MySQLdb module. Depending on your system you should be looking for something like a py26-mysql or python-mysql package or install it manually yourself :-) -- Horst On Sat, Feb 28, 2009 at 3:23 PM, ches wrote: >

Re: Versioning/revisioning content (a la Mediawiki)

2009-02-25 Thread Horst Gutmann
Or you could leave the versioning to dedicated tools like bzr and git and use django-rcsfield :-) http://code.google.com/p/django-rcsfield/ -- Horst On Thu, Feb 26, 2009 at 12:29 AM, Scott Newman wrote: > I'm creating an app similar to the flatpages contribution that will

Re: comparisons with java framework

2009-02-11 Thread Horst Gutmann
This might sound slightly off-topic but I will say it anyway: No one forces you to use `make` for building the documentation. Once you've installed Sphinx, you also have `sphinx-build` on your $PATH:: $ cd $djangofolder/docs $ sphinx-build . _build/html -- Horst On Wed, Feb 11, 2009 at

Re: Two forms one page

2009-02-08 Thread Horst Gutmann
now. > I am using request.POST.__contains__(key), I think this is what you > meant. =) > > Titus > > On Feb 8, 4:25 am, Horst Gutmann <ze...@zerokspot.com> wrote: >> You could also assign the submit buttons a name (each its own name), >> check request.POST for

Re: [slightly offtopic] Which Python are people using on OSX?

2009-02-06 Thread Horst Gutmann
After a bit of going back and forth I'm now using MacPorts more or less exclusively since it makes it easy to have multiple version (2.3, 2.4, 2.5, 2.6 and 3.0) installed in parallel. -- Horst On Thu, Feb 5, 2009 at 11:53 PM, Russell Keith-Magee wrote: > On Fri, Feb 6,

Re: open source project management app that uses django?

2008-12-04 Thread Horst Gutmann
Grrr again linebreaks <http://code.google.com/p/jutda-helpdesk/source/checkout> On Thu, Dec 4, 2008 at 11:51 AM, Horst Gutmann <[EMAIL PROTECTED]> wrote: > Looks like you got hit by some evil linebreaks :-) > > svn checkout http://jutda-helpdesk.googlecode.com/svn/tr

Re: open source project management app that uses django?

2008-12-04 Thread Horst Gutmann
Looks like you got hit by some evil linebreaks :-) svn checkout http://jutda-helpdesk.googlecode.com/svn/trunk/ jutda-helpdesk-read-only On Thu, Dec 4, 2008 at 11:40 AM, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On Thursday 04 Dec 2008 12:57:14 pm Hanny Wibisono wrote: >>

Re: time differences

2008-11-28 Thread Horst Gutmann
Please take a look at the documentation for the datetime and time modules :-) >>> import datetime >>> datetime.datetime.strptime('2008-09-16 08:01:16', '%Y-%m-%d %H:%M:%S') -- Horst On Fri, Nov 28, 2008 at 10:13 PM, Bobby Roberts <[EMAIL PROTECTED]> wrote: > On Nov

Re: time differences

2008-11-28 Thread Horst Gutmann
If you convert timea into a normal datetime instance just substract timea from timeb and you will get a datetime.timedelta instance which has everything you need :-) import datetime a = datetime.datetime(2008, 11, 15) b = datetime.datetime.now() print b-a -- Horst On Fri, Nov

Re: runserver error on Mac OSX 10.5.5

2008-11-28 Thread Horst Gutmann
ot;manually" but no luck. > What error did you get then? -- Horst On Fri, Nov 28, 2008 at 7:38 AM, jconway <[EMAIL PROTECTED]> wrote: > Horst & Malcolm > > Thank you for your suggestions, they helped me determine that the > problem is machine specific. > > On Nov

Re: runserver error on Mac OSX 10.5.5

2008-11-27 Thread Horst Gutmann
Are you sure, that your django installation is complete? Esp.: Do you have a db/backends/dummy/base.py and a db/backends/dummy/__init__.py in /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/ ? -- Horst On Thu, Nov 27, 2008 at 6:02 AM, jconway

Re: Best IDE for Django and python?

2008-11-26 Thread Horst Gutmann
Well, if you install ipython, you also get auto completion with manage.py shell :-) -- Horst On Wed, Nov 26, 2008 at 4:20 PM, Steve Phillips <[EMAIL PROTECTED]> wrote: > I personally use Komodo Edit along with IDLE. Also instead of using > "manage.py shell" I use IDLE. I am so spoiled by the

Re: Best IDE for Django and python?

2008-11-25 Thread Horst Gutmann
OK, back to the topic at hand :-) While I personally don't use any IDE for developing in Python (I'm more the editor+cli kind of guy), the big Java-based IDEs are more and more opening up to other languages. For example Netbeans has now an early-access program for Python support [1] in their

Re: dynamic method calling

2008-11-22 Thread Horst Gutmann
AFAIK no (except for perhaps some different exception handling but getattr is IMO the way to go), but what don't you like about this approach? -- Horst On Sat, Nov 22, 2008 at 2:38 AM, Chris <[EMAIL PROTECTED]> wrote: > Hello everyone, > I have a quick python question. Is they a better way of

Re: Help for crontab

2008-11-20 Thread Horst Gutmann
For things like that it's IMO still the best approach to write a custom command for the manage.py, which handles all this for you :-) http://docs.djangoproject.com/en/dev/howto/custom-management-commands/#howto-custom-management-commands -- Horst On Thu, Nov 20, 2008 at 1:53 PM, laspal <[EMAIL

Re: Python package names

2008-11-03 Thread Horst Gutmann
Do you absolutely require the name or would it be enough for you to have an isolated environment for your django-related packages? In this case take a look at virtualenv and to some extend also buildout :-) http://pypi.python.org/pypi/virtualenv http://pypi.python.org/pypi/zc.buildout -- Horst

Re: Execute a java program

2008-10-30 Thread Horst Gutmann
Hi :-) Take a look at Python's subprocess module which lets you execute other processes and communicate with them. http://docs.python.org/library/subprocess.html#module-subprocess -- Horst On Thu, Oct 30, 2008 at 11:12 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi everyone I am newbie

Re: When should I do my imports, in views.py?

2008-10-27 Thread Horst Gutmann
According to the Python Coding Guidelines you should always put the imports at the top of a file simply because it makes the file more readable. Performance-wise there are AFAIK some small speed-ramifications (negative ones) when putting imports into a function instead of having them at the

Re: Django 1.0: XML documents in database, view as HTML, download as RTF

2008-10-24 Thread Horst Gutmann
You might get some ideas from Andrew West's and Zeth Green's Pixelise project which basically uses Django as a frontend application with a DB XML backend for document management: http://pixelise.org/ The transformation itself shouldn't be a big problem with some nice cronjobs + Python's

Re: Django Hosting Survey

2008-10-06 Thread Horst Gutmann
I'm currently running 2 personal sites on a 256MB slice at Slicehost and each one takes about 30MB with one dedicated mod_wsgi daemon process (and perhaps a couple of MBs more for servicing static files through Apache and the database connection). So depending on the size of your application, a

Re: MooTools

2008-09-22 Thread Horst Gutmann
Django itself doesn't really care what JavaScript library you want to use. Simply include it in your templates and use it like you would any other static file :-) In this regard it doesn't really matter if you want to use MooTools, jQuery, YUI, Prototype or whatever other JS library you want to

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread Horst Gutmann
Awesome :D Congratulations and big kudos to everyone involved with getting there. -- Horst On Thu, Sep 4, 2008 at 8:28 AM, Ben Lyall <[EMAIL PROTECTED]> wrote: > Awesome news. This comes at a great time for an internal project I'm > working on. > > Congratulations and thank you to everyone

Re: HowTo: Django view as a class

2008-08-29 Thread Horst Gutmann
Very interesting approach, going through subclassing HttpResponse for generating views. Just some more alternatives if you don't mind ;-) A couple of months ago, Arne Brodowski wrote some similar on his blog [1] also kind of using the servlet-split (a view-method per http-method). Also some time

Re: newbie -- hiccups in following tutorial

2008-07-22 Thread Horst Gutmann
svn co http://code.djangoproject.com/svn/django/trunk/ django :-) -- Horst On Tue, Jul 22, 2008 at 2:43 PM, Morgan Packard <[EMAIL PROTECTED]> wrote: > cool. thanks. what's the svn url for the version I want? > > -m- > > On Jul 22, 5:18 am, "Horst Gutmann&

Re: newbie -- hiccups in following tutorial

2008-07-22 Thread Horst Gutmann
This tutorial applies to the trunk version of Django and this particular part requires a very recent checkout (from not older than the 18th of this month). You can normally get the version of Django you're using by running `django-admin.py --version` :-) The problem you have seems to be related

Re: Django Newbie

2008-07-22 Thread Horst Gutmann
t says i dont have an > http module. What do I do? > > On Jul 22, 9:43 am, "Horst Gutmann" <[EMAIL PROTECTED]> wrote: >> Hi :-) >> >> What exactly didn't you understand in the tutorial? How far have you >> come within the tutorial so far? >> >>

Re: Django Newbie

2008-07-22 Thread Horst Gutmann
Hi :-) What exactly didn't you understand in the tutorial? How far have you come within the tutorial so far? -- Horst On Tue, Jul 22, 2008 at 9:06 AM, Sthembile Ngidi <[EMAIL PROTECTED]> wrote: > > > -- Forwarded message -- > > > Morning, > > I'm relatively new to python and I

Re: /contrib/admin/urls.py doesn't exist

2008-07-20 Thread Horst Gutmann
The newforms-admin branch was merged into trunk 2 days ago and I think there is still some cleanup going on in the tutorials :-) For details on what you have to change to get trunk working for you again, take a look at the BackwardsIncompatibleChanges-wikipage :-)

Re: Is Django development active?

2008-07-20 Thread Horst Gutmann
Uhm did you actually take a look at the timeline [1] before writing this? Or considered searching the archive of this mailinglist? [1] http://code.djangoproject.com/timeline -- Horst On Sun, Jul 20, 2008 at 1:14 PM, Hussein B <[EMAIL PROTECTED]> wrote: > Hi. > Why there is no active

Re: XML and django

2008-07-10 Thread Horst Gutmann
Since Python 2.5 ElementTree is part of the core library and resides in the xml.etree package :-) http://docs.python.org/lib/module-xml.etree.ElementTree.html -- Horst On Thu, Jul 10, 2008 at 5:18 PM, Ahmad Akkaoui <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I would like to know how to I

Re: escaping

2008-07-05 Thread Horst Gutmann
Already tried it without the extra spaces? {{ request.session.AccountNum|escape }} MfG, Horst On Sat, Jul 5, 2008 at 10:13 PM, Bobby Roberts <[EMAIL PROTECTED]> wrote: > I'm trying to escape something printed back to a template as follows > > > {{request.session['AccountNum'] | escape }} > >

Re: Django newcomer needs help on concept of views

2008-06-27 Thread Horst Gutmann
And if you have some functions that are used by views from both modules, just create a new module and name it for instance utils.py. Then you can simply import something from this new module into your views.py:: from .utils import my_function -- Horst On Fri, Jun 27, 2008 at 11:17 AM, Alaa

Re: Timezone conversion

2008-06-13 Thread Horst Gutmann
ke the sound of using the mysql way, sounded a > bit too much like a hack to me. > > One final question though - when you use the datetime field and insert > into the database, is that date UTC or based on my TIME_ZONE setting > in Django? > > On Jun 13, 4:59 pm, "Horst Gutma

Re: Timezone conversion

2008-06-13 Thread Horst Gutmann
wrote: >> > > Right, so it doesn't automatically assign timezone information to it? >> > > I've seen some other examples where people have two/three fields just >> > > to store the timezone and date but I'd rather not have to go through >> > >

Re: Timezone conversion

2008-06-13 Thread Horst Gutmann
ome :) > > Any idea what is means by "naive datetime"? > > On Jun 13, 9:16 am, "Horst Gutmann" <[EMAIL PROTECTED]> wrote: >> From what I can see in the database, DateTime stores its content in >> the timezone specified in the settings.py by default

Re: Timezone conversion

2008-06-13 Thread Horst Gutmann
>From what I can see in the database, DateTime stores its content in the timezone specified in the settings.py by default. So when you fetch a datetime from the database you have to associated the respective timezone with that datetime instance: tzedate =

Re: SQLobject vs SQLAlchemy

2008-06-13 Thread Horst Gutmann
If all you did was install MySQLdb and Django then yes. -- Horst On Fri, Jun 13, 2008 at 8:02 AM, Pepsi330ml <[EMAIL PROTECTED]> wrote: > meaning all along i had been using Django ORM? > > > --~--~-~--~~~---~--~~ You received this message because you are

Re: Can't convert UTC time :(

2008-06-11 Thread Horst Gutmann
s? > > Thanks for your help so far though :) > > On Jun 11, 8:59 am, "Horst Gutmann" <[EMAIL PROTECTED]> wrote: >> Ah ok, sorry, I misunderstood what you're trying to achieve :-) >> >> from dateutil.tz import gettz >> import datetime >> >&

Re: Can't convert UTC time :(

2008-06-11 Thread Horst Gutmann
a string though as I need to wrap it in this: > > utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc) > > Cheers, > Chris > > On Jun 10, 10:06 pm, "Horst Gutmann" <[EMAIL PROTECTED]> wrote: >> You mean like the difference in seconds between 2 tim

Re: Can't convert UTC time :(

2008-06-10 Thread Horst Gutmann
You mean like the difference in seconds between 2 timezones? Then perhaps the tzinfo class itself might be of some help here. It has a utcoffset(self, datetime) method that returns a datetime.timedelta instance: http://docs.python.org/lib/datetime-tzinfo.html - Horst On Tue, Jun 10, 2008 at

Re: Setting up multiple sites

2008-05-17 Thread Horst Gutmann
You could still connect to the same database from both sites but distinct the content that should *not* be shared using a site_id. For stuff like that the django.contrib.sites framework should be quite useful :-) http://www.djangoproject.com/documentation/sites/ - Horst On Sat, May 17, 2008 at

Re: where can i download newformsadmin

2008-05-05 Thread Horst Gutmann
$ svn co http://code.djangoproject.com/svn/django/branches/newforms-admin Works for me. What error do you get? - Horst On Mon, May 5, 2008 at 7:56 PM, lowks <[EMAIL PROTECTED]> wrote: > I tried checking out newformsadmin from svn but it errored out. When i > try downoading the zip, it

Re: session data or ???

2008-04-17 Thread Horst Gutmann
ke this variable global(the current_path will > change every time when some method in views.py will be called), and it > will be automaticaly assign to locals() in every method. > just like > > current_path = request.path > Class Test: > > > i hope i describe it well, so you will undestand >

Re: session data or ???

2008-04-15 Thread Horst Gutmann
save it to sessions in first method and use > request.session in method where i need to work with this variable, or is > there some better way how to pass this variable? > Please feel free to show me some code examples. > > > thank you > pavel > > Horst Gutmann w

Re: session data or ???

2008-04-15 Thread Horst Gutmann
n i save something to the session(as current date, or user agent) > with some key, and then look to database from terminal, the key is > different. > > The second problem is, that i cannot find a way how to pass some data > from one function to all other functions. > > thank yo

Re: session data or ???

2008-04-15 Thread Horst Gutmann
Sorry if I misunderstood your problem, why don't you simply store the last_login somewhere in a userprofile? Since -- judging from the name -- it should only be altered when the user really logs in, I don't see the relation with a session there :-/ -- Horst On Tue, Apr 15, 2008 at 2:05 PM,

Re: sudo: port: command not found

2008-04-14 Thread Horst Gutmann
Uhmm and this has what exactly to do with Django? ;-) But in general, just add this to your ~/.profile (just create it if you don't have it) export PATH=/opt/local/bin:/opt/local/sbin:$PATH export MANPATH=/opt/local/man:$MANPATH export LD_LIBRARY_PATH=/opt/local/lib:$LD_LIBRARY_PATH (among

Re: paginator

2008-04-07 Thread Horst Gutmann
When you do the actual Paginator.page call the Paginator does nothing more than you'd have with Object.objects.[...].all()[lowerlimit:upperlimit]. So yes, from what I can see in the source it's like doing a normal query with the right LIMITs applied :-) - Horst On Mon, Apr 7, 2008 at 3:23 PM,

Re: Head swimming - JavaScript libraries

2008-02-17 Thread Horst Gutmann
Well, it really depends on what you want. For instance if you plan to mess around a lot with JSON, you will have to extend jQuery quite a bit, since it only comes with the bare minimum of what you need to handle AJAX-JSON responses. Please correct me, if I'm wrong here, but I couldn't find a

Re: hosting web

2008-02-10 Thread Horst Gutmann
Although Dreamhost's FastCGI setup is a little weird and quite restricted to begin with, so I wouldn't judge just based on Dreamhost that FastCGI is a bad deployment option :-) - Horst On Feb 10, 2008 3:15 PM, Ramdas S <[EMAIL PROTECTED]> wrote: > FastCGI support on a shared host is workable,

Re: Django multilingual

2008-01-28 Thread Horst Gutmann
2008/1/28 Ivan Illarionov <[EMAIL PROTECTED]>: > Models that need flexibility have `lang` and `is_translation_of` > fields. Views (or custom managers) filter the output based on `lang` > and add the link to other language if translation exists. Some models > just have two separate text fields for

Re: Noob question: Which Linux distribution is "best" for Django?

2007-12-09 Thread Horst Gutmann
IMO the differences between the distributions out there shouldn't really matter when it comes to GNU/Linux as a development environment. You should always have the option to install whatever you want from source. You might face some problems with some distros that use for example very old version

Re: Is a bug? When inhclude, block inheritance get lost?

2007-12-02 Thread Horst Gutmann
Is perhaps {% inherit ... %} *not* the first line in all the files within your inheritance-hierarchy? :-) - Horst On Dec 2, 2007 8:50 PM, mamcxyz <[EMAIL PROTECTED]> wrote: > > I have a base template that do a include: > > {% if user and not

Re: How to display the euro currency EURO and choose the comma as the decimal separator

2007-11-27 Thread Horst Gutmann
First of all: How do you render your prices in the first place? Regards, Horst On Nov 27, 2007 8:18 AM, Song.qk <[EMAIL PROTECTED]> wrote: > > Hello world, > > I've tried many things with no avail to make appear the Euro symbol. > I've put the line > # encoding: utf-8 > at the beginning of the

Re: Any Djangonauts in Berlin for the Web 2.0 Conference?

2007-11-03 Thread Horst Gutmann
I originally planed to go there, but O'Reilly conferences are simply too expensive so I had to reschedule my November :-/ On 11/2/07, RKnobelspies <[EMAIL PROTECTED]> wrote: > > If there´s interest i could offer to arrange a Django meet-up next > week alongside the conference schedule. Feel free

Re: CSS problem

2007-11-01 Thread Horst Gutmann
Sure :-) http://www.djangoproject.com/documentation/static_files/ - Horst On 11/1/07, Goutham DL <[EMAIL PROTECTED]> wrote: > > Hi, > > Iam new to django. Iam having problems loading css files (and images) > using the development server. Is it possible to load css files in the > development

Re: Example for update_object

2007-10-24 Thread Horst Gutmann
Just spam ;-) On 10/24/07, Florian Lindner <[EMAIL PROTECTED]> wrote: > > Am Mittwoch, 24. Oktober 2007 schrieb tomris: > > http://www.cnd-industry.com/ > > Is is just spam or meant serious in a way I don't understand? > > Regards, > > Florian > > > > >

Question regarding django_website's docutils extension

2007-10-18 Thread Horst Gutmann
Hi :-) I'm currently writing on a small utility for transforming RSTs into something more pleasant than the normal HTML output generated by rst2html.py that I first of all want to use for myself and at work, but also would like to publish (cheeseshop). This utility also includes parts of the

Re: can't install...

2007-10-15 Thread Horst Gutmann
ork at all. I need a little help, I am learning this > for one of my college projects. Anything you can help with will be > appreciated. > Amon > > On Oct 15, 4:19 am, "Horst Gutmann" <[EMAIL PROTECTED]> wrote: > > No, afaik there is no installer for Windows.

Re: can't install...

2007-10-15 Thread Horst Gutmann
This tutorial is quite outdated. Don't run `python setup.py develop` but `python setup.py install` to install Django after checking it out :-) 2007/10/15, Phwaxmon <[EMAIL PROTECTED]>: > > I tried to do the following from the site after I thought I had > installed it "We'll assume you have

Re: can't install...

2007-10-15 Thread Horst Gutmann
No, afaik there is no installer for Windows. Did you receive any error message? - Horst 2007/10/15, Phwaxmon <[EMAIL PROTECTED]>: > > Do any of you know if there an .exe file for django for win32/64 bit > PCs? I have tried to install it as they have instructed on the site, > but then it doesnt

Re: Multilanguage - I know what I want, should I do it this way?

2007-10-11 Thread Horst Gutmann
Well, IMO you would have some ForeignKey back to a language neutral model where you can also store those fields you want to share in all languages. Then you could use the unique_together attribute for the Meta class of your language-dependent model. Something like: class Article(models.Model):

Re: trying to make Django work with fastcgi

2007-10-03 Thread Horst Gutmann
Have you already tried it with method=prefork instead of method=threaded? 2007/10/2, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > I'm exactly there with you, David. Same with the manage.py. I can even > sync up fine with MYSQL. > > If anybody has any ideas, I'm more than willing to try pretty much

Re: trying to make Django work with fastcgi

2007-10-02 Thread Horst Gutmann
2007/10/2, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > and a few of these: > [2007-10-02 02:03:32]: error: file has no execute permission: (/home/ > soulgt/public_html/dispatch.fcgi) > Esp. this error looks interesting IMO. Does your host perhaps offer some information on how they execute the

Re: trying to make Django work with fastcgi

2007-10-02 Thread Horst Gutmann
Have you already looked at the error.log your webhost should normally provide? The behaviour you indicated normally means, that the process died or gave output back, that is not really close to an HTTP response as expected by the webserver. 2007/10/2, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > >

Re: Forms vs. Admin?

2007-10-01 Thread Horst Gutmann
Do you mean for other users but yourself? In this case IMO you can compare giving someone access to the admin backend to giving someone access to something like phpMyAdmin. So basically you want to give this privilege only to those people, you can 100% trust and who should be able to change

Re: i18n/setlang no longer support GET

2007-09-21 Thread Horst Gutmann
I had more or less the same situation to solve and I think http://www.djangosnippets.org/snippets/371/ should come quite close :-) 2007/9/21, erik <[EMAIL PROTECTED]>: > > > Me, too, I stumbled over this change lately. > > My understanding of the HTTP spec is that there shouldn't be > different

Re: python script

2007-09-18 Thread Horst Gutmann
You mean an error telling you that you need to set the DJANGO_SETTINGS_MODULE environment variable? Or something else? os.environ['DJANGO_SETTINGS_MODULE']='mysite.settings' right at the top of your script (after the #! and the import for os ;) ) should solve this. Then you should probably

Re: response from another function

2007-09-18 Thread Horst Gutmann
You basically want something like this? function1(request): return function2(request) Sure, Django is "just" Python :-) 2007/9/18, Dushyant Sharma <[EMAIL PROTECTED]>: > > is it possible to return HttpResponse from another function > > like i have called a function say furnction1(request)

Re: cronjob

2007-09-18 Thread Horst Gutmann
Better also insert it before doing this import. Your cron-manager probably uses a different shell then your terminal :) 2007/9/18, patrickk <[EMAIL PROTECTED]>: > > now I get: > ImportError: No module named django.core.management > > the directory "django_src" is on my python-path. > > > On 18

Re: Can't install MySQLdb... any links?

2007-09-18 Thread Horst Gutmann
Did you also receive any error message when running sudo python setup.py install on a newly extracted folder (basically when compiling the C part of that module)? This looks to me like mysql_config wasn't found. If you've installed mysql in a non-standard place (like for example MacPorts does),

Re: about get_cfg_var () function

2007-09-14 Thread Horst Gutmann
bjlinwu wrote: > echo get_cfg_var("register_globals"); > Why it doesn't output anything? > O_o ... and you're completely sure that you wrote this to the right mailing list? ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Presentations about Django?

2007-08-10 Thread Horst Gutmann
Jacob Kaplan-Moss wrote: > > See http://www.djangoproject.com/community/logos/ -- that page has > downloadable high-res logos, along with some pretty simple usage > guidlines. In general, as long as you're using the Django logo to > promote Django itself (and not some other project/product),

Re: Launchpad - Community for free projects

2007-08-10 Thread Horst Gutmann
Jonas wrote: > I found a great service to hosting free projects of software that let > a great relation with the community and integration with Bazaar > control version. Its name is launchpad.net, and the company behind is > Canonical, the Ubuntu's creator. > > I have remained very impressed

Presentations about Django?

2007-08-10 Thread Horst Gutmann
Hi :-) I'm currently thinking about doing a small presentation of Django at a BarCamp in Vienna this fall - nothing big, probably just a short intro of what you need to get it running with some small hints for Dreamhost and perhaps a small demo app - and I wanted to know, if there are any rules

Re: ANN: django-lifestream

2007-07-31 Thread Horst Gutmann
Kai Kuehne wrote: > Hi, > > On 7/31/07, Horst Gutmann <[EMAIL PROTECTED]> wrote: >> The code is available on <http://code.google.com/p/django-lifestream/> >> >> I hope at least some of you might find it useful :-) For some more >> informations pleas

ANN: django-lifestream

2007-07-31 Thread Horst Gutmann
Hi everyone :) I'm proud to announce django-lifestream, a generic app for Django and the first of hopefully quite a few components of my sites that I plan to give back to the community. The purpose of this app is to provide a lifestream similar to by merging

Re: problem to save..

2007-07-25 Thread Horst Gutmann
Marco A. wrote: > HI ! > In model I have : > > from django.db import models > > # Create your models here. > class User(models.Model): > User = models.CharField(maxlength=200) > Pasw = models.CharField(maxlength=16) > def __unicode__(self): > return self.question > def

Re: How do I know if fastcgi is installed correctly? (using dreamhost)

2007-07-24 Thread Horst Gutmann
walterbyrd wrote: > > On Jul 19, 4:08 pm, FrankW <[EMAIL PROTECTED]> wrote: >> in your shell, if you cd into /home/walterbyrd/django.niche-software/ >> django >> and type ./dispatch.fcgi, what do you get? >> > > > ./dispatch.fcgi > WSGIServer: missing FastCGI param REQUEST_METHOD required by

Re: Should I give up on dreamhost?

2007-07-23 Thread Horst Gutmann
[EMAIL PROTECTED] wrote: > Personally, I'm of the opinion that Dreamhost should be taken off the > list of Django-friendly hosts. I totally agree. A host called "Django-friendly" should directly offer support for how to use Django on their servers. Without that it requires a little bit too much

Re: Should I give up on dreamhost?

2007-07-23 Thread Horst Gutmann
walterbyrd wrote: > Also, wondering if I should give up on django, at least for now. > > I just can not get fastcgi working. I have read the django wiki, I > have tried to follow jeffcroft's tutorial. I just can not get it to > work. From what I'm seeing on the message boards, it's a common >

Re: html sanitizers

2007-07-13 Thread Horst Gutmann
Brett Parker wrote: > On Fri, Jul 13, 2007 at 11:48:50AM +0100, Nic James Ferrier wrote: >> Brett Parker <[EMAIL PROTECTED]> writes: >> >>> On Fri, Jul 13, 2007 at 11:18:18AM +0100, Nic James Ferrier wrote: Derek Anderson <[EMAIL PROTECTED]> writes: > hey all, > > could

Re: data truncation: web page field input vs direct manipulation

2007-07-10 Thread Horst Gutmann
qhfgva wrote: > Every time I think I understand string encoding I get reminded that I > don't. > > I have a simple form where I can cut and paste in a value with an > "interesting" character in it (e.g. "Foo(r)" - in case that doesn't come > thru that's "F" "o" "o" followed by a registered

Re: Checkout with Tortoise SVN

2007-07-06 Thread Horst Gutmann
It might be a problem with your proxy server. This error looks like Tortoise sends a REPORT command to the SVN server that the proxy server doesn't understand. You can find some details about this in the SVN FAQ [1]. [1] http://subversion.tigris.org/faq.html#proxy - Horst Gary Doades wrote: >

Re: No module named _md5

2007-07-05 Thread Horst Gutmann
e-gor wrote: > so what should i do? :) i'm newby :) there are no md5 module > requirements in the setting.py > > On 5 июл, 22:13, "nick feng" <[EMAIL PROTECTED]> wrote: >> It' seems that the md5 is not a middleware, but you have write it in the >> setting.py file's middleware setting part. >>

Re: I get a error as follow

2007-06-30 Thread Horst Gutmann
段叶飞 wrote: > Request Method: POST > Request URL: http://127.0.0.1/topic/add/ > Exception Type: TypeError > Exception Value: unsupported operand type(s) for +: 'NoneType' and > 'int' > Exception Location: E:\Django Workspace\mybar\..\mybar\bar\views.py in > add_topic, line 71 > Python Executable:

Re: ForeignKey

2007-06-26 Thread Horst Gutmann
Christopher wrote: > Hi, > > I am pretty new to both Python and Django and have a quick and > hopefully easy question. Is it possible to create a Model with a link > back onto itself? > > Check the code below which does not seem to work. > > class Menu(models.Model): > display_text =

Re: ForeignKey with null=True. Options?

2007-06-04 Thread Horst Gutmann
ou :-) (Damn, now I have to rewrite the code again ^_^) - Horst > > On Jun 4, 4:11 am, Horst Gutmann <[EMAIL PROTECTED]> wrote: >> Hi everyone :-) >> >> I'm currently writing a small app that should store data for registered >> users and guests alike in one single m

Re: ForeignKey with null=True. Options?

2007-06-04 Thread Horst Gutmann
Malcolm Tredinnick wrote: > On Mon, 2007-06-04 at 10:11 +0200, Horst Gutmann wrote: >> Hi everyone :-) >> >> I'm currently writing a small app that should store data for registered >> users and guests alike in one single model. So I made following model >>

ForeignKey with null=True. Options?

2007-06-04 Thread Horst Gutmann
Hi everyone :-) I'm currently writing a small app that should store data for registered users and guests alike in one single model. So I made following model (simplied) class Content(models.Model): user = models.ForeignKey(User, null=True, blank=True) The problem I now face is, that

Re: Newforms / Validation / Uniqueness

2007-05-30 Thread Horst Gutmann
ringemup wrote: > > Do you then have to figure out which errors apply to which Form > fields, and sort them out and assign them? I haven't seen any sample > code doing anything of this sort, so I'd be very interested to see how > it works. > I was recently in the same situation and did

  1   2   >