Re: Beautiful popup windows

2010-08-06 Thread Michael Hipp
On 8/6/2010 8:13 AM, kostia wrote: Do we know some alternatives for using popups in python/django? I bookmarked these a while back but haven't yet used them: http://trentrichardson.com/Impromptu/index.php http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/ Mi

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Michael Hipp
On 8/4/2010 7:47 PM, André A. Santos wrote: wow this is different to me because Java is different follows MVC... so, the business rules stay on View (GUI)? All the view does is create the http response. If the particular request requires any significant business logic, I would put that in a di

Re: Is there anyone who is using Django on Windows 7 host system.

2010-08-01 Thread Michael Hipp
I'm using it on two Win7 systems (one x32, one x64). The "django-admin.py startproject mysite" command seems to do just what is expected. But note that I can't just enter it that way. Here's what I do: python C:\dev\virtenvs\redmule\Scripts\django-admin.py startproject mysite This is because I

Re: What goes in 500.html?

2010-07-26 Thread Michael Hipp
Thanks for a helpful and complete answer, David. Michael On 7/26/2010 6:24 AM, David De La Harpe Golden wrote: On 24/07/10 20:14, Michael Hipp wrote: What should go in a proper 500.html page? As little as you can get away with; it's for when your server has screwed up. However, you pro

What goes in 500.html?

2010-07-24 Thread Michael Hipp
What should go in a proper 500.html page? Is some content fed to it that should be displayed? Similarly for 404.html? Thanks, Michael -- 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

Sending emails, threads, progress back to user

2010-07-21 Thread Michael Hipp
I've been googling extensively but can't seem to find an real answer for this... - User clicks a button to send a batch of emails to customers - Django view kicks off a thread to send the emails using django.core.mail - The view response sends the user to a page that will monitor progress using

Re: Send email attachment from memory buffer

2010-07-21 Thread Michael Hipp
On 7/20/2010 9:08 PM, Ale wrote: On Tue, Jul 20, 2010 at 10:04 PM, Michael Hipp mailto:mich...@hipp.com>> wrote: Is it possible to give it a file-like object instead? Did you see the documentation regarding creating an EmailMessage and the attach() method? """You

Send email attachment from memory buffer

2010-07-20 Thread Michael Hipp
I will be sending pdfs generated from django and would like to email them but without writing them to the filesystem. I can generate the pdf to a buffer but django.core.mail seems to only handle attachments that are specified as a filename. Is it possible to give it a file-like object instead?

Any way to get AutoField from inspectdb?

2008-03-08 Thread Michael Hipp
I have a legacy database that happens to be PostgreSQL. It has this primary key field: CREATE TABLE foo ( id integer PRIMARY KEY, When I do 'inspectdb' it gives me a model with this in it: class Foo(models.Model): id = models.IntegerField(primary_key=True) But what

Re: Getting a UNION query in Django Models?

2008-02-25 Thread Michael Hipp
Rajesh Dhawan wrote: > Hi Michael, > >> How do I do something like this using Django Models? >> >> SELECT name,birthdate FROM friends >>UNION >> SELECT name,birthdate FROM enemies >>ORDER BY birthdate, name; >> >> I can't find any reference in the Django docs to gett

Getting a UNION query in Django Models?

2008-02-25 Thread Michael Hipp
How do I do something like this using Django Models? SELECT name,birthdate FROM friends UNION SELECT name,birthdate FROM enemies ORDER BY birthdate, name; I can't find any reference in the Django docs to getting a UNION. Thanks, Michael --~--~-~--~~-

Re: Where to set the cwd?

2008-02-25 Thread Michael Hipp
Graham Dumpleton wrote: > On Feb 24, 11:08 am, Michael Hipp <[EMAIL PROTECTED]> wrote: >> So how do I make those lines look like that instead of having a bunch of >> absolute paths stuck in there or lots of messy stuff with >> os.path.join(os.path.dirname(__file__)

Re: Where to set the cwd?

2008-02-23 Thread Michael Hipp
Drew Raines wrote: > Michael Hipp wrote: > > [...] > >> But I have lots of "data" files that live in and around my Django >> code and I have to access with them with stuff like: >> >> f = open("somedir/myfile.dat", 'r') >

Re: Where to set the cwd?

2008-02-23 Thread Michael Hipp
Graham Dumpleton wrote: > On Feb 24, 11:08 am, Michael Hipp <[EMAIL PROTECTED]> wrote: >> Malcolm Tredinnick wrote: >> >>> On Sat, 2008-02-23 at 16:02 -0600, Michael Hipp wrote: >>>> Where in my Django code files can I set the current working directo

Re: Where to set the cwd?

2008-02-23 Thread Michael Hipp
Malcolm Tredinnick wrote: > > On Sat, 2008-02-23 at 16:02 -0600, Michael Hipp wrote: >> Where in my Django code files can I set the current working directory >> (so that it applies to all my code)? >> >> I'm trying to make sure that all paths in my Python

Where to set the cwd?

2008-02-23 Thread Michael Hipp
Where in my Django code files can I set the current working directory (so that it applies to all my code)? I'm trying to make sure that all paths in my Python code are relative paths. But I think I need to know where I can put the cwd change so that it runs when Django first comes up. I'm on

Re: Head swimming - JavaScript libraries

2008-02-18 Thread Michael Hipp
Just wanted to thank everyone who replied (Julien, Dj Gilcrease, Phoenix Kiula, Hraban, Horst Gutmann, AmanKow, Peter Rowell). I think I will have a go at jQuery. Looks good. Thanks, Michael Peter Rowell wrote: > Yet another vote for jQuery. It completely changed the way I look at > using JS

Re: Head swimming - JavaScript libraries

2008-02-16 Thread Michael Hipp
Julien wrote: > Hi Michael, > > This subject has been discussed many times here, and the answer is > that there is no answer. Django is flexible enough to work with > whatever JS library you like. So, have a look around all those > libraries, pick the one that would work best for a given project

Head swimming - JavaScript libraries

2008-02-16 Thread Michael Hipp
My head is swimming... I've spent the last 2 days reading up on jQuery, MochiKit, Yahoo and 3 dozen others that I don't remember right now. Does anyone have any thoughts on picking a JavaScript library for use with Django that is compact, simple, and has a good collection of widgets and conve

Django with SQLAlchemy?

2008-02-13 Thread Michael Hipp
I've been reading stuff like this: http://groups.google.com/group/django-developers/browse_thread/thread/5149e1c60dc65bff/a177bb34cfde1ec7 And a zillion others on a Google search of 'django sqlalchemy'. What's the status? Thanks, Michael --~--~-~--~~~---~--~~ Yo

Re: i'm tired

2008-02-11 Thread Michael Hipp
Jeff Gentry wrote: >> Man I hear you. I've been doing web for 10 years, in a variety of >> languages. I have Django installed VERBATIM according to the >> documentation. > >> I can get Django to run, but I can't get it to server images using the >> built-in server. mod_python is a whole other bal

Re: About to give up!!!

2008-02-09 Thread Michael Hipp
Brandon Taylor wrote: > Hi everyone, > > I'm just about to give up on Django. I can't even get it to load a > simple jpeg using the built-in server. > > Here is my directory structure: > > '/Users/bt/django_projects' is where all of my Django projects exist > > /btaylor_design > settings.py, e

Re: Web Development with Django: Windows vs Linux/Mac OS X

2008-02-07 Thread Michael Hipp
Aleandro wrote: > In fact, running on the development computer the same exact software > environment present on the production server is the strongest pro- > Linux argument, especially if you have a VPS and not a shared server. > To be honest, I think neither with Windows or Mac OS X you can obtai

Re: Setting up Apache & mod_python on my development computer

2008-02-06 Thread Michael Hipp
Is there a reason this line looks like this: > Instead of like this: > Michael Brandon Taylor wrote: > Well, still no working solution, but here is my httpd.config now: > > > SetHandler python-program > PythonPath "['C:/django_projects/', 'C:/Python25/lib/site-packages/ > dj

Re: template: how to make use of forloop.counter0

2008-02-04 Thread Michael Hipp
t; td.align{{forloop.counter0}}: { text-align: {{al}}'; } > {% endfor %} > > ... > {% for col in row %} >{{col}} > {% endfor %} > > (I've probably scrambled the proper CSS attributes, you get the idea.) > > --Ned. > http://nedbatchel

Re: Optimistic Locking

2008-02-04 Thread Michael Hipp
Tim Sawyer wrote: > On Sunday 03 Feb 2008, code_berzerker wrote: >> How about rewriting save method complately and make additional >> condition in WHERE clausule like this: >> UPDATE ... WHERE id=666 AND mtime=object_mtime >> Checking number of updated rows would give you information about >>

Re: Tool recommendations

2008-02-04 Thread Michael Hipp
Peter Rowell wrote: >> I have some ideas for AJAXy web sites, and I'm thinking of >> implementing them in my spare time, but I don't know what tools >> to learn and use. > Another suggestion is jQuery as a JS framework (light and very > featureful) and the excellent taconite plugin. Those two, co

Re: template: how to make use of forloop.counter0

2008-02-04 Thread Michael Hipp
David Reynolds wrote: > > On 3 Feb 2008, at 3:32 pm, Michael Hipp wrote: > >> Malcolm Tredinnick wrote: >>>> Or is there some other way to get at my 'align' list? >>> Look at the {% cycle %} template tag. It's designed for precisely >>

Re: unknown encoding: cp0 (apache, mod_python)

2008-02-03 Thread Michael Hipp
Karen Tracey wrote: > On Feb 2, 2008 8:14 PM, Michael Hipp <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > My code runs fine on the development server, but dies on a local copy of > apache with mod_python. > > It's giving

Re: template: how to make use of forloop.counter0

2008-02-03 Thread Michael Hipp
Malcolm Tredinnick wrote: >> Or is there some other way to get at my 'align' list? > > Look at the {% cycle %} template tag. It's designed for precisely this > purpose. Thank you. But can someone show me how to make 'cycle' work? from django.template import Context, Template items = (0, 1, 2, 3

template: how to make use of forloop.counter0

2008-02-02 Thread Michael Hipp
I'm trying to do something in a template that seems really simple ... populate the row/columns of a table and apply alignment for each field. So I'm doing this: {% for row in report_data %} {% for col in row %}

unknown encoding: cp0 (apache, mod_python)

2008-02-02 Thread Michael Hipp
My code runs fine on the development server, but dies on a local copy of apache with mod_python. It's giving me this error: unknown encoding: cp0 On this line: print 'report: %s' % report_name Google found several references to making everything unicode (see below), so I tried this:

Template help, gotta be simple

2008-02-02 Thread Michael Hipp
I'm trying to do something with a template that I thought would be very simple but I've not yet found a way to make it work at all. from django.template import Template, Context fields = ("f1", "f3") data = [ {"f1": "Foo", "f2": "Skip ","f3": "Bar"}, {"f1": "Cat", "f2": "Ignore","f3":

Re: Heads-down transaction-processing apps on Django

2008-02-02 Thread Michael Hipp
Tim Chase wrote: >>> try to use control+W to delete the previous word while I'm typing >>> in IE, only to have it close my whole window. Minutes of sotto >>> voce oaths usually follow. >> Ug. This would be disastrous to a clerk on a tight queue. In the very >> least it looks like I may have to m

Re: Heads-down transaction-processing apps on Django

2008-02-02 Thread Michael Hipp
Jon Atkinson wrote: - Data entry people use lots of F-keys, Ctrl-keys and Alt-keys to make things happen on the screen. >>> Not quite as much flexibility here. HTML defines accelerator >>> keys which are browser-specific (sometimes Alt+letter, sometimes >>> control+letter, or other comb

Re: Heads-down transaction-processing apps on Django

2008-02-01 Thread Michael Hipp
Tim Chase wrote: Tim, thanks for taking time to respond in so much depth. You've given me enough encouragement to think we can move forward. I'm *really* tired of thick-client GUI development. >> - Data entry people use lots of F-keys, Ctrl-keys and Alt-keys to make >> things happen on the scr

Heads-down transaction-processing apps on Django

2008-02-01 Thread Michael Hipp
Sorry for posting such a nebulous question... Is anyone using Django web apps as heads-down transaction processing applications that are heavy in the areas of: - Lots of data entry - Lots of "instant, right now" demands like POS A few - slightly more specific - issues: - What about data e

Re: Simultaneous edits

2008-02-01 Thread Michael Hipp
Filip, Thanks for your very informative explanations and ideas. I will be studying it closely. Thanks, Michael Filip Wasilewski wrote: > Hi Michael, > > On Jan 30, 6:25 pm, Michael Hipp <[EMAIL PROTECTED]> wrote: >> James Bennett wrote: >>> On Jan 30, 2008

Re: Simultaneous edits

2008-01-31 Thread Michael Hipp
Thomas Guettler wrote: > Am Mittwoch, 30. Januar 2008 16:18 schrieb Michael Hipp: >> Does Django have any built-in way to handle or prevent simultaneous, >> incompatible edits to a database record? > > > Some days ago there was a thread about optimistic locking: > I

Re: Optimistic Locking

2008-01-31 Thread Michael Hipp
Thomas Guettler wrote: > Am Donnerstag, 24. Januar 2008 13:08 schrieb Tim Sawyer: >> Hi Folks, >> >> I'm just evaluating django for use on a project. I have a multiuser >> application where many users can be changing data at once. >> >> What's the status of hibernate style optimistic locking, whe

Re: Simultaneous edits

2008-01-30 Thread Michael Hipp
James Bennett wrote: > On Jan 30, 2008 9:18 AM, Michael Hipp <[EMAIL PROTECTED]> wrote: >> Does Django have any built-in way to handle or prevent simultaneous, >> incompatible edits to a database record? > > No, that's what your database's concurrency ha

Simultaneous edits

2008-01-30 Thread Michael Hipp
Does Django have any built-in way to handle or prevent simultaneous, incompatible edits to a database record? Thanks, Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Administration site is plain

2008-01-28 Thread Michael Hipp
djangoproject.com/documentation/modpython/#serving-the-admin-files > > On Jan 28, 4:48 pm, Michael Hipp <[EMAIL PROTECTED]> wrote: >> Running on my local development server the Administration site looks >> normal with the nice colors and formatting. >> >> Running o

Administration site is plain

2008-01-28 Thread Michael Hipp
Running on my local development server the Administration site looks normal with the nice colors and formatting. Running on my production server it is utterly plain (black and white). It's evidently not picking up some css or templates or something. I don't see anything helpful in the apache l

Re: Model: field for HTML

2008-01-25 Thread Michael Hipp
Rajesh Dhawan wrote: > > > On Jan 25, 11:57 am, Michael Hipp <[EMAIL PROTECTED]> wrote: >> When creating a field that will hold HTML snippets, should it be created >> as a CharField or an XMLField (or something else)? > > Either of those would work.

Model: field for HTML

2008-01-25 Thread Michael Hipp
When creating a field that will hold HTML snippets, should it be created as a CharField or an XMLField (or something else)? Thanks, Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Shared hosting with FastCGI, problems

2008-01-14 Thread Michael Hipp
8] [warn] mod_fcgid: stderr: raise > ImproperlyConfigured, "Error loading MySQLdb module: %s" % e > [Mon Jan 14 03:17:20 2008] [warn] mod_fcgid: stderr: > ImproperlyConfigured: Error loading MySQLdb module: /home/tourista/ > python/_mysql.so: cannot open shared object file: N

Re: Multiple sites, shared hosting

2008-01-10 Thread Michael Hipp
Michael Hipp wrote: > Graham Dumpleton wrote: >> On Jan 11, 1:13 pm, Michael Hipp <[EMAIL PROTECTED]> wrote: >>> Graham Dumpleton wrote: >>>> On Jan 11, 8:50 am, Michael Hipp <[EMAIL PROTECTED]> wrote: >>>>> Hello, >>>>>

Re: Multiple sites, shared hosting

2008-01-10 Thread Michael Hipp
Graham Dumpleton wrote: > On Jan 11, 1:13 pm, Michael Hipp <[EMAIL PROTECTED]> wrote: >> Graham Dumpleton wrote: >>> On Jan 11, 8:50 am, Michael Hipp <[EMAIL PROTECTED]> wrote: >>>> Hello, >>>> My "main" Django site is working g

Re: Multiple sites, shared hosting

2008-01-10 Thread Michael Hipp
Graham Dumpleton wrote: > On Jan 11, 8:50 am, Michael Hipp <[EMAIL PROTECTED]> wrote: >> Hello, >> >> My "main" Django site is working great. But on my shared hosting account >> (HostMonster) I have multiple sites. Some will be Django, some will b

Restart Django site?

2008-01-10 Thread Michael Hipp
How do I restart my Django site (uses FastCGI and shared hosting via .htaccess)? The docs say 'touch mysite.fcgi' but that does not seem to work. Tried touching all the py files as well as .htaccess. I can see the python process still running in memory. If I kill it then it re-loads my code a

Multiple sites, shared hosting

2008-01-10 Thread Michael Hipp
Hello, My "main" Django site is working great. But on my shared hosting account (HostMonster) I have multiple sites. Some will be Django, some will be plain html. How do I set this up (specifically in settings.py, urls.py and .htaccess). I'm using FastCGI and a script for the main site. I onl

Re: Context processor a bit too helpful

2008-01-07 Thread Michael Hipp
Simon Willison wrote: > On Jan 8, 6:47 am, Michael Hipp <[EMAIL PROTECTED]> wrote: >> Learning about context processors, I have one like this: >> >> def bold_word(request): >> html = "A bold word." >> return {'bold_word': html

Context processor a bit too helpful

2008-01-07 Thread Michael Hipp
Learning about context processors, I have one like this: def bold_word(request): html = "A bold word." return {'bold_word': html,} I expected a *bold* word to show up in the browser, but instead here's what is sent: A bold word. So the angle brackets show up (literally) in

Re: Shared hosting with FastCGI, problems

2008-01-07 Thread Michael Hipp
Michael Hipp wrote: > Hello, > > I'm hoping to rework my website into Django, but am having trouble at my > shared hosting provider (HostMonster). > > They don't support mod_python, so Hostmonster said to add this to .htaccess > for FastCGI: > >Add

Re: Shared hosting with FastCGI, problems

2008-01-07 Thread Michael Hipp
That worked! Thank you! Thank you all! Michael Muchanic wrote: > Try adding the .egg to sys.path explicitly, i.e. > > sys.path.insert(0, "/home/redmulec/python/flup-1.0-py2.4.egg") --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Shared hosting with FastCGI, problems

2008-01-07 Thread Michael Hipp
Graham Dumpleton wrote: > On Jan 8, 2:29 pm, Michael Hipp <[EMAIL PROTECTED]> wrote: >> Does any of that offer any clues? > > Not really. You really need to do what Milan said back at the > beginning. See if you can get the actual error messages logged in the > Apa

Re: Shared hosting with FastCGI, problems

2008-01-07 Thread Michael Hipp
Graham Dumpleton wrote: >>RewriteRule ^djangosite/(.*)$ mysite.fcgi/$1 [QSA,L] >> >> would only use the fcgi stuff on the urls that resolved to the >> djangosite directory??? > > You cannot read the RewriteRule in isolation, the RewriteCond on the > line before must be taken into consideratio

Re: Calling a method from the base template

2008-01-07 Thread Michael Hipp
Peter Rowell wrote: >> There is a mechanism available >> for that -- context processors -- but people don't want to use it >> because they want *something else* that happens for every template. > > Malcolm's absolutely correct: context processors (I mis-typed when I > said content processors) is

Re: Calling a method from the base template

2008-01-06 Thread Michael Hipp
Peter Rowell wrote: > It > would probably be better (for any number of reasons) if you put all of > these types of routines in a utils.py module and import/pass that. > E.g. > > import utils > return render_to_response('now.html', RequestContext(request, { > 'utils': utils, >

Calling a method from the base template

2008-01-06 Thread Michael Hipp
This is probably really simple, but I'm not seeing it. I have my base.html and sub.html templates. The method that services the sub template does it's job fine. But in the base template I have a piece of content that is independent of the sub template. I have a get_stuff() method in views.py t

Re: Shared hosting with FastCGI, problems

2008-01-06 Thread Michael Hipp
[EMAIL PROTECTED] wrote: >> AddHandler fastcgi-script .fcgi > > Is this the actual name of your fcgi script? Also, there seems to be a > space before ".fcgi", which doesn't seem right. That line came directly from ... http://www.djangobook.com/en/1.0/chapter20/ http://www.djangoproject.

Shared hosting with FastCGI, problems

2008-01-05 Thread Michael Hipp
Hello, I'm hoping to rework my website into Django, but am having trouble at my shared hosting provider (HostMonster). They don't support mod_python, so Hostmonster said to add this to .htaccess for FastCGI: AddHandler fcgid-script .fcgi I did that and my html sites still work, but when I

Web host for Django, what to ask for?

2005-12-31 Thread Michael Hipp
I'm hoping to convince my current hosting provider (zipa.com) to support Django. (Switching providers would be a pain right now.) What would I tell them I need? apache mod_python psycopg postgresql (or mysql) (1 database?) Is there any chance of convincing them to modify their httpd.conf fil

Re: Multiple apps on one page, how?

2005-12-31 Thread Michael Hipp
Jacob Kaplan-Moss wrote: On Dec 31, 2005, at 11:02 AM, Michael Hipp wrote: How do I put multiple apps on one page/template? Just use both apps in the same view:: from django.models.polls import polls from django.models.blogs import entries def my_view(request): return

Re: A very simple application

2005-12-31 Thread Michael Hipp
Jacob Kaplan-Moss wrote: On Dec 31, 2005, at 11:14 AM, Michael Hipp wrote: How do I make this work? In mysite/apps/simple/views.py I have: from django.core.extensions import render_to_response def saysomething(request): assert False, "Test assert" return render_t

Method call in template, how?

2005-12-31 Thread Michael Hipp
In http://www.djangoproject.com/documentation/templates/#variables it says: - Behind the scenes Technically, when the template system encounters a dot, it tries the following lookups, in this order: * Dictionary lookup * Attribute lookup * Method call

Re: A very simple application

2005-12-31 Thread Michael Hipp
Adrian Holovaty wrote: On 12/30/05, Michael Hipp <[EMAIL PROTECTED]> wrote: Thanks. What about the case where I need to get debugging output from deep in a routine and no obvious (to me, at least) way to bubble it up into the web browser? A simple solution is to raise an exception

Multiple apps on one page, how?

2005-12-31 Thread Michael Hipp
Still trying to get my brain around how Django works... How do I put multiple apps on one page/template? Explanation: I have my base.html template, different parts of the page need to be fed data from different apps (app1, app2, etc.) The apps are independent and don't (shouldn't) know anythi

Re: 'now' outputs in UTC

2005-12-31 Thread Michael Hipp
Eugene Lazutkin wrote: The easiest way to handle it is to rely on native Windows time zone: do not set any time zone at all (django\conf\settings.py, line 64). I didn't try it but it should work. In any case please file a ticket to track the problem. Thanks for that tip. I did remove the TI

'now' outputs in UTC

2005-12-30 Thread Michael Hipp
I'm playing with the following in my template: {% now "O Y-M-d H:i" %} This renders: '+ 2005-Dec-31 06:03' which appears to be UTC (6 hours later than here in central time in the US). This is on WinXP Pro and (according to Control Panel) my time zone appears to be set correctly. In se

Re: A very simple application

2005-12-30 Thread Michael Hipp
James Bennett wrote: Basically, render_to_response is a shortcut which takes the name of a template and a dictionary, and instantiates a context from the dictionary, loads the template, renders it and creates an HttpResponse from the result. Ok, if render_to_response is a shortcut, then I need

Re: A very simple application

2005-12-30 Thread Michael Hipp
limodou wrote: HttpResponse just return the message to the caller, not directly to the screen. Who/what is the caller? render_to_response is a utility function provided by django, if you don't want to use it, you can do it yourself, just like: It's not that I have something against render_

Re: A very simple application

2005-12-30 Thread Michael Hipp
Adrian Holovaty wrote: On 12/30/05, Michael Hipp <[EMAIL PROTECTED]> wrote: But what about the "root" of the website, how do you specify a view for just "mysite.com"? To target the root, use '^$' as the regular expression, like so: urlpatterns = patte

Re: A very simple application

2005-12-30 Thread Michael Hipp
James Bennett wrote: On 12/30/05, Michael Hipp <[EMAIL PROTECTED]> wrote: I have a base.html that is a skeleton html document with this call to my 'simple' app added: {{ simple.saysomething }} You never call the view function from inside the template; by the time Django

Re: Really basic question...

2005-12-30 Thread Michael Hipp
Adrian Holovaty wrote: On 12/30/05, Michael Hipp <[EMAIL PROTECTED]> wrote: Thank you! That worked great (well, once I figured out that TEMPLATE_DIRS wants Unix-style "slashes" even on this Winders box.) Ah, thanks for pointing out that the slash-style isn't well doc

A very simple application

2005-12-30 Thread Michael Hipp
I have a base.html that is a skeleton html document with this call to my 'simple' app added: {{ simple.saysomething }} In mysite/apps/simple/views.py there is: from django.utils.httpwrappers import HttpResponse def saysomething(request): return HttpResponse("This is from the 'simpl

Re: Really basic question...

2005-12-30 Thread Michael Hipp
Adrian Holovaty wrote: You'll want to use the "direct to template" generic view, documented here: http://www.djangoproject.com/documentation/generic_views/#using-simple-generic-views Here's the URLconf you'd use: urlpatterns = patterns('', (r'.*', 'django.views.generic.simple.direct_to_tem

Really basic question...

2005-12-30 Thread Michael Hipp
I'm trying to get Django to put up the most basic possible template/page which consists of nothing more than an html doc with essentially nothing in it, no apps, nothing that really requires the power of Django. The tracebacks I'm getting seem to be alternately complaining about my templates

Re: Maybe the easiest tutorial

2005-12-30 Thread Michael Hipp
Jarek Zgoda wrote: Looking forward to see. Here are my thoughts on current "official" Django tutorial: Anyway, it's god to see anybody working on introductory materials. Thanks for the encouragement. I'm banging away on it now. Hopefully in a few days I'll have something to show. Michae

Re: Maybe the easiest tutorial

2005-12-27 Thread Michael Hipp
Jarek Zgoda wrote: Michael Hipp napisał(a): Yea, this is the simplest "tutorial" one can imagine, but it wouldn't help the beginners in any way, as it doesn't explain how Django works. IMO, it's worthless. Does such a tutorial exist? The official tutorial exp

Re: Maybe the easiest tutorial

2005-12-27 Thread Michael Hipp
Jarek Zgoda wrote: Yea, this is the simplest "tutorial" one can imagine, but it wouldn't help the beginners in any way, as it doesn't explain how Django works. IMO, it's worthless. Does such a tutorial exist? Michael

Re: Django for eCommerce?

2005-12-21 Thread Michael Hipp
Jacob Kaplan-Moss wrote: On Dec 21, 2005, at 10:24 AM, Michael Hipp wrote: How suitable is Django for an eCommerce site (SSL, shopping cart, product database, accounts, etc.)? Very well suited. Thank you. Could anyone elaborate - perhaps with pointers to docs or example code to

Re: Django built-in web server?

2005-12-21 Thread Michael Hipp
Joseph Kocherhans wrote: On 12/21/05, *Michael Hipp* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: The documentation says "Django comes with its own Web server for development purposes." I'd like to use this for development and experimentat

Django built-in web server?

2005-12-21 Thread Michael Hipp
The documentation says "Django comes with its own Web server for development purposes." I'd like to use this for development and experimentation. But I can find nothing about where it lives or how to configure and run it. Any pointers? Thanks, Michael

Django for eCommerce?

2005-12-21 Thread Michael Hipp
Hello, just trying to get started with Django. Question... How suitable is Django for an eCommerce site (SSL, shopping cart, product database, accounts, etc.)? Thank you, Michael Hipp Heber Springs, Arkansas, USA