Cannot connect to development server on windows

2010-08-19 Thread cwurld
I am using django 1.1 on windows XP. I run the development server from
the command line. Most of the time things work fine.

But at seemly random times, I can no longer connect to the development
server. On chrome, I get:

"Oops! This link appears to be broken."

with other browsers, I get similar messages. I can see in the command
window that the dev server is running.

If I reboot my computer, things work again, but that is a pain.

I have tried shutting down all the browsers and the dev server.
Killing all python processes. Restarting chrome. Clearing the browser
cache. Then restarting the dev server. But that does not always work.

Sometimes if I surf other sites before I reboot, the problem will go
away.

Any help would be appreciated. Thanks!

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: cache and multple languages

2009-08-06 Thread cwurld

Hi,

Thanks for the response and for sharing your code. It looks like it is
exactly what I need. I am somewhat surprised that functionality is not
a standard part of django.

I will give it a try sometime next week!

Thanks again,
Chuck

On Aug 5, 5:17 pm, kmike  wrote:
> Hi,
> I've recently create an app for advanced view caching. It allow pages
> to be cached based on anything in request, specific cookies for
> example.
> Please checkhttp://bitbucket.org/kmike/django-view-cache-utils/wiki/Home
>
> If you have any questions about it feel free to ask.
>
> On 5 авг, 20:11, cwurld  wrote:
>
> > Hi,
>
> > I have been successfully running a multi-language site for a while
> > now. The users language pref is stored (along with other data) in a
> > cookie.
>
> > Recently, I have been trying to cache some of the more common and
> > processor intensive views. Since the language code is not in the url,
> > I can't figure out how to cache pages based on language.
>
> > I looked in to the vary_on_header decorator, but I do not see how to
> > get that to work since the cookies vary on lots of stuff in addition
> > to language and I doubt I can get my users to change the Accept-
> > Language attribute in the request header.
>
> > Any ideas?
>
> > Thanks,
> > Chuck
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



cache and multple languages

2009-08-05 Thread cwurld

Hi,

I have been successfully running a multi-language site for a while
now. The users language pref is stored (along with other data) in a
cookie.

Recently, I have been trying to cache some of the more common and
processor intensive views. Since the language code is not in the url,
I can't figure out how to cache pages based on language.

I looked in to the vary_on_header decorator, but I do not see how to
get that to work since the cookies vary on lots of stuff in addition
to language and I doubt I can get my users to change the Accept-
Language attribute in the request header.

Any ideas?

Thanks,
Chuck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Windows development server problem

2009-07-21 Thread cwurld

Hi,

Sorry for not giving more details. I did not want to get into my code
as much as I was hoping to find out more about how the dev server
might differ from the command line.

I was using the pod module (http://code.google.com/p/pickled-object-
database/) in addition to mysql.

It turns out that the reason the code would not work in the dev server
was based differences in the way import statements function in the dev
server. When I imported the my pod database models using the command
line each class ended up with a names like models.AModel. But when I
imported them using the dev server they ended up with names like
myproject.models.AModel. Since pod derives info from the class name,
it failed in one case and worked in the other.

I should note that pod is still in development. I think the way info
is derived from class names will need to be changed.

Thanks for all your comments,
Chuck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Windows development server problem

2009-07-20 Thread cwurld

Hi,

I have a snippet of code that runs fine as a standalone program. But
when I incorporate it into a view and access that view w the
development server, the snippet no longer works.

What is the difference between the python interpreter and the
development server?

Thanks,
Chuck

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Foreign Key Problem

2008-10-24 Thread cwurld

>
> ALTER TABLE  ENGINE=INNODB;
>

I changed all my tables to InnoDB. That seems to have solved the
problem. Thanks for the suggestion.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Foreign Key Problem

2008-10-23 Thread cwurld

Hi,

I have been using django for about a year and a half. It has been
great. My hat is off to all the developers.

I am trying to port my project to django 1.0 for 0.97. I am using
MySQL. The ported version seems to be working well.

The problem is that am trying to add a new model that contains a
foreign key to an old model. For debugging I have stripped the new
model down to bare essentials. Here it is:

class XYZContent(models.Model):
name=models.CharField(max_length=256, blank=False)
disease=models.ForeignKey(MedicalBranch)

When I run syncdb, the table is created (I can see it with MySQL
Admin), but I get the following error:


C:\Documents and Settings\CCM\Desktop\pldev>python manage.py syncdb
Creating table medical_xyzcontent
Traceback (most recent call last):
  File "manage.py", line 11, in ?
execute_manager(settings)
  File "C:\Python24\Lib\site-packages\django\core\management
\__init__.py", line
340, in execute_manager
utility.execute()
  File "C:\Python24\Lib\site-packages\django\core\management
\__init__.py", line
295, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python24\Lib\site-packages\django\core\management\base.py",
line 77,
in run_from_argv
self.execute(*args, **options.__dict__)
  File "C:\Python24\Lib\site-packages\django\core\management\base.py",
line 96,
in execute
output = self.handle(*args, **options)
  File "C:\Python24\Lib\site-packages\django\core\management\base.py",
line 178,
 in handle
return self.handle_noargs(**options)
  File "C:\Python24\Lib\site-packages\django\core\management\commands
\syncdb.py"
, line 80, in handle_noargs
cursor.execute(statement)
  File "C:\Python24\Lib\site-packages\django\db\backends\util.py",
line 19, in e
xecute
return self.cursor.execute(sql, params)
  File "C:\Python24\Lib\site-packages\django\db\backends\mysql
\base.py", line 83
, in execute
return self.cursor.execute(query, args)
  File "C:\Python24\lib\site-packages\MySQLdb\cursors.py", line 163,
in execute
self.errorhandler(self, exc, value)
  File "C:\Python24\lib\site-packages\MySQLdb\connections.py", line
35, in defau
lterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1005, "Can't create table '.\
\cwurld_pldev\
\#sql-f1c_3b.frm' (errno: 150)")
---


Here is the sql generated by the model:

BEGIN;
CREATE TABLE `content_algoxxx` (
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
`name` varchar(256) NOT NULL,
`disease_id` integer NOT NULL
)
;
ALTER TABLE `content_algoxxx` ADD CONSTRAINT
disease_id_refs_id_5c05e27d FOREIGN
 KEY (`disease_id`) REFERENCES `medical_medicalbranch` (`id`);
COMMIT;

I do not know if it matters, but the old table that is being
referenced is MyISAM, while the newly created table that contains the
reference is InnoDB.

Thanks,
Chuck






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: runserver error

2008-09-25 Thread cwurld

Problem solved - I am using the multilingual module. Although I
uploaded the version that is needed for django 1.0, my path was still
pointing to the old version.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: runserver error

2008-09-25 Thread cwurld



On Sep 25, 1:10 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Sep 25, 5:42 pm, cwurld <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am trying to upgrade my site from 0.97 to 1.0. When I use the
> > command:
>
> > python manage.py runserver
>
> > I get the error:
> > Error: cannot import name connect
>
> > Any ideas how to resolve this?
>
> > Thanks,
> > Chuck
>
> That clearly isn't the full traceback. It would be more helpful if you
> posted the whole thing.
>
> However, it's likely that this is related to the signals refactoring.
> Did you read the Backwards Incompatible Changes page before upgrading?
> If you had you would have seen 
> this:http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Signa...
> --
> DR.

It is the complete message that I get when I run the command from the
windows command line. That is why it is so frustrating. If I had more
to go on, I probably could solve it myself.

And yes, I did read that document, including the section on signals,
before I started this thread. But I thought that before I roll up my
sleeves and start studying the inner guts of django, I would ask for
some help.

Chuck



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



runserver error

2008-09-25 Thread cwurld

Hi,

I am trying to upgrade my site from 0.97 to 1.0. When I use the
command:

python manage.py runserver

I get the error:
Error: cannot import name connect

Any ideas how to resolve this?

Thanks,
Chuck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Random HTTP Error 500's - ImproperlyConfigured

2008-09-03 Thread cwurld

I doubt that would be the cause, given that the module it cannot load
changes from crash to crash.

I was wondering if it could be some sort of timing issue. Maybe the
server times out while looking for the file. Or maybe the file is
temporarily locked? I am grasping at straws here...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Random HTTP Error 500's - ImproperlyConfigured

2008-09-02 Thread cwurld

Hi,

My site has recently starting generating a lot of HTTP Error 500's.
The traceback is always:

ImproperlyConfigured: Error importing request processor module xxx:
"No module named yyy"

where xxx and yyy are random modules. I know these modules are present
and working correctly. Most of the time all the modules load without
errors.

Also, it does not seem to matter what page is being requested.

I am using revision 7153.

Thanks,
Chuck



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: error on manipulator fields

2008-06-28 Thread cwurld

I tried the newforms-admin branch - it did not solve the problem. I am
now back to revision 7776 of the trunk.

I think the problem is in the documentation. It seems like you must
add a "get_manipulator_field_objs" method to your customized class.
For example, I added:

def get_manipulator_field_objs(self):
return [oldforms.TextField]

You can see examples in django/db/models/fields/__init__.py

Chuck

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Include tag - encoding

2007-11-21 Thread cwurld

opps - my mistake. The include file was not unicode encoded in utf-8.
It actually was ascii with chars above above 127 making up the Spanish
chars. When I converted it to unicode utf-8 all worked as expected.

Chuck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django Web Hosting Service

2007-11-21 Thread cwurld

http://www.webfaction.com/

They are amazing and reasonably priced. Their support is great. They
have exceeded my expectations many times.

Chuck

On Nov 21, 7:40 am, "Ronaldo Z. Afonso" <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> Can anybody recommend me  a Django Web Hosting Service?
> Thanks.
>
> Ronaldo.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Include tag - encoding

2007-11-20 Thread cwurld

Hi,

I have a block of text that I load into a webpage using an {%
include  %} tag. I have two versions of the include file. One in
English, the other in Spanish. I have no problem loading either one.
However the Spanish characters in the Spanish file are not displayed
properly.

I tried putting some of the Spanish text directly in the webpage and
that text was properly displayed. So I am guessing that the include
tag is getting the content from the file as if it were ascii and not
utf-8.

I am using version 0.96.

Any suggestions?

Thanks,
Chuck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Showing a Maintenance Page

2007-08-08 Thread cwurld

I do my development locally on windows xp. When things are the way I
want them, I upload the code to a linux based shared server.

Occasionally, even thought the code works locally, it breaks the live
site. This would be much less of a problem if I could display a static
page describing to the users that the site is temporarily unavailable
because of maintenance.

I have been trying to work with the shared server interface to
redirect requests to a static site during maintenance. Then I started
thinking that it might be better to handle this in middleware. If the
user accessing the site was me, the request would get processed
normally. But if the request came from anyone else they would get
redirected to a static page.

In order to have this redirect work, it would have to be very early in
the event processing, given that things could be pretty messed up. It
would be best if this middleware could be run before any db access is
needed, before urls.py and even before settings.py get called.

In order to minimize the code that runs, I would be willing to switch
this function on and off by manually editing the middleware file.

So - django gurus- what do you think of this idea? Any things I should
be consider while implementing it? How do others handle this
situation?

Working late at night may not be an option soon as our site might go
global soon.

Thanks,
Chuck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Authenticating w Apache

2007-05-19 Thread cwurld

Here is the answer I was looking for: http://www.djangosnippets.org/snippets/62/

I post it here to save others the time it took me to find this.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Authenticating w Apache

2007-05-17 Thread cwurld

Hi,

I am trying to implement the code in the django docs called:
Authenticating against Django's user database from Apache

I am not having much luck. The field req.user that is sent to the
mod_python module is always empty.

Do I need to put an .htaccess file into the dir that I am trying to
protect and authenticate thru django?

How does the "req" variable that is passed to
django.contrib.auth.handlers.modpython get it's values?

Thanks,
Chuck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Preventing Multiple Logins

2007-03-17 Thread cwurld

Does anyone know how the SESSION_EXPIRE_AT_BROWSER_CLOSE works? In
other words, how does the Django session know the browser closed? It
seems like this mechanism could be used to accomplish the above.

Chuck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Preventing Multiple Logins

2007-03-16 Thread cwurld

Hi,

In order for users to use my Django site they must login. I am using
the standard auth app. I set the session to expire when the browser is
closed or when the user clicks a log out button.

I would like to find a way to prevent users from simultaniously
logging in from different computers but using the same username and
password.

Any suggestions?

Thanks,
Chuck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Problems w Authenticating against Django's user database from Apache

2007-01-16 Thread cwurld


Hi,

I followed the instructions in the documentation for Authenticating
against Django's user database from Apache. But I cannot get it to work
correctly. This is the error message I am getting:

File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py",
line 299, in HandlerDispatch
   result = object(req)

 File
"/home2/cwurld/lib/python2.4/django/contrib/auth/handlers/modpython.py",
line 33, in authenhandler
   user = User.objects.get(**kwargs)

 File "/home2/cwurld/lib/python2.4/django/db/models/manager.py", line
67, in get
   return self.get_query_set().get(*args, **kwargs)

 File "/home2/cwurld/lib/python2.4/django/db/models/query.py", line
214, in get
   assert len(obj_list) == 1, "get() returned more than one %s -- it
returned %s! Lookup parameters were %s" %
(self.model._meta.object_name, len(obj_list), kwargs)

AssertionError: get() returned more than one User -- it returned 4!
Lookup parameters were {'username': None, 'is_staff': True,
'is_active': True}


It apears that the username of the person logged in is getting lost
somewhere. During the db lookup the username is None. I get 4 records
since there are 4 users.

Anyone have any ideas how to fix this?

Thanks,
Chuck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Problems Authenticating against Apache

2007-01-16 Thread cwurld


Hi,

I am trying to implement "Authenticating against Django's user database
from Apache" from
http://www.djangoproject.com/documentation/apache_auth/ . The problem I
am running into is that the username attribute in the request is set to
None. This causes the authentication to fail because when django tries
to get information about the user from the database, the query returns
multiple results.

Anyone have any suggestions?

Thanks,
Chuck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



verdjnlib templatepages vs django static content server

2007-01-15 Thread cwurld


Hi,

I was reviewing the code for two different ways of serving static
webpages:

1) verdjnlib templatepages ( http://www.verdjn.com/wiki/TemplatePages )

2) django static pages (
http://www.djangoproject.com/documentation/static_files/ )

and i can't see much difference between these two methods. Is there any
difference either in speed or security?

( I know serving static pages w django is frowned upon, but it seems
like the best way for me to transition from a legacy static web site
and django).

Thanks,
Chuck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Generating Javascript w Django

2007-01-11 Thread cwurld

Hi,

Does this make sense? I wanted some code to cycle thru some banner ads.
I could have done it with dojo doing a callback to my view, have my
view send the image path and the corresponding url, but that seemed
like a lot of activity for such a simple process.

Instead, I generated the javascript as a string, including the list of
images and urls as variables in the script, then I passed the string
containing the javascript code as a variable that got inserted in the
template. It works. But it seems like a strange way to solve this
problem.

Any comments or suggestions?

Thanks,
Chuck


--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



A simple app for printing debugging messages

2006-12-21 Thread cwurld


Hi,

I just posted a simple app, on the Django wiki, for printing debug
messages in the production environment. I know that bugs are supposed
to be worked out prior to that, but for a newbie like me, it never
seems to work out that way.

The link is:
http://code.djangoproject.com/wiki/SimplePrintAppForDebugging

Cheers,
CCM


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: CSS Basics

2006-12-20 Thread cwurld


So when one says "Serve from Django" does that mean use the "view
django.views.static.serve"?

The documentation says that is not secure. Does anyone know what the
security risk is?

Thanks,
Chuck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: CSS Basics

2006-12-20 Thread cwurld


Thanks for all your replies. I can get things working the way you
recommend, but I am concerned with the way it forces me to separate
parts of my apps and it seems to create unnecessary complexity.

I think it is important to distinguish static items based on size. My
css files tend to be very small (less than 1kB). I think it would be
much easier to manage if I could just keep those files with my app. I
was thinking of using the {% include %} template tag pull in the css.
Allthough this seems like a hack.

There must be a way to keep an app and its static components together.
The Django Admin app seems to do this.

Thanks again for all your thoughtful comments.

Chuck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



CSS Basics

2006-12-19 Thread cwurld


Hi,

I don't understand why css files are special in django. If I have a
template that contains inline style commands, nothing special needs to
be done. But if I put those same commands in a separate file, now that
file needs to be in a special location that needs to be handled by some
special code.

It seems like I am really missing something here. But based on all the
other questions on css, it seems like many others are just as confused
as I am.

Thanks,
Chuck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Maintenance

2006-11-16 Thread cwurld

Hi,

I am working on my first Django powered website. I am concerned about
how to modify apps after the site has gone live. For example, I have
created a model that contains a class based on the Django Auth User
class. Lets say that I go live and have 10,000 users in the db, then I
decide I want to add an attribute to that class. This would require a
new column to be added to the table in the db and possibly assign some
sort of default value to the existing customers. I know how I could do
that manually. Are their any Django tools to make that process easier.

Also, more generally, can anyone recommend any links,docs, etc... that
discuss maintenance issues?

Thanks,
Chuck


--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---