Re: WSGI Issues - webfaction

2012-03-14 Thread william ratcliff
I can't answer this now, but the support at webfaction is really good and
remarkably quick if no one here can get back to you quickly...

On Wed, Mar 14, 2012 at 3:22 PM, hack  wrote:

> Hey folks,
> I've finally got my app ready to put it online and got an account over at
> webfaction.  I've set everything setup and configured, but I missed a step
> somewhere and not sure exactly which one.  When I type in my url I get a
> 404 as shown below.  However, the message appears as though it is running
> django and accessing the appropriate url's file.
>
> Normally I would run my app as follows: localhost:8080/myapp/index/ or
> something like that.  However, if I try just my domain name I get the 404,
> if I append /myapp/index/ to the end of my domain name (ie -
> http://www.mysite.com/myapp/index/ I still get the same error.
>
> I've never used WSGI before, but have an idea of what's going on.  I've
> been reading all the webfaction doces too.  Does anyone now how I can fix
> this issue in a hurry?  Thanks.
>
> Page not found (404) Request Method: GETRequest URL:
> http://www.mysite.com/
>
> Using the URLconf defined in myurls.urls, Django tried these URL
> patterns, in this order:
>
>1. ^myapp/
>
> The current URL, , didn't match any of these.
>
> You're seeing this error because you have DEBUG = True in your Django
> settings file. Change that to False, and Django will display a standard
> 404 page.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/PavviyLAwUoJ.
> 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.
>

-- 
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: svm python

2012-03-30 Thread william ratcliff
Libsvm or scikit-learn are light
On Mar 30, 2012 6:19 PM, "Leotis buchanan" 
wrote:

> Try shogun,it has python bindings
> Regards
> Leotis Buchanan
> Co-Founder
> Exterbox
>
>
>
>
> On Fri, Mar 30, 2012 at 8:24 AM, dummyman dummyman wrote:
>
>> Thanks a lot.Any other alternative ?
>>
>>
>> On Fri, Mar 30, 2012 at 5:51 PM, Jeff Heard 
>> wrote:
>>
>>> Look in Orange. http://orange.biolab.si/
>>>
>>>
>>>
>>> On Mar 30, 2012, at 2:23 AM, dummyman dummyman 
>>> wrote:
>>>
>>> Is any one aware of svm implementation using python ?
>>> Apart from using weka tool ?
>>>
>>>
>>> On Thu, Mar 29, 2012 at 9:21 AM, dummyman dummyman 
>>> wrote:
>>>
 Hi,

 I am looking for svm classifier implementation in python. My input is a
 set of feature vectors of the form
 [Feature1,Feature2,[Feature3],Feature4] =>This is for a user

 so the input is basically a multidimensional list in python

 I have a set of users . So we have of multidimensional lists.
 Output should be confusion matrix or a statistical analysis

 Which is the best implementation of svm python module which suits these
 needs ?



>>>  --
>>> 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.
>>>
>>>  --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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: Django tutorial

2012-04-10 Thread william ratcliff
Can you try creating a file in that directory at the top of your
settings.py file?
On Apr 10, 2012 5:15 PM, "Ed McLaughlin"  wrote:

> DATABASES = {
>'default': {
>'ENGINE': 'django.db.backends.sqlite3', # Add
> 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
>'NAME': '/usr/local/mysql/data/mysite',  #
> Or path to database file if using sqlite3.
>'USER': '',  # Not used with sqlite3.
>'PASSWORD': '',  # Not used with sqlite3.
>'HOST': '',  # Set to empty string for
> localhost. Not used with sqlite3.
>'PORT': '',  # Set to empty string for
> default. Not used with sqlite3.
>}
> }
>
> On Apr 10, 4:27 am, Ejah  wrote:
> > Can you post the db part of your settings file?
> >
> > On 10 apr, 06:05, Ed McLaughlin  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > _mysql.so is in there. When I try using sqlite I get this:
> >
> > > Eds-MacBook-Air:mysite3 edmclaugh76$ python manage.py syncdb
> > > Traceback (most recent call last):
> > >   File "manage.py", line 10, in 
> > > execute_from_command_line(sys.argv)
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > __init__.py", line 443, in execute_from_command_line
> > > utility.execute()
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > __init__.py", line 382, in execute
> > > self.fetch_command(subcommand).run_from_argv(self.argv)
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > base.py", line 196, in run_from_argv
> > > self.execute(*args, **options.__dict__)
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > base.py", line 232, in execute
> > > output = self.handle(*args, **options)
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > base.py", line 371, in handle
> > > return self.handle_noargs(**options)
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > commands/syncdb.py", line 57, in handle_noargs
> > > cursor = connection.cursor()
> > >   File "/Library/Python/2.7/site-packages/django/db/backends/
> > > __init__.py", line 306, in cursor
> > > cursor = self.make_debug_cursor(self._cursor())
> > >   File "/Library/Python/2.7/site-packages/django/db/backends/sqlite3/
> > > base.py", line 281, in _cursor
> > > self._sqlite_create_connection()
> > >   File "/Library/Python/2.7/site-packages/django/db/backends/sqlite3/
> > > base.py", line 271, in _sqlite_create_connection
> > > self.connection = Database.connect(**kwargs)
> > > sqlite3.OperationalError: unable to open database file
> >
> > > Any ideas? I really appreciate the help!
> >
> > > On Apr 9, 10:16 pm, Mario Gudelj  wrote:
> >
> > > > Go to
> /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-inte
> l.egg/
> > > > on your Mac and see if _mysql.so is int there. You may need to
> re-install
> > > > MySQL_python connector. Maybe this can helphttp://
> www.brambraakman.com/blog/comments/installing_mysql_python_mys...
> >
> > > > Otherwise, you can always use SQlite for dev environment until you
> go to
> > > > production. I find it a lot easier to manage.
> >
> > > > On 10 April 2012 10:54, Ed McLaughlin  wrote:
> >
> > > > > Hello! I am working through the Django tutorial (
> > > > >https://docs.djangoproject.com/en/1.4/intro/tutorial01/) and I have
> > > > > hit a roadblock in the 'database setup' portion of part 1. When I
> > > > > enter the command 'python manage.py syncdb' I get the error below.
> I
> > > > > believe I properly installed MySQL Community Server and mysqldb
> > > > > Any help would be GREATLY appreciated.
> >
> > > > > Eds-MacBook-Air:mysite edmclaugh76$ python manage.py syncdb
> > > > > Traceback (most recent call last):
> > > > >  File "manage.py", line 10, in 
> > > > >execute_from_command_line(sys.argv)
> > > > >  File "/Library/Python/2.7/site-packages/django/core/management/
> > > > > __init__.py", line 443, in execute_from_command_line
> > > > >utility.execute()
> > > > >  File "/Library/Python/2.7/site-packages/django/core/management/
> > > > > __init__.py", line 382, in execute
> > > > >self.fetch_command(subcommand).run_from_argv(self.argv)
> > > > >  File "/Library/Python/2.7/site-packages/django/core/management/
> > > > > __init__.py", line 261, in fetch_command
> > > > >klass = load_command_class(app_name, subcommand)
> > > > >  File "/Library/Python/2.7/site-packages/django/core/management/
> > > > > __init__.py", line 69, in load_command_class
> > > > >module = import_module('%s.management.commands.%s' % (app_name,
> > > > > name))
> > > > >  File
> "/Library/Python/2.7/site-packages/django/utils/importlib.py",
> > > > > line 35, in import_module
> > > > >__import__(name)
> > > > >  File "/Library/Python/2.7/site-packages/django/core/management/
> > > > > commands/syncdb.py", l

Re: Django tutorial

2012-04-10 Thread william ratcliff
If mysite is a directory, rather than a file, then Daniel is correct.
On Apr 10, 2012 5:33 PM, "andrea mucci"  wrote:

> hi Ed
>
> you have configured the DB with the sqlite3 driver and you point the NAME
> db to a mysql folder.
> you need to put the folder for your sqlite database.
> cheers,
> El 10/04/2012, a las 23:15, Ed McLaughlin escribió:
>
> > DATABASES = {
> >'default': {
> >'ENGINE': 'django.db.backends.sqlite3', # Add
> > 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
> >'NAME': '/usr/local/mysql/data/mysite',  #
> > Or path to database file if using sqlite3.
> >'USER': '',  # Not used with sqlite3.
> >'PASSWORD': '',  # Not used with sqlite3.
> >'HOST': '',  # Set to empty string for
> > localhost. Not used with sqlite3.
> >'PORT': '',  # Set to empty string for
> > default. Not used with sqlite3.
> >}
> > }
> >
> > On Apr 10, 4:27 am, Ejah  wrote:
> >> Can you post the db part of your settings file?
> >>
> >> On 10 apr, 06:05, Ed McLaughlin  wrote:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>> _mysql.so is in there. When I try using sqlite I get this:
> >>
> >>> Eds-MacBook-Air:mysite3 edmclaugh76$ python manage.py syncdb
> >>> Traceback (most recent call last):
> >>>   File "manage.py", line 10, in 
> >>> execute_from_command_line(sys.argv)
> >>>   File "/Library/Python/2.7/site-packages/django/core/management/
> >>> __init__.py", line 443, in execute_from_command_line
> >>> utility.execute()
> >>>   File "/Library/Python/2.7/site-packages/django/core/management/
> >>> __init__.py", line 382, in execute
> >>> self.fetch_command(subcommand).run_from_argv(self.argv)
> >>>   File "/Library/Python/2.7/site-packages/django/core/management/
> >>> base.py", line 196, in run_from_argv
> >>> self.execute(*args, **options.__dict__)
> >>>   File "/Library/Python/2.7/site-packages/django/core/management/
> >>> base.py", line 232, in execute
> >>> output = self.handle(*args, **options)
> >>>   File "/Library/Python/2.7/site-packages/django/core/management/
> >>> base.py", line 371, in handle
> >>> return self.handle_noargs(**options)
> >>>   File "/Library/Python/2.7/site-packages/django/core/management/
> >>> commands/syncdb.py", line 57, in handle_noargs
> >>> cursor = connection.cursor()
> >>>   File "/Library/Python/2.7/site-packages/django/db/backends/
> >>> __init__.py", line 306, in cursor
> >>> cursor = self.make_debug_cursor(self._cursor())
> >>>   File "/Library/Python/2.7/site-packages/django/db/backends/sqlite3/
> >>> base.py", line 281, in _cursor
> >>> self._sqlite_create_connection()
> >>>   File "/Library/Python/2.7/site-packages/django/db/backends/sqlite3/
> >>> base.py", line 271, in _sqlite_create_connection
> >>> self.connection = Database.connect(**kwargs)
> >>> sqlite3.OperationalError: unable to open database file
> >>
> >>> Any ideas? I really appreciate the help!
> >>
> >>> On Apr 9, 10:16 pm, Mario Gudelj  wrote:
> >>
>  Go to
> /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-inte
> l.egg/
>  on your Mac and see if _mysql.so is int there. You may need to
> re-install
>  MySQL_python connector. Maybe this can helphttp://
> www.brambraakman.com/blog/comments/installing_mysql_python_mys...
> >>
>  Otherwise, you can always use SQlite for dev environment until you go
> to
>  production. I find it a lot easier to manage.
> >>
>  On 10 April 2012 10:54, Ed McLaughlin  wrote:
> >>
> > Hello! I am working through the Django tutorial (
> > https://docs.djangoproject.com/en/1.4/intro/tutorial01/) and I have
> > hit a roadblock in the 'database setup' portion of part 1. When I
> > enter the command 'python manage.py syncdb' I get the error below. I
> > believe I properly installed MySQL Community Server and mysqldb
> > Any help would be GREATLY appreciated.
> >>
> > Eds-MacBook-Air:mysite edmclaugh76$ python manage.py syncdb
> > Traceback (most recent call last):
> >  File "manage.py", line 10, in 
> >execute_from_command_line(sys.argv)
> >  File "/Library/Python/2.7/site-packages/django/core/management/
> > __init__.py", line 443, in execute_from_command_line
> >utility.execute()
> >  File "/Library/Python/2.7/site-packages/django/core/management/
> > __init__.py", line 382, in execute
> >self.fetch_command(subcommand).run_from_argv(self.argv)
> >  File "/Library/Python/2.7/site-packages/django/core/management/
> > __init__.py", line 261, in fetch_command
> >klass = load_command_class(app_name, subcommand)
> >  File "/Library/Python/2.7/site-packages/django/core/management/
> > __init__.py", line 69, in load_command_class
> >module = import_module('%s.management.commands.%s' % (app_name,
> > name))
> >  File "/Library/Python/2.7/site-

Re: tutorial part 1...syncing db

2012-04-12 Thread william ratcliff
Can you post your full code somewhere as a zip?



On Thu, Apr 12, 2012 at 2:33 PM, Leonid Toshchev wrote:

> Hello.
> Try to escape spaces. I don`t check how django work when path have
> spaces inside, but i meet same problems in my practice.
>
> p.s. sorry for my bad english.
>
> 12 апреля 2012 г. 21:32 пользователь victoria  написал:
> > On Thu, Apr 12, 2012 at 7:09 PM, Brandy 
> wrote:
> >> I am working (again) through the tutorial part 1. I have made changes to
> >> Engine and Name as specified in the instructions. However, running
> "python
> >> manage.py syncdb" continues to return "Please supply the ENGINE value."
> I
> >> did not encounter this problem the first time I worked through this
> >> tutorial.
> >>
> >> # Django settings for mysite project.
> >>
> >> DEBUG = True
> >> TEMPLATE_DEBUG = DEBUG
> >>
> >> ADMINS = (
> >> # ('Your Name', 'your_em...@example.com'),
> >> )
> >>
> >> MANAGERS = ADMINS
> >>
> >> DATABASES = {
> >> 'default': {
> >> 'ENGINE': 'django.db.backends.sqlite3', # Add
> 'postgresql_psycopg2',
> >> 'mysql', 'sqlite3' or 'oracle'.
> >> 'NAME': 'c:/program files/bitnami
> >> djangostack/mysite/sqlite3.db',  # Or path to
> database
> >> file if using sqlite3.
> >> 'USER': '',  # Not used with sqlite3.
> >> 'PASSWORD': '',  # Not used with sqlite3.
> >> 'HOST': '',  # Set to empty string for
> >> localhost. Not used with sqlite3.
> >> 'PORT': '',  # Set to empty string for
> default.
> >> Not used with sqlite3.
> >> }
> >> }
> >>
> >
> > Your settings seem correct. Which version of django are you using?
> > Have you checked that the settings.py file is in the correct location
> > for your django version?
> >
> > Django 1.4 expects this layout:
> >
> > mysite/
> >manage.py
> >mysite/
> >__init__.py
> >settings.py
> >urls.py
> >wsgi.py
> >
> > While Django 1.3 expects this:
> >
> > mysite/
> >__init__.py
> >manage.py
> >settings.py
> >urls.py
> >
> >
> > Since 1.4 was released this seems one of the most common mistakes that
> > could cause this error.
> >
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Django users" group.
> >> To view this discussion on the web visit
> >> https://groups.google.com/d/msg/django-users/-/qnfmdfEObKAJ.
> >> 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.
> >
> > --
> > 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.
> >
>
> --
> 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.
>
>

-- 
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: tutorial part 1...syncing db

2012-04-12 Thread william ratcliff
Hi Brandy,

I downloaded your project modified the beginning to the following:

# Django settings for mysite project.

import os,sys
HOMEDIR=os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
# ('Your Name', 'your_em...@example.com'),
)

MANAGERS = ADMINS

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add
'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': os.path.join(HOMEDIR,'testdb'),  # Or
path to database file if using sqlite3.
'USER': '',  # Not used with sqlite3.
'PASSWORD': '',  # Not used with sqlite3.
'HOST': '',  # Set to empty string for
localhost. Not used with sqlite3.
'PORT': '',  # Set to empty string for default.
Not used with sqlite3.
}
}

It works under the django 1.4 that I just pulled onto a "virgin" windows 7
box. My suspicion is that in your engine file, you wanted to use:
r'c:/program files/bitnami djangostack/mysite/sqlite3.db'
instead of:
'c:/program files/bitnami djangostack/mysite/sqlite3.db',

This is assuming that you have read/write permissions to that directory,
etc.I prefer the pattern that I used of putting the sqllite database
relative to __file__ because it is easier to move it between machines.
So, for example, if I develop on a mac (or windows), when I deploy to linux
(not so much for the database) for production, I don't have to manipulate
the path throughout the code...Later, if I need to find something relative
to the project root, I can then do a:

from django.conf import settings
and grab settings.HOME as the base directory

Best,
William
(btw. I placed the directory in c:\mysite for my test

so you have:
-- denotes a mysite directory


c:\mysite
manage.py
    --mysite
  __init__.py
  settings.py
  testdb
  urls.py
  wsgi.py


)



2012/4/12 Brandy 

> This is the whole directory.
>
>
> On Thursday, April 12, 2012 2:00:24 PM UTC-5, William Ratcliff wrote:
>
>> Can you post your full code somewhere as a zip?
>>
>>
>>
>> On Thu, Apr 12, 2012 at 2:33 PM, Leonid Toshchev wrote:
>>
>>> Hello.
>>> Try to escape spaces. I don`t check how django work when path have
>>> spaces inside, but i meet same problems in my practice.
>>>
>>> p.s. sorry for my bad english.
>>>
>>> 12 апреля 2012 г. 21:32 пользователь victoria 
>>> написал:
>>> > On Thu, Apr 12, 2012 at 7:09 PM, Brandy 
>>> wrote:
>>> >> I am working (again) through the tutorial part 1. I have made changes
>>> to
>>> >> Engine and Name as specified in the instructions. However, running
>>> "python
>>> >> manage.py syncdb" continues to return "Please supply the ENGINE
>>> value." I
>>> >> did not encounter this problem the first time I worked through this
>>> >> tutorial.
>>> >>
>>> >> # Django settings for mysite project.
>>> >>
>>> >> DEBUG = True
>>> >> TEMPLATE_DEBUG = DEBUG
>>> >>
>>> >> ADMINS = (
>>> >> # ('Your Name', 'your_em...@example.com'),
>>> >> )
>>> >>
>>> >> MANAGERS = ADMINS
>>> >>
>>> >> DATABASES = {
>>> >> 'default': {
>>> >> 'ENGINE': 'django.db.backends.sqlite3', # Add
>>> 'postgresql_psycopg2',
>>> >> 'mysql', 'sqlite3' or 'oracle'.
>>> >> 'NAME': 'c:/program files/bitnami
>>> >> djangostack/mysite/sqlite3.db'**,  # Or path to
>>> database
>>> >> file if using sqlite3.
>>> >> 'USER': '',  # Not used with sqlite3.
>>> >> 'PASSWORD': '',  # Not used with sqlite3.
>>> >> 'HOST': '',  # Set to empty string for
>>> >> localhost. Not used with sqlite3.
>>> >> 'PORT': '',  # Set to empty string for
>>> default.
>>> >> Not used with sqlite3.
>>> >> }
>>> >> }
>>> >>
>

Re: Any tool to validate django templates?

2012-04-16 Thread william ratcliff
Wing IDE also highlights templates.
On Apr 16, 2012 3:16 AM, "Matt Schinckel"  wrote:

> Generally, I just use syntax highlighting in my text editor: that usually
> helps me find errors.
>
> TextMate has a nice HTML (Django Template) mode.
>
> Matt.
>
>
> On Monday, April 16, 2012 2:12:14 AM UTC+9:30, Marcin wrote:
>>
>> Hi all,
>>
>> I've got a template that isn't parsing, but the error is the nondescript:
>> **TemplateSyntaxError: Could not parse the remainder: '"{%' from '"{%'
>>
>> Is there a tool that can help locate the source of the error?
>>
>> Marcin
>>
>> --
>> Marcin Tustin
>> Tel: 07773 787 105
>>
>>   --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/IOteWda5w0UJ.
> 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.
>

-- 
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: Graphs for my Django Application

2012-06-08 Thread william ratcliff
Jqplot is a succesor to flot.
On Jun 8, 2012 7:12 AM, "Steve McConville" 
wrote:

> > Can anyone give me idea how to provide graphs in Django.
>
> Assuming you mean "graph" in the "graph theory" sense, then NetworkX
> (http://networkx.lanl.gov/) is a mature graph library for python.
>
> --
> steve
>
> --
> 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.
>
>

-- 
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: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread william ratcliff
Sounds fun!

On Sunday, July 1, 2012, James wrote:

>
>
> On Saturday, June 30, 2012 11:10:27 AM UTC-4, Cal Leeming [Simplicity
> Media Ltd] wrote:
>>
>> Hi all,
>>
>> As some of you know, I did a live webcast last year (July 2011) on our
>> LLG project, which explained how we overcome some of the problems
>> associated with large data processing.
>>
>> After reviewing the video, I found that the sound quality was very
>> poor, the slides weren't very well structured, and some of the information
>> is now out of date (at the time it was 40mil rows, now we're dealing with
>> 700+mil rows).
>>
>> Therefore, I'm considering doing another live webcast (except this time
>> it'll be recorded+posted the next day, the stream will be available in
>> 1080p, it'll be far better structured, and will only last 50 minutes).
>>
>> The topics I'd like to cover are:
>>
>> * Bulk data processing where bulk_insert() is still not viable (we went
>> from 30 rows/sec to 8000 rows/sec on bulk data processing, whilst still
>> using the ORM - no raw sql here!!)
>> * Applying faux child/parent relationship when standard ORM is too
>> expensive (allows for ORM approach without the cost)
>> * Applying faux ORM read-only structure to legacy applications (allows
>> ORM usage on schemas that weren't properly designed, and cannot be changed
>> - for example, vendor software with no source code).
>> * New Relic is beautiful, but expensive. Hear more about our plans to
>> make an open source version.
>> * Appropriate use cases for IAAS vs colo with SSDs.
>> * Percona is amazing, some of the tips/tricks we've learned over.
>>
>> If you'd like to see this happen, please leave a reply in the thread - if
>> enough people want this, then we'll do public vote for the scheduled date.
>>
>> Cheers
>>
>> Cal
>>
>
> Sounds great!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/CLrrYBziHO4J.
> To post to this group, send email to 
> django-users@googlegroups.com 'django-users@googlegroups.com');>
> .
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com  'django-users%2bunsubscr...@googlegroups.com');>.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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: How to print a graph

2012-08-01 Thread william ratcliff
Do you need to display a graph, or allow the user to print one?

On Wed, Aug 1, 2012 at 12:06 PM, Peregil  wrote:

> The information comes from a database, which I got it with a problem.
> However, I need to show a graph as well.
>
> Please let me know any suggestions...
>
> thanks and have great day.
>
> --
> 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.
>

-- 
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: How to print a graph

2012-08-01 Thread william ratcliff
What are you using for your plotting package?  Matplotlib?   I think that
this will show the plot (on the server machine)--the easiest thing I can
think of for now (assuming that you are using matplotlib) is to generate a
pdf and send them the file.   I haven't tried printing directly--is this
intranet, or external facing?  Do you have any restrictions on using
javascript?

William

On Wed, Aug 1, 2012 at 12:58 PM, Peregil  wrote:

> a user to print one
>
> I did this in python, but throws an error in django when I tried to run
> it... I have seen some examples of saving an image, but I would like to
> avoid that since I don't want to open and close a file...
>
> let me know if you have any idea
>
> thanks
>
> Python program:
>
>
> def drawPlot(arrayGene1, arrayGene2):
> message = ''
> (m,b) = polyfit(arrayGene1,arrayGene2,1)
> yp= polyval([m,b],arrayGene1)
>
> xlable('Gene 1')
> ylable('Gene 2')
> title('Correlation Graph')
> plot(arrayGene1, yp)
> scatter(arrayGene1,arrayGene2,marker='>')
> show()
> return(message)
>
>
>
> On Wed, Aug 1, 2012 at 12:21 PM, william ratcliff <
> william.ratcl...@gmail.com> wrote:
>
>> Do you need to display a graph, or allow the user to print one?
>>
>> On Wed, Aug 1, 2012 at 12:06 PM, Peregil  wrote:
>>
>>> The information comes from a database, which I got it with a problem.
>>> However, I need to show a graph as well.
>>>
>>> Please let me know any suggestions...
>>>
>>> thanks and have great day.
>>>
>>> --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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: How to print a graph

2012-08-01 Thread william ratcliff
As a quick hack, you could generate a postscript file using savefig().
Then, you could print that from the commandline to a local printer--If they
don't need a physical printout, I would generate a pdf file and serve it to
them and let them print it.   If I figure out how to print directly using
the printer dialog, I'll let you know...

William

On Wed, Aug 1, 2012 at 2:05 PM, Peregil  wrote:

> it is an intranet, and I don't have any restrictions
> using JavaScript... abd I am using matplotlib... I thing it is the only way
> to save a file and put it on the web page...
>
>
>
> On Wed, Aug 1, 2012 at 1:59 PM, william ratcliff <
> william.ratcl...@gmail.com> wrote:
>
>> What are you using for your plotting package?  Matplotlib?   I think that
>> this will show the plot (on the server machine)--the easiest thing I can
>> think of for now (assuming that you are using matplotlib) is to generate a
>> pdf and send them the file.   I haven't tried printing directly--is this
>> intranet, or external facing?  Do you have any restrictions on using
>> javascript?
>>
>> William
>>
>>
>> On Wed, Aug 1, 2012 at 12:58 PM, Peregil  wrote:
>>
>>> a user to print one
>>>
>>> I did this in python, but throws an error in django when I tried to run
>>> it... I have seen some examples of saving an image, but I would like to
>>> avoid that since I don't want to open and close a file...
>>>
>>> let me know if you have any idea
>>>
>>> thanks
>>>
>>> Python program:
>>>
>>>
>>> def drawPlot(arrayGene1, arrayGene2):
>>> message = ''
>>> (m,b) = polyfit(arrayGene1,arrayGene2,1)
>>>     yp    = polyval([m,b],arrayGene1)
>>>
>>> xlable('Gene 1')
>>> ylable('Gene 2')
>>> title('Correlation Graph')
>>> plot(arrayGene1, yp)
>>> scatter(arrayGene1,arrayGene2,marker='>')
>>> show()
>>> return(message)
>>>
>>>
>>>
>>> On Wed, Aug 1, 2012 at 12:21 PM, william ratcliff <
>>> william.ratcl...@gmail.com> wrote:
>>>
>>>> Do you need to display a graph, or allow the user to print one?
>>>>
>>>> On Wed, Aug 1, 2012 at 12:06 PM, Peregil  wrote:
>>>>
>>>>> The information comes from a database, which I got it with a problem.
>>>>> However, I need to show a graph as well.
>>>>>
>>>>> Please let me know any suggestions...
>>>>>
>>>>> thanks and have great day.
>>>>>
>>>>> --
>>>>> 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.
>>>>>
>>>>
>>>>  --
>>>> 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.
>>>>
>>>
>>>  --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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: How to print a graph

2012-08-01 Thread william ratcliff
If you just need the graphic on the web, then savefig("myfile.png") and
insert the image link in your template...Since you're already using
matplotlib, there's no need for another package.


William

On Wed, Aug 1, 2012 at 3:19 PM, Peregil  wrote:

> I need to have the graphic on a web page... as soon as a user hit summit...
>
>
>
> On Wed, Aug 1, 2012 at 3:16 PM, william ratcliff <
> william.ratcl...@gmail.com> wrote:
>
>> As a quick hack, you could generate a postscript file using savefig().
>> Then, you could print that from the commandline to a local printer--If they
>> don't need a physical printout, I would generate a pdf file and serve it to
>> them and let them print it.   If I figure out how to print directly using
>> the printer dialog, I'll let you know...
>>
>> William
>>
>>
>> On Wed, Aug 1, 2012 at 2:05 PM, Peregil  wrote:
>>
>>> it is an intranet, and I don't have any restrictions
>>> using JavaScript... abd I am using matplotlib... I thing it is the only way
>>> to save a file and put it on the web page...
>>>
>>>
>>>
>>> On Wed, Aug 1, 2012 at 1:59 PM, william ratcliff <
>>> william.ratcl...@gmail.com> wrote:
>>>
>>>> What are you using for your plotting package?  Matplotlib?   I think
>>>> that this will show the plot (on the server machine)--the easiest thing I
>>>> can think of for now (assuming that you are using matplotlib) is to
>>>> generate a pdf and send them the file.   I haven't tried printing
>>>> directly--is this intranet, or external facing?  Do you have any
>>>> restrictions on using javascript?
>>>>
>>>> William
>>>>
>>>>
>>>> On Wed, Aug 1, 2012 at 12:58 PM, Peregil  wrote:
>>>>
>>>>> a user to print one
>>>>>
>>>>> I did this in python, but throws an error in django when I tried to
>>>>> run it... I have seen some examples of saving an image, but I would like 
>>>>> to
>>>>> avoid that since I don't want to open and close a file...
>>>>>
>>>>> let me know if you have any idea
>>>>>
>>>>> thanks
>>>>>
>>>>> Python program:
>>>>>
>>>>>
>>>>> def drawPlot(arrayGene1, arrayGene2):
>>>>> message = ''
>>>>> (m,b) = polyfit(arrayGene1,arrayGene2,1)
>>>>> yp= polyval([m,b],arrayGene1)
>>>>>
>>>>> xlable('Gene 1')
>>>>> ylable('Gene 2')
>>>>> title('Correlation Graph')
>>>>> plot(arrayGene1, yp)
>>>>> scatter(arrayGene1,arrayGene2,marker='>')
>>>>> show()
>>>>> return(message)
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Aug 1, 2012 at 12:21 PM, william ratcliff <
>>>>> william.ratcl...@gmail.com> wrote:
>>>>>
>>>>>> Do you need to display a graph, or allow the user to print one?
>>>>>>
>>>>>> On Wed, Aug 1, 2012 at 12:06 PM, Peregil  wrote:
>>>>>>
>>>>>>> The information comes from a database, which I got it with a
>>>>>>> problem. However, I need to show a graph as well.
>>>>>>>
>>>>>>> Please let me know any suggestions...
>>>>>>>
>>>>>>> thanks and have great day.
>>>>>>>
>>>>>>> --
>>>>>>> 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.
>>>>>>>
>>>>>>
>>>>>>  --
>>>>>> 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 grou

Re: How to print a graph

2012-08-01 Thread william ratcliff
If you're planning on adding this to your views.py, then you want to move
the import statements to the top of the file (outside of simple), so they
aren't called every time.  Don't import django.


William

On Wed, Aug 1, 2012 at 4:06 PM, Peregil  wrote:

> Great thanks...
>
>I found this function... it seems complicated, but it is kind of
> working... I hope that I can include it in a my web page...
>
>
> # file charts.pydef simple(request):import randomimport django
> import datetimefrom matplotlib.backends.backend_agg import 
> FigureCanvasAgg as FigureCanvasfrom matplotlib.figure import Figure
> from matplotlib.dates import DateFormatterfig=Figure()
> ax=fig.add_subplot(111)x=[]y=[]now=datetime.datetime.now()
> delta=datetime.timedelta(days=1)for i in range(10):x.append(now)  
>   now+=deltay.append(random.randint(0, 1000))ax.plot_date(x, 
> y, '-')ax.xaxis.set_major_formatter(DateFormatter('%Y-%m-%d'))
> fig.autofmt_xdate()canvas=FigureCanvas(fig)
> response=django.http.HttpResponse(content_type='image/png')
> canvas.print_png(response)return response
>
>
> On Wed, Aug 1, 2012 at 3:31 PM, Daniel Molina Wegener wrote:
>
>> On 01/08/12 15:19, Peregil wrote:
>>
>>> I need to have the graphic on a web page... as soon as a user hit
>>> summit...
>>>
>>
>>   If you need to draw a graph, you can try the pygraphviz.
>>
>>   If you need to plot a chart, you can matplotlib, if that is not
>> so easy to implement, you can try using django google charts packages:
>>
>>   
>> http://pypi.python.org/pypi/**django-googlecharts/1.0-alpha-**1<http://pypi.python.org/pypi/django-googlecharts/1.0-alpha-1>
>>
>>   
>> http://pypi.python.org/pypi/**django-google-charts/0.1.1<http://pypi.python.org/pypi/django-google-charts/0.1.1>
>>
>>
>>>
>>>
>>> On Wed, Aug 1, 2012 at 3:16 PM, william ratcliff
>>> >> <mailto:william.ratcliff@**gmail.com>>
>>> wrote:
>>>
>>> As a quick hack, you could generate a postscript file using
>>> savefig().   Then, you could print that from the commandline to a
>>> local printer--If they don't need a physical printout, I would
>>> generate a pdf file and serve it to them and let them print it.   If
>>> I figure out how to print directly using the printer dialog, I'll
>>> let you know...
>>>
>>> William
>>>
>>>
>>> On Wed, Aug 1, 2012 at 2:05 PM, Peregil >> <mailto:pereg...@gmail.com>> wrote:
>>>
>>>  it is an intranet, and I don't have any restrictions
>>> using JavaScript... abd I am using matplotlib... I thing it is
>>> the only way to save a file and put it on the web page...
>>>
>>>
>>>
>>> On Wed, Aug 1, 2012 at 1:59 PM, william ratcliff
>>> >> <mailto:william.ratcliff@**gmail.com
>>> >>
>>>
>>> wrote:
>>>
>>> What are you using for your plotting package?  Matplotlib?
>>> I think that this will show the plot (on the server
>>> machine)--the easiest thing I can think of for now (assuming
>>> that you are using matplotlib) is to generate a pdf and send
>>> them the file.   I haven't tried printing directly--is this
>>> intranet, or external facing?  Do you have any restrictions
>>> on using javascript?
>>>
>>> William
>>>
>>>
>>> On Wed, Aug 1, 2012 at 12:58 PM, Peregil >> <mailto:pereg...@gmail.com>> wrote:
>>>
>>> a user to print one
>>>
>>> I did this in python, but throws an error in django when
>>> I tried to run it... I have seen some examples of saving
>>> an image, but I would like to avoid that since I don't
>>> want to open and close a file...
>>>
>>> let me know if you have any idea
>>>
>>> thanks
>>>
>>> Python program:
>>>
>>>
>>> def drawPlot(arrayGene1, arrayGene2):
>>>  message = ''
>>>  (m,b) = polyfit(arrayGene1,arrayGene2,

Re: How to print a graph

2012-08-01 Thread william ratcliff
Can you attach an example png?   If it's not too complex, you might be able
to do this all clientside as well...


William

On Wed, Aug 1, 2012 at 5:41 PM, william ratcliff  wrote:

> If you're planning on adding this to your views.py, then you want to move
> the import statements to the top of the file (outside of simple), so they
> aren't called every time.  Don't import django.
>
>
> William
>
>
> On Wed, Aug 1, 2012 at 4:06 PM, Peregil  wrote:
>
>> Great thanks...
>>
>>I found this function... it seems complicated, but it is kind of
>> working... I hope that I can include it in a my web page...
>>
>>
>> # file charts.pydef simple(request):import randomimport django
>> import datetimefrom matplotlib.backends.backend_agg import 
>> FigureCanvasAgg as FigureCanvasfrom matplotlib.figure import Figure
>> from matplotlib.dates import DateFormatterfig=Figure()
>> ax=fig.add_subplot(111)x=[]y=[]now=datetime.datetime.now()
>> delta=datetime.timedelta(days=1)for i in range(10):x.append(now) 
>>now+=deltay.append(random.randint(0, 1000))
>> ax.plot_date(x, y, '-')
>> ax.xaxis.set_major_formatter(DateFormatter('%Y-%m-%d'))
>> fig.autofmt_xdate()canvas=FigureCanvas(fig)
>> response=django.http.HttpResponse(content_type='image/png')
>> canvas.print_png(response)return response
>>
>>
>> On Wed, Aug 1, 2012 at 3:31 PM, Daniel Molina Wegener wrote:
>>
>>> On 01/08/12 15:19, Peregil wrote:
>>>
>>>> I need to have the graphic on a web page... as soon as a user hit
>>>> summit...
>>>>
>>>
>>>   If you need to draw a graph, you can try the pygraphviz.
>>>
>>>   If you need to plot a chart, you can matplotlib, if that is not
>>> so easy to implement, you can try using django google charts packages:
>>>
>>>   
>>> http://pypi.python.org/pypi/**django-googlecharts/1.0-alpha-**1<http://pypi.python.org/pypi/django-googlecharts/1.0-alpha-1>
>>>
>>>   
>>> http://pypi.python.org/pypi/**django-google-charts/0.1.1<http://pypi.python.org/pypi/django-google-charts/0.1.1>
>>>
>>>
>>>>
>>>>
>>>> On Wed, Aug 1, 2012 at 3:16 PM, william ratcliff
>>>> >>> <mailto:william.ratcliff@**gmail.com>>
>>>> wrote:
>>>>
>>>> As a quick hack, you could generate a postscript file using
>>>> savefig().   Then, you could print that from the commandline to a
>>>> local printer--If they don't need a physical printout, I would
>>>> generate a pdf file and serve it to them and let them print it.   If
>>>> I figure out how to print directly using the printer dialog, I'll
>>>> let you know...
>>>>
>>>> William
>>>>
>>>>
>>>> On Wed, Aug 1, 2012 at 2:05 PM, Peregil >>> <mailto:pereg...@gmail.com>> wrote:
>>>>
>>>>  it is an intranet, and I don't have any restrictions
>>>> using JavaScript... abd I am using matplotlib... I thing it is
>>>> the only way to save a file and put it on the web page...
>>>>
>>>>
>>>>
>>>> On Wed, Aug 1, 2012 at 1:59 PM, william ratcliff
>>>> mailto:william.ratcliff@**
>>>> gmail.com >>
>>>>
>>>> wrote:
>>>>
>>>> What are you using for your plotting package?  Matplotlib?
>>>> I think that this will show the plot (on the server
>>>> machine)--the easiest thing I can think of for now (assuming
>>>> that you are using matplotlib) is to generate a pdf and send
>>>> them the file.   I haven't tried printing directly--is this
>>>> intranet, or external facing?  Do you have any restrictions
>>>> on using javascript?
>>>>
>>>> William
>>>>
>>>>
>>>> On Wed, Aug 1, 2012 at 12:58 PM, Peregil <
>>>> pereg...@gmail.com
>>>> <mailto:pereg...@gmail.com>> wrote:
>>>>
>>>> a user to print one
>>>>
>>>> I did this 

Re: Issue Deploying Django

2012-08-02 Thread william ratcliff
I will say that I've had pretty good luck hosting with webfaction and
installing packages locally.  They also have really good support--I'd tell
them your use case and ask them if it would work with them.   Even though
it's shared hosting, I do have ssh--though not root

William

On Thu, Aug 2, 2012 at 6:03 PM, JJ Zolper  wrote:

> Yes it seems that way. Thats because its shared hosting and i dont have
> root privleges. bluehost has hindered what I can do with Django.
>
> But does a cloud server at rackspace have root privleges like a vps?
> because i think i need to install these geospatial libraries to be able to
> really make forward progress with my site.
>
> I bought this hosting at bluehost a while ago but i didnt know as much as
> i do know about django and what i need etc so im thinking a new host.
> Either slicehost, maybe a cloud server, something like that with full
> control like root.
>
> JJ
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/jLF6C23y1pEJ.
> 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.
>
>

-- 
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: Django admin site and DEBUG flag.

2011-08-19 Thread william ratcliff
Actually, you might want to just use the following:
http://betterthangrep.com/

to search through the entire project--this program has saved me a lot of
time!

William

On Fri, Aug 19, 2011 at 4:36 AM, Reinout van Rees wrote:

> On 19-08-11 10:27, KC LEE wrote:
>
>> urlpatterns = patterns('',
>>
>> (r'^$', 'accounts.views.front_page'),
>> url(r'social/', include('social_auth.urls')),
>>
>> (r'^admin/', include(admin.site.urls)),
>>
>> (r'^regions/', include('region.urls')),
>>
>> (r'^messages/', include('pimfy_messages.urls')**),
>> (r'^accounts/', include('accounts.urls')),
>> (r'^issue/', include('issue.urls')),
>> (r'^notification/', include('notification.urls')),
>>
>>
> Looks alright. Only noticeable thing: that 'social/' one is the only one
> called with url(). Might be worth a try to remove that url() call around it
> to let it match the rest. Shouldn't matter, but... ;-)
>
>
> You said that admin/* and admin/users/* and admin/groups/* *did* work?
> Which ones don't? If it is for instance /admin/issues/*, look at that issues
> app and see if there's an 'if settings.DEBUG' somewhere in there.
>
>
>
> Reinout
>
> --
> Reinout van Reeshttp://reinout.vanrees.org/
> rein...@vanrees.org 
> http://www.nelen-schuurmans.**nl/
>
> "If you're not sure what to do, make something. -- Paul Graham"
>
> --
> 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+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en
> .
>
>

-- 
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: Regarding postgresql

2011-08-20 Thread william ratcliff
Are you sure that you've installed it to the same python that django is
using?   Can you import it successfully?

On Sat, Aug 20, 2011 at 5:57 AM, Harjot Gill  wrote:

> >
> > the backend should be postgresql_psycopg2 and you should install
> > python-psycopg2.
> I have done this but error remains same.
> It shows me the same error after the installation of the python-psycopg2.
>
> --
> 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.
>
>

-- 
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: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-08-27 Thread william ratcliff
Any problem if we register for both?

On Sat, Aug 27, 2011 at 4:33 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Hey guys,
>
> I'm sending out the webcast invitations now (should receive them in about
> 10 minutes from GoToMeeting). Last chance to jump on if you haven't already.
>
> Cal
>
>
> On Sat, Aug 20, 2011 at 12:32 AM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Hi all,
>>
>> Okay, good news and bad news.
>>
>> The bad news, is that the site/project which sparked this webcast to be
>> made, has had some legal complications and is being shut down - less than 1
>> month after being released :L
>>
>> The good news, is that the webcast will still be going ahead.
>>
>> For those of you that want to see the site it was related to, it's
>> http://www.iliketochan.com .
>>
>> The site itself was a complete 4chan archive, dating back to 2010, peaking
>> at 50 million posts and 17 million images.
>>
>> Particularly sad about this because so much time and effort went into the
>> site, but at the same time, it has been a great learning experience (both in
>> code and business). So being able to share that on the webcast will be of
>> some small comfort :)
>>
>> Cal
>>
>> On Thu, Aug 11, 2011 at 6:31 PM, Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>
>>> Last call on this guys:
>>>
>>>
>>> https://spreadsheets.google.com/a/foxwhisper.co.uk/spreadsheet/viewform?hl=en_US&formkey=dENPX3BMUUFMbi1CbElwV3BvOEdkNmc6MQ#gid=0
>>>
>>> If you want to register your attendance, please do so now.
>>>
>>> Thanks
>>>
>>> On Mon, Jul 25, 2011 at 2:00 PM, nicolas HERSOG wrote:
>>>
 I won t be able to follow the live session but I can't wait to watch
 your record on YT.

 Thx!

 On Mon, Jul 25, 2011 at 2:42 PM, Cal Leeming [Simplicity Media Ltd] <
 cal.leem...@simplicitymedialtd.co.uk> wrote:

> Second call for register your attendance on this webcast, if you
> haven't already done so.
>
> Thanks
>
> Cal
>
>
> On Tue, Jul 12, 2011 at 2:48 PM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Hi all,
>>
>> Great response to this, 45 registered votes in total.
>>
>> The webcast will take place on Monday 29th August 2011 - (Minimum
>> resolution 1920x1080)
>>
>> However, because the time zone results are almost split 50/50, I'm
>> going to allow users to select from two time slots, if the results are 
>> still
>> split 50/50, then I'll do both an afternoon and evening session.
>>
>> Please use this form to register your place.
>>
>> https://spreadsheets.google.com/a/foxwhisper.co.uk/spreadsheet/viewform?formkey=dENPX3BMUUFMbi1CbElwV3BvOEdkNmc6MQ
>>
>> Cal
>>
>
>  --
> 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.
>

  --
 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.

>>>
>>>
>>
>  --
> 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.
>

-- 
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: best way to get started with Dajngo?

2011-10-01 Thread william ratcliff
I typically recommend that people get started by going through the tutorial.
 I also think that the Django book is a good read.   Afterwards, I would
recommend finding a project that you're interested in and starting it--there
are several other good books out there (for example on testing/debugging, I
also rather liked Pro Django), but until you start getting your hands dirty,
then the knowledge won't really be yoursI am assuming that you already
know python...If not, I rather liked "Beginning Python, from novice to
Professional" and have given it to beginners.   Some of my students liked
codingbat.com

Once you're working on a project, there are any number of blogs with helpful
hints and this list is rather helpful when you have specific questions.
Does anyone have the guidelines for how to ask a good question on the list?

Good luck,
William

2011/10/1 Yaşar Arabacı 

> If you didn't checked this already:
> https://docs.djangoproject.com/en/1.3/intro/tutorial01/
>
>
> 2011/10/1 ruchita rathi 
>
>> Hi,
>>
>> Can someone point to the documents/videos for getting started with Django?
>>
>> Best,
>> Ruchita
>>
>> --
>> 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.
>>
>
>
>
> --
> http://yasar.serveblog.net/
>
>
>  --
> 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.
>

-- 
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: hasNoProfanities validator - no longer exists?

2011-10-06 Thread william ratcliff
Simple filters run into problems like:

http://en.wikipedia.org/wiki/Scunthorpe_problem


William

On Thu, Oct 6, 2011 at 10:18 PM, robinne wrote:

> I've finally managed to get a basic validator to work on a model (I
> used validate_slug on a model field and was able to catch it as a
> ValidationError). After getting that to work I tried to then get the
> validator that I actually want to work, hasNoProfanities. I have found
> that the validator no longer exists. I think the Django 1.3 docs need
> to be updated but before I request that I wanted to be sure that this
> is the case. This is from the docs:
>
>
> https://docs.djangoproject.com/en/1.3/ref/settings/
>
> PROFANITIES_LIST
>
> Default: () (Empty tuple)
>
> A tuple of profanities, as strings, that will trigger a validation
> error when the hasNoProfanities validator is called.
>
>
> I guess you have to basically handle this on your own now, is that
> true?
>
> --
> 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.
>
>

-- 
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: Ajax replacement in django

2011-10-12 Thread william ratcliff
I think the OP should ask his manager why they wish to avoid using ajax.
For example, is it sufficient if the page degrades gracefully for those not
running javascript?

On Wed, Oct 12, 2011 at 11:40 AM, Tom Evans wrote:

> On Wed, Oct 12, 2011 at 3:24 PM, Javier Guerra Giraldez
>  wrote:
> > On Wed, Oct 12, 2011 at 9:17 AM, lankesh87  wrote:
> >>  I am developing a web application where i need ajax like features.
> >> But I don't want to use ajax, so my question is- "is there any way to
> >> perform ajax like functions in django?"
> >
> > that kind of specifications (ajax-like but no ajax) sound very weird
> > to me.
>
> It's definitely weird, but its not crazy. I'm almost certain the OP
> does want to use AJAX, but there are AJAX-like techniques that we used
> to do AJAX-like things before XMLHttpRequest existed.
>
> The most common way is to use javascript to programmatically load
> content into a hidden . The returned content should have a
> 

Re: django admin datetime widget NOT using UTC time?

2011-10-13 Thread william ratcliff
Is it possible to override how the admin interacts with a particular date
field (for example, to transform it given a user supplied function)?


William

On Thu, Oct 13, 2011 at 5:20 AM, est  wrote:

> Hi guys,
>
> I am using Django 1.2 which a model has the following field
>
> my_time = models.DateTimeField(default=datetime.datetime.now())
>
> I don't use "auto_now_add=True" because I want it to be editable in admin.
>
> To my horror, Django can't handle timezone.
>
> When adding a new model, this field is using America/Chicago time, so I
> changed settings.py TIMEZONE to None
>
> Then it's using UTC time, when I click add a new model in Django model,
> it's dislayed as UTC time
>
> Then problem is, when I click the default datetime admin widget, the "Now"
> button, it using my browser local time. When you save this model, it
> actually saves your LOCAL time to database as UTC time
>
> So this creates so much confusion to admin as well as user.
>
> I think timezone should be handled in clien widget, because you really can
> toUTCString() as well as tolocalTimeString() in javascript. The backend
> should always send/recieve UTC time.
>
> Besides, the time zone info browser sends to backend is not reliable and
> incomplete.
>
> Is there a fix for this?
>
> Thanks!
>
> Regards,
> est
>
>
>  --
> 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.
>

-- 
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.



django chat?

2011-11-17 Thread william ratcliff
Hi,

I've started a new site called StudyBrunch, where we offer a chance for
online studygroups with video conferencing, screen sharing etc.   I'd like
to keep the groups small to be maneageble.   I will offer a basic session
on Django (from tutorial) for people who are interested on Saturday
evening.   If you are interested, you can look at:
http://www.studybrunch.com/studysession/django-for-beginners/

For this month, general membership is free and I hope to move on to more
advanced topics later.   If you have questions, or suggestion for topics
(for example, registration/profiles, celery, etc.), then contact us through
http://www.studybrunch.com/contact/ so we don't spam the list.

I have listed some preliminary times on the site in EST, but let me know on
the site if you can't make those and I can try to schedule another session
on Sunday evening.


Best,
William

-- 
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.



Online Django meetup at 10am EST to discuss basics

2011-11-20 Thread william ratcliff
For anyone interested in discussing Django basics, join us today at 10am at:
http://meet83755466.adobeconnect.com/django-for-beginners/

I may have to limit participation (btw. it's free)...

Best,
William

-- 
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: Online Django meetup at 10am EST to discuss basics

2011-11-20 Thread william ratcliff
EST

On Sun, Nov 20, 2011 at 8:49 AM, Tim Makobu wrote:

> Which timezone?
>
> On Sun, Nov 20, 2011 at 2:25 PM, william ratcliff <
> william.ratcl...@gmail.com> wrote:
>
>> For anyone interested in discussing Django basics, join us today at 10am
>> at:
>> http://meet83755466.adobeconnect.com/django-for-beginners/
>>
>> I may have to limit participation (btw. it's free)...
>>
>> Best,
>> William
>>
>> --
>> 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.
>>
>
>  --
> 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.
>

-- 
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: Basic installation

2011-11-25 Thread william ratcliff
What operating system are you trying to install it on?  Easy install
is probably your easiest option.   Personally, I use "pip", which once
you've installed easy_install with the above directions, you can use
to install django.  The advantage of pip is that it can also uninstall
packages.

One other question, do you only have ONE version of python installed
on your system?  It is possible that you are installing django using
one version of python and trying to use it running another version of
python and that would explain your current difficulties..

On 11/25/11, JJ Zolper  wrote:
> Dont worry that it was hard to understand just how to set it up. I had a
> tough time understanding the directions too!
>
> - JJ
>
>
>
> On Nov 24, 2011, at 11:59 PM, Timothy Makobu 
> wrote:
>
>> Install setup tools http://pypi.python.org/pypi/setuptools/0.6c11
>> Go to the command line (cmd.exe) and type
>> easy_install django
>> easy_install ipython (not needed by django, but very useful, as you will
>> see when you come to running "python manage.py shell"
>> Then read this WHOLE thing http://www.djangobook.com/en/2.0/
>>
>> On Fri, Nov 25, 2011 at 3:29 AM, ek_wals  wrote:
>>
>>
>> On Nov 24, 3:02 pm, ek_wals  wrote:
>> > I'm at a loss as to installing Django - and I have spent the day
>> > reading the documentation, the FAQ etc.
>> > I understand that I should download django, unzip and un-tar, and then
>> > run setup.py in the resulting directory. When I do this, I get a bunch
>> > of stuff in that directory, and nothing in my Python site-packages
>> > directory.
>> >
>> > I wish to have my pure-python site packages in a separate directory, C:
>> > \Python\site-packages, because they are not specific to one of the
>> > Python versions I have installed. I have added a .pth file to PythonXX/
>> > lib/site-packages to include the 'global' packages, and a
>> > distutils.cfg file to tell distutils about my install preferences.
>> >
>> > Django installs to its own directory, not to my requested directory or
>> > even to the default 'site-packages directory.
>> >
>> > What am I missing?? Does Django's included setup.py just ignore such
>> > details?
>>
>> Read the manual stupid -- or in this case the Python distutils source
>> code!
>>
>> It works fine
>>
>> --
>> 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.
>>
>>
>> --
>> 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.
>
> --
> 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.
>
>

-- 
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: Installation of Django

2011-11-25 Thread william ratcliff
You don't run easy_install from within python, but rather from the
command line.  So, in your start window, you want to use run to start
"cmd.exe".  This will open a window with a dos prompt.   From there,
type "easy_install django" followed by the enter key

I think before starting django, you might want to spend a bit of time
playing with python.   My students liked "coding bat", but there
should be a number of tutorials on the web.

On 11/25/11, JJ Zolper  wrote:
> Hello Tim,
>
> I was able to install Python 2.7 64-bit for Windows 7. I then
> downloaded the ez_setup.py and ran it. It installed the .egg file.
>
> I then attemped the Python command line:
>
> - easy_install django
> - easy_install ipython
>
> However I had no success installing the packages.
>
> I posted my error output on my site: http://madtrak.com/error.png
>
> JJ
>
> On Nov 24, 11:56 pm, Timothy Makobu 
> wrote:
>>    - Install setup toolshttp://pypi.python.org/pypi/setuptools/0.6c11
>>    - Go to the command line (cmd.exe) and type
>>       - easy_install django
>>       - easy_install ipython (not needed by django, but very useful, as
>> you
>>       will see when you come to running "python manage.py shell"
>>
>> That's all!
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Nov 25, 2011 at 3:59 AM, JJ Zolper  wrote:
>> > Okay just so everyone knows!
>>
>> > I was able to extract the .tar file and I now see the files.
>>
>> > In order to import these files correctly should I place these files in
>> > the
>> > install directory of Python 2.7 and then attempt the commands?
>>
>> > Or is the location of Django just arbitrary can I place it wherever I
>> > like
>> > and then work from the Python prompt?
>>
>> > JJ
>>
>> > On Thu, Nov 24, 2011 at 11:58 AM, Ivo Brodien  wrote:
>>
>> >> windows users have extracted your command will look like this: ...
>> >> to execute the .tar file.
>>
>> >> as tom mentioned, you have to use 7zip two times.
>>
>> >> the tar file is another archive (like .zip, .gz ) which you have to
>> >> decompress and then you have the django directory and you can go on
>> >> with
>> >> the tutorial.
>>
>> >> On Nov 24, 2011, at 17:55 , JJ Zolper wrote:
>>
>> >> JoeLinux,
>>
>> >> Oh interesting. It seems the 64 bit version is sort of unclear. Any
>> >> help there?
>>
>> >> Would I be able to install my Python is well with a smaller command? I
>> >> am back at ground zero because I had to adjust the Python version back
>> >> to 2.5 so Django would agree.
>>
>> >> I am interested just not sure how to work the 64 bit version.
>>
>> >> Thanks!
>>
>> >> JJ
>>
>> >> On Nov 24, 11:40 am, Joey Espinosa  wrote:
>>
>> >> If you install the "setuptools" package (http://goo.gl/UjFh), then all
>> >> you
>>
>> >> have to do to install Django (or any other Python library) is this:
>>
>> >> easy_install django
>>
>> >> And it will handle the rest. Just a suggestion.
>>
>> >> --
>>
>> >> Joey "JoeLinux" Espinosa
>>
>> >> Software Developerhttp://about.me/joelinux
>>
>> >> On Nov 24, 2011 10:37 AM, "Tom Evans"  wrote:
>>
>> >> On Thu, Nov 24, 2011 at 5:00 AM, JJ Zolper  wrote:
>>
>> >> Hello,
>>
>> >> I am new to Django! I was able to download and install: Python 2.7.2
>>
>> >> x86 64 on my Windows 7 64 bit machine. I think that is all that I will
>>
>> >> need to execute the command line?
>>
>> >> I installed Python to C:/Python27 as the program intended.
>>
>> >> I then downloaded: Django-1.3.1.tar.gz file and was try to figure
>>
>> >> where to go to next. I used the 7 zip to extract it to:
>>
>> >> Django-1.3.1.tar. But I wasn't sure the next steps. I opened the
>>
>> >> Python cmd prompt. I typed the command in: tar xzvf Django-*.tar.gz.
>>
>> >> But I got errors about the portion "xzvf" I feel that the directories
>>
>> >> are not set up correctly. Do I need to adjust my command for the
>>
>> >> directory because I already tried that.
>>
>> >> I would really appreciate a step through that would get me all set up
>>
>> >> with the baseline. I am interested to moving on from to the more in
>>
>> >> depth chapters. I tried hard to understand the input from the comments
>>
>> >> on the page but I was unable to find anything that gave me any sense
>>
>> >> of direction on how to place the Django files.
>>
>> >> Thanks!
>>
>> >> JJ
>>
>> >> PS. sorry this is available and I didn't see it in the new booklet.
>>
>> >> tar.gz is a gzipped (.gz) tape archive (.tar) file. 7zip should be
>>
>> >> able to gunzip it and extract the files from the archive - it might
>>
>> >> require two steps.
>>
>> >> The 'tar xzvf…' command is how one extracts a tar.gz under unix/linux
>>
>> >> from the OS command line - not the python command line. As the docs
>>
>> >> say, you can download and install bsdtar in windows, in which case the
>>
>> >> OS command would be 'bsdtar zxvf …'.
>>
>> >> This is the second time this week someone has had issues extracting a
>>
>> >> tgz on windows - any chance that django could be packaged up in a more
>>
>> >> Windows friendly zip 

Re: Basic installation

2011-11-25 Thread william ratcliff
It looks like you have now installed Django.

On 11/25/11, JJ Zolper  wrote:
> I felt stupid I went back to the installation guide on the site and:
> Once you’ve unzipped the file, start up a DOS shell (the “Command
> Prompt”) with administrator privileges and run the following command
> from within the directory whose name starts with Django-
> python setup.py install
> However when I ran that command I saw an error. I tried to just click
> the setup.py in the folder I had extracted and few other things but
> nothing worked.
> I started messing around with the command like capitalizing Python
> etc.
> Then I put:
> setup.py install
> without the Python the Heaven opened up as the files were copied to
> the Python27 directory... or so I believe.
> http://madtrak.com/isitdone.png
> So yes did I make it work and install correctly?
> JJ
> On Nov 25, 11:21 am, Tom Evans  wrote:
>> On Fri, Nov 25, 2011 at 4:12 PM, JJ Zolper  wrote:
>> > I was able to install Python 2.7 64-bit for Windows 7. I
>> > then downloaded the ez_setup.py and ran it. It installed the .egg
>> > file.
>>
>> > I then attemped the Python command line: - easy_install django -
>> > easy_install ipython
>>
>> > However I had no success installing the packages.
>>
>> > I posted my error output on my site:http://madtrak.com/error.png
>> >  JJ
>>
>> They aren't python commands, they are shell commands. Run them at your
>> OS shell, probably after adding wherever python puts its bin files to
>> $PATH.
>>
>> Cheers
>>
>> Tom
>
> --
> 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.
>
>

-- 
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: Installation of Django

2011-11-27 Thread william ratcliff
I've recommended:
http://www.amazon.com/Beginning-Python-Professional-Magnus-Hetland/dp/159059519X

To people with good success.


Best,
William

On Sun, Nov 27, 2011 at 8:46 AM, JJ Zolper  wrote:

> Sounds Great!
>
> I started yesterday.
>
> JJ
>
>
> On Nov 27, 2011, at 5:10 AM, Timothy Makobu 
> wrote:
>
> Read that Python tutorial first, It will answer all your questions . You
> need to read the WHOLE thing.
>
> http://docs.python.org/tutorial/index.html
>
>
>
> On Sun, Nov 27, 2011 at 3:52 AM, JJ Zolper  wrote:
>
>> Tim,
>>
>> Does our system include a Python Interpreter?
>>
>> "
>>
>> The interpreter’s line-editing features usually aren’t very
>> sophisticated. On Unix, whoever installed the interpreter may have enabled
>> support for the GNU readline library, which adds more elaborate interactive
>> editing and history features. Perhaps the quickest check to see whether
>> command line editing is supported is typing Control-P to the first Python
>> prompt you get. If it beeps, you have command line editing; see Appendix
>> *Interactive Input Editing and History 
>> Substitution*
>>  for
>> an introduction to the keys. If nothing appears to happen, or if ^P is
>> echoed, command line editing isn’t available; you’ll only be able to use
>> backspace to remove characters from the current line.
>>
>> "
>>
>> JJ
>>
>> On Sat, Nov 26, 2011 at 6:55 PM, JJ Zolper  wrote:
>>
>>> So you feel that that documentation of Python is the best reference? I'm
>>> sure it is just wanted to ask.
>>>
>>> JJ
>>>
>>>
>>> On Sat, Nov 26, 2011 at 2:20 PM, Timothy Makobu <
>>> makobu.mwambir...@gmail.com> wrote:
>>>
 But first, all of this http://docs.python.org/tutorial/index.html


 On Sat, Nov 26, 2011 at 10:19 PM, Timothy Makobu <
 makobu.mwambir...@gmail.com> wrote:

> Nice. Now read ALL of this http://djangobook.com/en/2.0/
>
>
> On Sat, Nov 26, 2011 at 9:55 PM, JJ Zolper  wrote:
>
>> Looks like I am in good shape!
>>
>> Thanks so much man!
>>
>> http://madtrak.com/success.png
>>
>> JJ
>>
>>
>> On Sat, Nov 26, 2011 at 1:51 PM, JJ Zolper  wrote:
>>
>>> Thanks! Yes sounds like something from my UNIX class. I have now
>>> added it.
>>>
>>> What will django-admin.py do for me? Oh are you just saying I can
>>> run it from anywhere now? Any of the commands I want to work with
>>> python/django?
>>>
>>> JJ
>>>
>>>
>>> On Sat, Nov 26, 2011 at 12:56 AM, Timothy Makobu <
>>> makobu.mwambir...@gmail.com> wrote:
>>>
 Yes, iPython is installed now. But now you need to add  
 C:\Python27\Scripts
 to your PATH variable, so you wont have to keep going there to run 
 things.
 After you add it, you can run django-admin.py, easy_install, iPython 
 ...
 from any directory in cmd.exe

 This link shows you how:
 http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx




 On Sat, Nov 26, 2011 at 12:49 AM, JJ Zolper wrote:

> Tim,
>
> Okay I was able to get something to go there.
>
> At first I saw warnings so I wasn't sure but here are the images.
>
> http://madtrak.com/ipython1.png
>
> http://madtrak.com/ipython2.png
>
> Do you think I am in good shape with ipython?
>
> To perform the easy install of django would i execute: 
> easy_install.exe
> django?
>
> And if so would that just overwrite what I have already installed,
> like would it be good to do it a second time even though I think it 
> worked
> the first. Honestly, I'd probably leave it for now just wanted your
> thoughts on easy install.
>
> Thanks!
>
> JJ
>
> On Fri, Nov 25, 2011 at 1:20 PM, Timothy Makobu <
> makobu.mwambir...@gmail.com> wrote:
>
>> Hi, you're welcome.
>>
>> Easy install is usually in C:\Python27\Scripts
>>
>> you can go there from within cmd.exe and run "easy_install.exe
>> ipython"  It should work.
>>
>>
>> On Fri, Nov 25, 2011 at 7:56 PM, JJ Zolper wrote:
>>
>>> Tim,
>>>
>>> I had a confirmation from William that I installed Django but
>>> you said
>>> iPython would be helpful and since I don't remember much Python
>>> I was
>>> hoping to make that work.
>>>
>>> Thanks so much for taking the time to help me get started you're
>>> a
>>> life saver! : )
>>>
>>> JJ
>>>
>>> On Nov 24, 11:56 pm, Timothy Makobu >> >
>>> wrote:
>>> >- Install setup

Re: Website Statistics - What should I use to have Google Analytics in Django?

2011-11-30 Thread william ratcliff
Google gives you a small piece of javascript that you need to insert
into your pages to track them.  So, all you need to do is to insert
that code into your templates...

On 11/30/11, Carlos Daniel Ruvalcaba Valenzuela  wrote:
> A quick Google revealed that there is already a
> django-google-analytics package, why not try to check it out?
> otherwise you could as last resort just put their tracking code on
> your master template and be done with it.
>
> http://code.google.com/p/django-google-analytics/
>
> Regards,
> Carlos Ruvalcaba
>
> --
> 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.
>
>

-- 
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.



django south

2011-11-30 Thread william ratcliff
Is there anyone available late next week to give a webinar on django
south?  No need for a detailed presentation, but more to be around to
answer questions  (I think that 9am EST would cover most time zones)?
If so, please contact me off list about dates/times/compensation.

The goal would be to offer another django chat.

Best,
William

-- 
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: Which IDE should I use for Django?

2011-12-19 Thread william ratcliff
Wing IDE

Syntax highlighting
Command completion
Awesome debugging--I can put breakpoints not just on the server, but also
in templates!

It is paid, but for me is worth it for the productivity.
On Dec 19, 2011 12:20 PM, "Marcos Moyano"  wrote:

> emacs +1
>
> On Mon, Dec 19, 2011 at 1:46 PM, george  wrote:
>
>> emacs +1
>>
>> On Dec 19, 3:42 pm, Masklinn  wrote:
>> > On 2011-12-19, at 16:30 , Andre Terra wrote:
>> >
>> >
>> >
>> > > What do you mean by embedded Django interpreter? An instance of python
>> > > running within Aptana?
>> >
>> > Django performs a bunch of setup which allow for easy import and
>> manipulation of the objects related to the instance, which is the reason
>> why django has a `shell` management command wrapping the Python shell.
>>
>> --
>> 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.
>>
>>
>
>
> --
> Some people, when confronted with a problem, think “I know, I'll use
> regular expressions.” Now they have two problems.
>
> Jamie Zawinski, in comp.emacs.xemacs
>
> --
> 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.
>

-- 
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: New Relic with Django

2012-01-03 Thread william ratcliff
Could someone provide a link, or a brief description of "New Relic"

Thanks!

On Tue, Jan 3, 2012 at 9:00 AM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Yeah, the pricing is very steep - and is really only suited for production
> systems which are bringing in a decent amount of revenue.
>
> It's a shame no one has brought out an open source version of New Relic -
> if I had the time/funding, I totally would!
>
> Cal
>
>
> On Tue, Jan 3, 2012 at 1:33 PM, Brian Bouterse  wrote:
>
>> Make sure you look at the pricing.  A local startup was very pleased with
>> what new relic's capabilities with Django, but then they looked at the
>> price ... wow.
>>
>>
>> On Tue, Jan 3, 2012 at 4:39 AM, Abhaya Thapa 
>> wrote:
>>
>>> Hi,
>>> I am trying to get stated with new relic on my django app. I am new to
>>> new relic. Can you please guide me on steps to get started in
>>> developer mode and how to use it in live server.
>>> I did try to find tutorials on this, but it looks like I could not
>>> find a good one.
>>>
>>> --
>>> 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.
>>>
>>>
>>
>>
>> --
>> Brian Bouterse
>> ITng Services
>>
>>  --
>> 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.
>>
>
>
>
> --
>
> *Cal Leeming*
> Technical Director - Simplicity Media Ltd
>
> For 24/7 emergency support, please call 02476 970798 *(UK)* or
> 302-111-4902* (US)*
>
>
> *P** *Please consider the environment before printing this email.
> The information contained in this email is confidential and is intended
> for the use only of the addressee. Any unauthorised dissemination or
> copying of this email and any use or disclosure of information is strictly
> prohibited and may be illegal. Please let us know immediately by telephone,
> if an email has been sent to you in error and return the email to us. 
> Registered
> company number 7143564, Abbey House, Manor Road, Coventry, UK, CV1 2FW.
>
>  --
> 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.
>

-- 
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread william ratcliff
Just curious--is there any particular reason that you were using Visual
Studio?

On Wed, Jan 25, 2012 at 12:50 PM, JJ Zolper  wrote:

> In many of the (I)DEs (PythonWin, IDLE, probably the various EMACS
> and VI configurations, SciTE), one can edit a file, save it (some will
> save for you if needed), then hit some key combo which will spawn a
> Python interpreter passing it the file for execution. You may even be
> prompted to supply command line arguments (PythonWin, I know does this).
>
> This is very interesting thanks for sharing! As for the information above
> that has cleared it up quite a bit for me.
>
> Sam Lai has helped a lot I think I am going to try to see if CPython works
> in VS because he thinks I will have less compatibility with IronPython and
> Django which would not be good. For the time being however I think I might
> just use VS since I am still new to really what I could be lacking with
> that as far as compatibility.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/2LQU1l81OyoJ.
>
> 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.
>

-- 
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: django-registration vs Django 1.5

2013-03-01 Thread william ratcliff
I believe that my patched version should also work:

https://github.com/williamratcliff/django-registration

Please let me know if there are problems--I should issue a pull request
(the patch is minor)


On Fri, Mar 1, 2013 at 11:07 AM, Johan Kock  wrote:

> Hi Xavi,
>
> I'm wrestling with the same problem right now.
>
> There are a couple of pull request to solve this but until they are
> accepted I'm using this fork:
>
> https://bitbucket.org/eire1130/django-registration
>
> pip install
> https://bitbucket.org/eire1130/django-registration/get/tip.tar.gz
>
> /Johan
>
>
> On Mar 1, 2013, at 4:53 PM, Xavier Pegenaute wrote:
>
> Hi,
>
> seems django-registration doesn't support properly the new user model from
> Django 1.5, any one know how to work around it, or at least some other
> application able to deal with Django 1.5?
>
> Thanks,
> Xavi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: Django 1.4.3 contact_form

2013-03-04 Thread william ratcliff
Check the indentation of the clause I mark with *
Also, do you use tabs?

def contact(request):
   if request.method == 'POST':
form = ContactForm(request.POST)
if form.is_valid():  
 asunto = form.cleaned_data['asunto']
 recado = form.cleaned_data['recado']
 email = form.cleaned_data['email']
 ccopia = form.cleaned_data['ccopia']
 from django.core.mail import send_mail
 send_mail(subject, mensaje, email, 'x...@xx.com')
 return HttpResponseRedirect('/gracias/')
else:
form = ContactForm(
initial={'subject': 'Me agrada su sitio!'}
)
return render(request, 'contacto_form.html', {
 'form': form,
})


On Mon, Mar 4, 2013 at 10:05 PM, Ana Molf  wrote:

> I can¡t solve the follow error
>
> def contact(request):
>if request.method == 'POST':
> form = ContactForm(request.POST)
> if form.is_valid():
>  asunto = form.cleaned_data['asunto']
>  recado = form.cleaned_data['recado']
>  email = form.cleaned_data['email']
>  ccopia = form.cleaned_data['ccopia']
>  from django.core.mail import send_mail
>  send_mail(subject, mensaje, email, 'x...@xx.com')
>  return HttpResponseRedirect('/gracias/')
> else:
> form = ContactForm(
> initial={'subject': 'Me agrada su sitio!'}
> )
> return render(request, 'contacto_form.html', {
>  'form': form,
> })
>
> line 89
>
>
> from django.core.mail import send_mail
>  ^
> IndentationError: unindent does not match any outer indentation level
>
>
> Book code is not working https://docs.djangoproject.com/en/dev/topics/forms/
>
> Thanks for any comment
>
> Django 1.4.4
> 'Apache/2.2.16 (Debian)'
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: IDE to practice django template language

2013-04-19 Thread william ratcliff
For Wing (professional) you can debug templates, which can be useful.

William


On Fri, Apr 19, 2013 at 10:02 AM, Thomas Weholt wrote:

> I have no experience in WingIDE, but PyCharm supports django development
> with intregrated starting of server, running of unittests, running of
> commands like syncdb etc. That was a terribly sales-pitch, but search
> google or youtube and you'll find videos demonstrating its features.
>
> Thomas
>
>
> On Fri, Apr 19, 2013 at 3:35 PM, Tim Cook  wrote:
>
>>
>>
>> On Fri, Apr 19, 2013 at 9:01 AM, Thomas Weholt 
>> wrote:
>>
>>> PyCharm! Allthough commercial - it's great and really worth the prize,
>>> and now is on sale for half prize!
>>>
>>>
>>>
>> Hi Thomas,
>>
>> I am a long time WingIDE user and although it supports Django quite well
>> I am wondering if you can contrast it with Pycharm?  The latter says it has
>> support for web development with Django integrated.  Can you comment on
>> that?
>>
>> Any disclosures?
>>
>> Thanks,
>> Tim
>>
>>
>> --
>> 
>> Timothy Cook, MSc   +55 21 94711995
>> MLHIM http://www.mlhim.org
>> Like Us on FB: https://www.facebook.com/mlhim2
>> Circle us on G+: http://goo.gl/44EV5
>> Google Scholar: http://goo.gl/MMZ1o
>> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Mvh/Best regards,
> Thomas Weholt
> http://www.weholt.org
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: Need advice on ecommerce app direction

2011-04-26 Thread william ratcliff
I believe that you can also buy the book (or e-book) directly from Amazon:
http://www.apress.com/9781430225355

and I also found it to be an excellent
read.

Best,
William

On Tue, Apr 26, 2011 at 10:15 AM, shofty  wrote:

> agree with Russ, but i have used the book mentioned and found it
> excellent.
> http://www.amazon.com/Beginning-Django-Commerce-James-McGaw/dp/1430225351
>
> not an affiiate link.
>
> On Apr 26, 1:23 am, Russell Keith-Magee 
> wrote:
> > On Tuesday, April 26, 2011, Ernesto Guevara 
> wrote:
> > > I find for download "Beginning Django E-Commerce" in
> webmasterresourceskit site. Look that.
> >
> > No - don't do that. And don't ever suggest that again.
> >
> > The site you have referenced is a pirate site, providing illegal
> > downloads of copyrighted material. Promoting theft of copyrighted
> > material isn't a practice that the Django project condones. Anyone
> > making a habit of suggesting copyright theft in this forum will have
> > their account banned.
> >
> > Yours,
> > Russ Magee %-)
>
> --
> 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.
>
>

-- 
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: How to draw line charts in Django?

2011-05-05 Thread william ratcliff
One other approach is that you can send the data to matplotlib (which is
python) and use that to create a .png which you then serve--it depends on
what your needs are.

William

On Thu, May 5, 2011 at 6:40 AM, Kenneth Gonsalves wrote:

> On Thu, 2011-05-05 at 03:05 -0700, Nge wrote:
> > I already created a view and can extract data from database.But I have
> > a problem. I don't know how to send to template and how to create js/
> > ajax. Can you share me sample?
>
> how to use js does not come in the purview of this list - you just need
> to do it the same way as you do in normal web pages. The last line of
> your view has a return statement that sends a dictionary to the
> template. Send your data that way and use js to create the chart.
> --
> regards
> KG
> http://lawgon.livejournal.com
> Coimbatore LUG rox
> http://ilugcbe.techstud.org/
>
> --
> 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.
>
>

-- 
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: Is there an HTML editor that's Django-aware

2011-05-20 Thread william ratcliff
I am not affiliated with them, but I find Wing IDE to work extremely well.

William

On Fri, May 20, 2011 at 11:28 AM, Graeck  wrote:

> http://e-texteditor.com/
>
> And use TextMate's Django bundle.
>
> More info: http://code.djangoproject.com/wiki/TextMate
>
> --
> 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.
>
>

-- 
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: Is there an HTML editor that's Django-aware

2011-05-26 Thread william ratcliff
Wing works well with django templates and at least in the paid version, you
can debug them...

On Thu, May 26, 2011 at 1:28 PM, Boštjan Mejak wrote:

> What does the MTN stand for?
>
> --
> 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.
>

-- 
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: Making a login/create user interface

2011-06-06 Thread william ratcliff
you may also wish to look into django-registration.

On Mon, Jun 6, 2011 at 1:03 PM, Shawn Milochik  wrote:

> Most of the info you need is here:
>
>
> https://docs.djangoproject.com/en/1.3/topics/auth/#authentication-in-web-requests
>
> If you get stuck understanding any specific points in the docs then let us
> know (be as descriptive as possible) and you'll probably get help.
>
>
> --
> 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.
>
>

-- 
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: Creating a simple contact form

2011-06-17 Thread william ratcliff
If you can wait, I use webfaction and can give you a response for what we do
when I get home late tonight--the email part was a bit annoying to
setup--the main thing is to recognize that they are using their mailbox.

Best,
William

On Fri, Jun 17, 2011 at 2:27 AM, raj  wrote:

> Hey guys,
>
> I have a webfaction account, and I was trying to get a contact form
> working for my website. The problem is that I can't seem to get it to
> work. Can someone walk me through this? I couldn't figure it out from
> the djangobook tutorial. I think something is wrong with my settings
> and stuff. Here are my files:
>
> forms.py:
>
> from django import forms
>
> class ContactForm(forms.Form):
>email = forms.EmailField()
>name = forms.CharField()
>subject = forms.CharField()
>message = forms.CharField(widget=forms.widgets.Textarea())
>
> views.py:
>
> def contact(request):
>if request.method == 'POST':
>form = ContactForm(request.POST)
>if form.is_valid():
>cd = form.cleaned_data
>send_mail(
>cd['subject'] + " - " + cd['name'],
>cd['message'],
>cd.get('email', 'nore...@oneadmissions.com'),
>['i...@oneadmissions.com'],
>)
>return HttpResponseRedirect('/contact/thanks/')
>else:
>form = ContactForm()
>return render_to_response('/home/oneadmin/webapps/oneadmin/
> oneadmin/templates/oneadmissions/contact.html', {'form': form},
> context_instance=RequestContext(request))
>
> def thanks(request):
>return render_to_response('/home/oneadmin/webapps/oneadmin/
> oneadmin/templates/oneadmissions/random.html', {'phrase': "Thank you!
> We will get back to you shortly"},
> context_instance=RequestContext(request))
>
> settings.py:
>
> EMAIL_HOST = 'smtp.webfaction.com'
> EMAIL_HOST_USER = 'i...@oneadmissions.com' #the email account that
> receives the email
> EMAIL_HOST_PASSWORD = 'PASSWORD'
> EMAIL_USE_TLS = True
>
> *I've tried adding an EMAIL_PORT, DEFAULT_FROM_EMAIL, and
> SERVER_EMAIL variables, didn't do anything.
>
> urls.py:
> urlpatterns = patterns('',
>(r'^contact/$', views.contact),
>(r'^contact/thanks/$', views.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-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.
>
>

-- 
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: Creating a simple contact form

2011-06-17 Thread william ratcliff
Hi Raj,

It sounds like your problem is email, rather than the form.   In our
settings.py we use:

EMAIL_USE_TLS= True
EMAIL_HOST='smtp.webfaction.com'
EMAIL_HOST_USER=''
EMAIL_HOST_PASSWORD=r' wrote:

> Thanks, I tried the shell thing above. It says that it sends without
> error, but I still dont receive any emails. Thank you
> -Raj
>
> On Jun 17, 12:23 pm, william ratcliff 
> wrote:
> > If you can wait, I use webfaction and can give you a response for what we
> do
> > when I get home late tonight--the email part was a bit annoying to
> > setup--the main thing is to recognize that they are using their mailbox.
> >
> > Best,
> > William
> >
> >
> >
> >
> >
> >
> >
> > On Fri, Jun 17, 2011 at 2:27 AM, raj  wrote:
> > > Hey guys,
> >
> > > I have a webfaction account, and I was trying to get a contact form
> > > working for my website. The problem is that I can't seem to get it to
> > > work. Can someone walk me through this? I couldn't figure it out from
> > > the djangobook tutorial. I think something is wrong with my settings
> > > and stuff. Here are my files:
> >
> > > forms.py:
> >
> > > from django import forms
> >
> > > class ContactForm(forms.Form):
> > >email = forms.EmailField()
> > >name = forms.CharField()
> > >subject = forms.CharField()
> > >message = forms.CharField(widget=forms.widgets.Textarea())
> >
> > > views.py:
> >
> > > def contact(request):
> > >if request.method == 'POST':
> > >form = ContactForm(request.POST)
> > >if form.is_valid():
> > >cd = form.cleaned_data
> > >send_mail(
> > >cd['subject'] + " - " + cd['name'],
> > >cd['message'],
> > >cd.get('email', 'nore...@oneadmissions.com'),
> > >['i...@oneadmissions.com'],
> > >)
> > >return HttpResponseRedirect('/contact/thanks/')
> > >else:
> > >form = ContactForm()
> > >return render_to_response('/home/oneadmin/webapps/oneadmin/
> > > oneadmin/templates/oneadmissions/contact.html', {'form': form},
> > > context_instance=RequestContext(request))
> >
> > > def thanks(request):
> > >return render_to_response('/home/oneadmin/webapps/oneadmin/
> > > oneadmin/templates/oneadmissions/random.html', {'phrase': "Thank you!
> > > We will get back to you shortly"},
> > > context_instance=RequestContext(request))
> >
> > > settings.py:
> >
> > > EMAIL_HOST = 'smtp.webfaction.com'
> > > EMAIL_HOST_USER = 'i...@oneadmissions.com' #the email account that
> > > receives the email
> > > EMAIL_HOST_PASSWORD = 'PASSWORD'
> > > EMAIL_USE_TLS = True
> >
> > > *I've tried adding an EMAIL_PORT, DEFAULT_FROM_EMAIL, and
> > > SERVER_EMAIL variables, didn't do anything.
> >
> > > urls.py:
> > > urlpatterns = patterns('',
> > >(r'^contact/$', views.contact),
> > >(r'^contact/thanks/$', views.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-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.
>
> --
> 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.
>
>

-- 
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: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-22 Thread william ratcliff
Definitely looking forward to it!

On Wed, Jun 22, 2011 at 6:50 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Nice!
>
> On Wed, Jun 22, 2011 at 11:39 PM, Thomas Weholt 
> wrote:
>
>> On Wed, Jun 22, 2011 at 4:47 PM, Cal Leeming [Simplicity Media Ltd]
>>  wrote:
>> >
>> >
>> > On Wed, Jun 22, 2011 at 3:25 PM, Andre Terra 
>> wrote:
>> >>
>> >> Hello, Cal
>> >>
>> >> First of all, congrats on the newborn! The Django community will surely
>> >> benefit from having yet another success story, especially considering
>> how
>> >> big this project sounds. Is there any chance you could open-source some
>> of
>> >> your custom made improvements so that they could eventually be merged
>> to
>> >> trunk?
>> >
>> > Thank you! Yeah, the plan is to release as much of the improvements as
>> open
>> > source as possible. Although I'd rely heavily on the community to make
>> them
>> > 'patch worthy' for the core, as the amount of spare time I have is
>> somewhat
>> > limited.
>> > The improvements list is growing by the day, and I usually try and post
>> as
>> > many snippets as I can, and/or tickets etc.
>> > It sounds like Thomas's DSE might be the perfect place for the bulk
>> update
>> > code too.
>>
>> FYI: Inspired by this discussion I've allready started on a similar
>> feature ( allthough somewhat simplified ) for DSE v2.2.0 and you're
>> right; the speed increase is huge using the method described here,
>> even compared to my current solution ( using cursor.executemany ),
>> which is considerably faster than the django orm allready. My testing
>> so far have been using postgresql, not sure how mysql will perform. I
>> expect to release DSE v.2.2.0 with this feature in the next few days.
>>
>
> Nice! Looking forward to seeing this :)
>
>
>>
>> --
>> Mvh/Best regards,
>> Thomas Weholt
>> http://www.weholt.org
>>
>> --
>> 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.
>>
>>
>  --
> 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.
>

-- 
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: Curious int/float/division/math 'gotcha' in py (discussion)

2011-06-28 Thread william ratcliff
I've been trying django-money for this reason...
On Jun 28, 2011 9:50 AM, "Cal Leeming [Simplicity Media Ltd]" <
cal.leem...@simplicitymedialtd.co.uk> wrote:
> On Tue, Jun 28, 2011 at 2:47 PM, Tom Evans 
wrote:
>
>> On Tue, Jun 28, 2011 at 2:41 PM, Cal Leeming [Simplicity Media Ltd]
>>  wrote:
>> > Yeah I have come up against horrible problems before when forcibly
>> > re-casting all int's to float's.. (especially when it's in the monetary
>> > sense). I had assumed that it would be a on a "per case" basis, but
just
>> > wanted to make sure.
>> >
>>
>> Eeek - having said hard and fast rules are bad, I'm going to give one
>> of my own - never ever ever use floating point calculations for
>> financial/monetary calculations. Use Decimal (which is in fact backed
>> by two integers), which avoids rounding issues.
>>
>> When the auditors want to know what happened to the missing 4p* before
>> they sign off your books, you don't want to have to go through every
>> block of code retro-fitting Decimal :)
>>
>
> Lmao, I know *exactly* what you mean. I'll look at using Decimal next
time!
>
>
>>
>> Cheers
>>
>> Tom
>>
>>
>> * This happened to me.
>>
>> --
>> 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.
>>
>>
>
> --
> 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.
>

-- 
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: Django hosting

2011-07-25 Thread william ratcliff
+1 webfaction

On Mon, Jul 25, 2011 at 5:00 PM, fred.se...@sunrise.com <
fred.se...@sunrise.com> wrote:

> I used webfaction and they were most helpful.
>
> --
> 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.
>
>

-- 
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: Pain on OSX

2011-07-28 Thread william ratcliff
I also recommend the enterprisedb distribution.   I don't recall rebuilding
python for snow lion, but it's been awhile...I have also noticed that
sqllite does not enforce all constraints, so it's good to start with
postgres sooner rather than later...I can't help you with apache...

William

On Thu, Jul 28, 2011 at 10:38 AM, Shawn Milochik  wrote:

> On Thu, Jul 28, 2011 at 10:08 AM, Kolbe 
> wrote:
> > lol.
> >
> > what's your recommended build for OSX though if I were to use django?
> >
>
>
> I don't know what you mean by 'build,' but my standard setup was
> compiling my own Python (requires installing XCode) and using
> PostgreSQL (using the EnterpriseDB installer).
>
> Then a virtualenv for each project with --no-site-packages used.
>
> That's pretty much it. I use Postgres instead of sqlite because sqlite
> doesn't enforce all the constraints so, for example, unique_together
> isn't enforced. When you go to production you'll get errors you missed
> in development. If you use sqlite in production as well then you'll
> miss the errors completely and end up with different data than you
> expected.
>
> The only "trick" to it was compiling psycopg2 (the Postgres driver for
> Python). It only works with 32-bit Python, so you'll have to compile
> Python as 32-bit instead of the default 64 that comes with OS X.
> Here's a blog post I wrote about how to take care of that.
> http://shawnmilo.blogspot.com/2009/11/psycopg2-on-snow-leopard.html
>
> --
> 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.
>
>

-- 
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: About user auth page

2011-08-03 Thread william ratcliff
I might also recommend using the django-registration package.

Best,
William

On Wed, Aug 3, 2011 at 10:10 AM, Derek  wrote:

> On Aug 3, 8:28 am, Bruce Dou  wrote:
> > Why there is not a default user login, user register template?
> > And Can not find some examples.
> >
> > What is your advice to create user auth pages?
> The Django Admin has a default user register template; you'll be asked
> to create default user when you run 'manage.py syncdb'. See:
> https://docs.djangoproject.com/en/dev/topics/auth/#installation
> Further on you will find examples of managing users via code (a
> perhaps more common way is via the web interface).
>
> --
> 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.
>
>

-- 
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: django and extjs: works well together?

2011-08-10 Thread william ratcliff
We've used it--it's really domain specific, but you can look at
tripleaxis.smallangles.net (please don't crash us :>).   We do the front end
with extjs and the back-end with django.   We have a number of ajax calls
made by extjs and then handled by django.   We're also finishing up a
dataflow project (where we let users create filters through which their data
flows--imagine labview for data...).  That project also involves creating
users, redis, etc. and takes a bit more advantage of django...

One thing to be aware of is that several tutorials on the web for extjs are
a bit dated--the library has been improved to be more modular in version 4,
but as a result, some changes need to be made to existing code--we've also
had a few issues making it play nice with YUI (long story...).

William

On Wed, Aug 10, 2011 at 11:22 AM, Reinout van Rees wrote:

> Hi,
>
> Several people in my workplace are looking at extjs now.
> http://www.sencha.com/**products/extjs/examples/
> Basically, a big javascript UI construction kit. To me it feels like a
> desktop app in a browser window.
>
> Question: does anyone have experience (positive or negative) with extjs in
> combination with django? Django can spew out json just fine of course, but
> it'll have to relinquish a lot of control to the browser. And it'll be more
> "spitting out json" than "using templates".
>
>
> Reinout
>
> --
> Reinout van Reeshttp://reinout.vanrees.org/
> rein...@vanrees.org 
> http://www.nelen-schuurmans.**nl/
> "If you're not sure what to do, make something. -- Paul Graham"
>
> --
> 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+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en
> .
>
>

-- 
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: django and extjs: works well together?

2011-08-10 Thread william ratcliff
Incidentally, the example website was coded by a high school student over
the course of a 6 week summer internship with us (who had to learn
javascript, django, and python during that time), so I think the learning
curve shouldn't be too steep

William

On Wed, Aug 10, 2011 at 11:32 AM, william ratcliff <
william.ratcl...@gmail.com> wrote:

> We've used it--it's really domain specific, but you can look at
> tripleaxis.smallangles.net (please don't crash us :>).   We do the front
> end with extjs and the back-end with django.   We have a number of ajax
> calls made by extjs and then handled by django.   We're also finishing up a
> dataflow project (where we let users create filters through which their data
> flows--imagine labview for data...).  That project also involves creating
> users, redis, etc. and takes a bit more advantage of django...
>
> One thing to be aware of is that several tutorials on the web for extjs are
> a bit dated--the library has been improved to be more modular in version 4,
> but as a result, some changes need to be made to existing code--we've also
> had a few issues making it play nice with YUI (long story...).
>
> William
>
>
> On Wed, Aug 10, 2011 at 11:22 AM, Reinout van Rees wrote:
>
>> Hi,
>>
>> Several people in my workplace are looking at extjs now.
>> http://www.sencha.com/**products/extjs/examples/<http://www.sencha.com/products/extjs/examples/>
>> Basically, a big javascript UI construction kit. To me it feels like a
>> desktop app in a browser window.
>>
>> Question: does anyone have experience (positive or negative) with extjs in
>> combination with django? Django can spew out json just fine of course, but
>> it'll have to relinquish a lot of control to the browser. And it'll be more
>> "spitting out json" than "using templates".
>>
>>
>> Reinout
>>
>> --
>> Reinout van Reeshttp://reinout.vanrees.org/
>> rein...@vanrees.org 
>> http://www.nelen-schuurmans.**nl/<http://www.nelen-schuurmans.nl/>
>> "If you're not sure what to do, make something. -- Paul Graham"
>>
>> --
>> 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+unsubscribe@**
>> googlegroups.com .
>> For more options, visit this group at http://groups.google.com/**
>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>> .
>>
>>
>

-- 
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: Running the orbited server?

2011-08-11 Thread william ratcliff
Can't write much now, but you may look at my students' prototype of a web
based system for data reduction at:
https://github.com/pjreddie/WRed

Here, we were updating the client every time a new datapoint came off of our
instrument.  The README tells you how to start orbited, what to do with
STOMP, etc.However, I've also had problems with orbited.org--at some
point, I think the project forked into orbited2 and hookbox.   I'd be really
curious to know what other people are using for Comet--are they still using
django, or did they move on to using something else?

Best,
William
(btw. for our app, it's big and you'd have to fake the data stream to run
the live data part, but it should give you an idea where to put things and
what goes in a cfg file)

On Thu, Aug 11, 2011 at 10:24 PM, raj  wrote:

> Odd question, but I'm trying to follow this tutorial which explains
> how to set up comet with django. I'm just confused about some stuff
> when I'm trying to do the tutorial.
>
> Firstly, where does the orbited.cfg file go? I just placed it at the
> root of my application (where the settings.py file etc. is). Also, in
> the cfg, It says to use the localhost address as the http, but I'm not
> running a development server, can I just put the url I'm using there?
> What about the port issue?
>
> Secondly, at the end of the tutorial, it says to run the orbited
> server. How do I do this? Do I need to install orbited beforehand? I
> ask this also because the html file requires an orbited.js file, and I
> have no clue where to find that. orbited.org doesn't seem to work. I
> found some github distros, but I dunno exactly how to make all the
> pieces fit. Currently I have pyorbited installed. Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-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.
>
>

-- 
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: Running the orbited server?

2011-08-11 Thread william ratcliff
You may also want to look at some of the projects at:
https://github.com/mcarter

On Fri, Aug 12, 2011 at 12:58 AM, william ratcliff <
william.ratcl...@gmail.com> wrote:

> Can't write much now, but you may look at my students' prototype of a web
> based system for data reduction at:
> https://github.com/pjreddie/WRed
>
> Here, we were updating the client every time a new datapoint came off of
> our instrument.  The README tells you how to start orbited, what to do with
> STOMP, etc.However, I've also had problems with orbited.org--at some
> point, I think the project forked into orbited2 and hookbox.   I'd be really
> curious to know what other people are using for Comet--are they still using
> django, or did they move on to using something else?
>
> Best,
> William
> (btw. for our app, it's big and you'd have to fake the data stream to run
> the live data part, but it should give you an idea where to put things and
> what goes in a cfg file)
>
> On Thu, Aug 11, 2011 at 10:24 PM, raj  wrote:
>
>> Odd question, but I'm trying to follow this tutorial which explains
>> how to set up comet with django. I'm just confused about some stuff
>> when I'm trying to do the tutorial.
>>
>> Firstly, where does the orbited.cfg file go? I just placed it at the
>> root of my application (where the settings.py file etc. is). Also, in
>> the cfg, It says to use the localhost address as the http, but I'm not
>> running a development server, can I just put the url I'm using there?
>> What about the port issue?
>>
>> Secondly, at the end of the tutorial, it says to run the orbited
>> server. How do I do this? Do I need to install orbited beforehand? I
>> ask this also because the html file requires an orbited.js file, and I
>> have no clue where to find that. orbited.org doesn't seem to work. I
>> found some github distros, but I dunno exactly how to make all the
>> pieces fit. Currently I have pyorbited installed. Thank you.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-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.
>>
>>
>

-- 
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: Running the orbited server?

2011-08-12 Thread william ratcliff
Sorry--I'm in the middle of an experiment and the project I pointed you at
is rather large.  For the orbited.js (version 0.7) file, you may use the one
in:
https://github.com/scattering/WRed/tree/master/media/JavaScript/orbited-0.7

In the main directory:
https://github.com/scattering/WRed

In the readme file, it tells you how to start the stomp server, and orbited,
which rely on relay.py and orbited.cfg...These may help you.  Again, I'm not
sure what the future is for orbited, so it might be best to email the
creators...

Best,
William


On Fri, Aug 12, 2011 at 9:32 AM, raj  wrote:

> This is wayyy over my head. Thanks for the project files, but I don't
> even know where to begin with all of this. I wish there was more of an
> orbited support site. Anyway, I was trying to use orbited to create a
> chat system on my website and I followed this tutorial:
> http://www.rkblog.rk.edu.pl/w/p/django-and-comet/. But I couldn't
> figure out what to do at the end of it. The html file requires
> something called orbited.js, and the tutorial never talks about where
> to get this file. So ya I'm stumped, I don't even know what path I
> should take to make a django chat system. I even tried impletementing
> a polling chat from the django-jchat tutorial, but that didn't work
> either. :(. Ideas?
>
> On Aug 12, 12:59 am, william ratcliff 
> wrote:
> > You may also want to look at some of the projects at:
> https://github.com/mcarter
> >
> > On Fri, Aug 12, 2011 at 12:58 AM, william ratcliff <
> >
> >
> >
> >
> >
> >
> >
> > william.ratcl...@gmail.com> wrote:
> > > Can't write much now, but you may look at my students' prototype of a
> web
> > > based system for data reduction at:
> > >https://github.com/pjreddie/WRed
> >
> > > Here, we were updating the client every time a new datapoint came off
> of
> > > our instrument.  The README tells you how to start orbited, what to do
> with
> > > STOMP, etc.However, I've also had problems with orbited.org--at
> some
> > > point, I think the project forked into orbited2 and hookbox.   I'd be
> really
> > > curious to know what other people are using for Comet--are they still
> using
> > > django, or did they move on to using something else?
> >
> > > Best,
> > > William
> > > (btw. for our app, it's big and you'd have to fake the data stream to
> run
> > > the live data part, but it should give you an idea where to put things
> and
> > > what goes in a cfg file)
> >
> > > On Thu, Aug 11, 2011 at 10:24 PM, raj  wrote:
> >
> > >> Odd question, but I'm trying to follow this tutorial which explains
> > >> how to set up comet with django. I'm just confused about some stuff
> > >> when I'm trying to do the tutorial.
> >
> > >> Firstly, where does the orbited.cfg file go? I just placed it at the
> > >> root of my application (where the settings.py file etc. is). Also, in
> > >> the cfg, It says to use the localhost address as the http, but I'm not
> > >> running a development server, can I just put the url I'm using there?
> > >> What about the port issue?
> >
> > >> Secondly, at the end of the tutorial, it says to run the orbited
> > >> server. How do I do this? Do I need to install orbited beforehand? I
> > >> ask this also because the html file requires an orbited.js file, and I
> > >> have no clue where to find that. orbited.org doesn't seem to work. I
> > >> found some github distros, but I dunno exactly how to make all the
> > >> pieces fit. Currently I have pyorbited installed. Thank you.
> >
> > >> --
> > >> You received this message because you are subscribed to the Google
> Groups
> > >> "Django users" group.
> > >> To post to this group, send email to django-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.
>
> --
> 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.
>
>

-- 
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: 3rd party Apps in Django

2011-08-15 Thread william ratcliff
Someone else may want to confirm this, but were there any issues with
signals depending on location within the project?

Best,
William

On Mon, Aug 15, 2011 at 9:02 AM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Personally, I don't rely on easy_install/pip to install project specific
> packages into the OS site-packages.
>
> There is absolutely nothing stopping you from doing this on a project
> level, as I would recommend to do it where ever possible.
>
> Although do remember, some packages won't be cross-system compatible (such
> as MySQL-python).
>
> Cal
>
> On Mon, Aug 15, 2011 at 1:59 PM, Andre Lopes wrote:
>
>> Hi, I have put this question in StackOverflow, but no response untill
>> now... This is an important question to me to understand how Django
>> works
>>
>> I am new to Django.
>>
>> I have some doubts about installing 3rd party Apps in Django.
>>
>> A specific example. The "django-registration" App in
>> https://bitbucket.org/ubernostrum/django-registration/src. Reading the
>> instructions the doc tell us to install this app with PIP(pip install
>> django-registration), doing this the App will be installed in Python
>> Site-packages, right?
>>
>> My question is: The App must to be installed in that way? Why not put
>> the 'django-registration' folder in our Project as an App?
>>
>> PS: This is a starter Django Question.
>>
>> Best Regards,
>>
>> --
>> 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.
>>
>>
>  --
> 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.
>

-- 
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: 3rd party Apps in Django

2011-08-15 Thread william ratcliff
Yes--as I recalled from the documentation:

*I’ve got functions listening for the registration/activation signals, but
they’re not getting called!*

The most common cause of this is placing django-registration in a
sub-directory that’s on your Python import path, rather than installing it
directly onto the import path as normal. Importing from django-registration
in that case can cause various issues, including incorrectly connecting
signal handlers. For example, if you were to place django-registration
inside a directory named django_apps, and refer to it in that manner, you
would end up with a situation where your code does this:

from django_apps.registration.signals import user_registered

But django-registration will be doing:

from registration.signals import user_registered

>From Python’s point of view, these import statements refer to two different
objects in two different modules, and so signal handlers connected to the
signal from the first import will not be called when the signal is sent
using the second import.

To avoid this problem, follow the standard practice of installing
django-registration directly on your import path and always referring to it
by its own module name: registration (and in general, it is always a good
idea to follow normal Python practices for installing and using Django
applications).


On Mon, Aug 15, 2011 at 9:07 AM, william ratcliff <
william.ratcl...@gmail.com> wrote:

> Someone else may want to confirm this, but were there any issues with
> signals depending on location within the project?
>
> Best,
> William
>
>
> On Mon, Aug 15, 2011 at 9:02 AM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Personally, I don't rely on easy_install/pip to install project specific
>> packages into the OS site-packages.
>>
>> There is absolutely nothing stopping you from doing this on a project
>> level, as I would recommend to do it where ever possible.
>>
>> Although do remember, some packages won't be cross-system compatible (such
>> as MySQL-python).
>>
>> Cal
>>
>> On Mon, Aug 15, 2011 at 1:59 PM, Andre Lopes wrote:
>>
>>> Hi, I have put this question in StackOverflow, but no response untill
>>> now... This is an important question to me to understand how Django
>>> works
>>>
>>> I am new to Django.
>>>
>>> I have some doubts about installing 3rd party Apps in Django.
>>>
>>> A specific example. The "django-registration" App in
>>> https://bitbucket.org/ubernostrum/django-registration/src. Reading the
>>> instructions the doc tell us to install this app with PIP(pip install
>>> django-registration), doing this the App will be installed in Python
>>> Site-packages, right?
>>>
>>> My question is: The App must to be installed in that way? Why not put
>>> the 'django-registration' folder in our Project as an App?
>>>
>>> PS: This is a starter Django Question.
>>>
>>> Best Regards,
>>>
>>> --
>>> 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.
>>>
>>>
>>  --
>> 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.
>>
>
>

-- 
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: 3rd party Apps in Django

2011-08-15 Thread william ratcliff
Generally, I tend to create a local cache of dependencies (ex. beautiful
soup, django-registration, etc.) and then use pip to install them to the
python site-packages directory.   The reason I use pip is because uninstall
can be a pain.  It's only when there are 3rd party apps that I need to
modify (which I try to avoid :p) that I include them in an "external_apps"
folder under the project directory.   I suppose some of this is a matter of
personal preference.  I use pip instead of easy_install because it keeps a
record of which packages are installed and allows for uninstall. You
might also want to investigate virtual-env.   I think the main goal for me
is to try to keep things as decoupled as possible and to keep packages
locally in case their source somehow vanishes online, or if I depend on the
particulars of a given version...

Best,
William

On Mon, Aug 15, 2011 at 9:11 AM, Thomas Weholt wrote:

> Hmmm...
>
> Using pip will take care of requirements the package might have and
> install it in the right python lib folder so several projects can use
> it among other things.
>
> Are there good reasons NOT to use pip/easy_install or at least python
> setup.py install?
>
> Thomas
>
>
>
> On Mon, Aug 15, 2011 at 2:59 PM, Andre Lopes 
> wrote:
> > Hi, I have put this question in StackOverflow, but no response untill
> > now... This is an important question to me to understand how Django
> > works
> >
> > I am new to Django.
> >
> > I have some doubts about installing 3rd party Apps in Django.
> >
> > A specific example. The "django-registration" App in
> > https://bitbucket.org/ubernostrum/django-registration/src. Reading the
> > instructions the doc tell us to install this app with PIP(pip install
> > django-registration), doing this the App will be installed in Python
> > Site-packages, right?
> >
> > My question is: The App must to be installed in that way? Why not put
> > the 'django-registration' folder in our Project as an App?
> >
> > PS: This is a starter Django Question.
> >
> > Best Regards,
> >
> > --
> > 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.
> >
> >
>
>
>
> --
> Mvh/Best regards,
> Thomas Weholt
> http://www.weholt.org
>
> --
> 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.
>
>

-- 
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: Django-Registration, How can a beginner work with this 3rd party App?

2011-08-15 Thread william ratcliff
Perhaps the following blog post will be useful for you if you just want to
get something up and running:

http://devdoodles.wordpress.com/2009/02/16/user-authentication-with-django-registration/

The author even has a link where you can download some of the standard
templates.

Best,
William

On Mon, Aug 15, 2011 at 3:06 PM, Andre Terra  wrote:

> To be honest, django registration is quite complex in some aspects for a
> beginner, due to its modularity. Creating a custom backend for a third party
> app isn't the easiest exercise for a newbie.
>
> If anyone has examples on how to customize django registration, now would
> be a great time to share it! I unfortunately use my own app, so I'll have to
> pass.
>
>
> Cheers,
> AT
>
>
> On Mon, Aug 15, 2011 at 3:53 PM, Thomas Weholt wrote:
>
>> Have you followed the standard tutorial on
>> https://docs.djangoproject.com/en/1.3/intro/tutorial01/? Look at the
>> http://www.djangobook.com/en/2.0/ ? If you haven't you should start
>> there and not jump directly at a third app. After doing the tutorials
>> and reading through the djangobook the online documentation of
>> third-party apps won't be so cryptic.
>>
>> Thomas
>>
>> On Mon, Aug 15, 2011 at 8:38 PM, Andre Lopes 
>> wrote:
>> > Hi, another question from a beginner.
>> >
>> > I am getting some trouble to get Django-Registration working. The
>> > on-line documentation(
>> http://readthedocs.org/docs/django-registration/en/latest/)
>> > is not for a beginner like me, there are many steps that I don't know
>> > how to do them. For example the creation of the templates (login.html,
>> > registration_form.html, etc) I have must to search them on Goggle, and
>> > I found out examples on how to do this templates
>> > (http://www.lightbird.net/dbe/forum3.html).
>> >
>> > My question is, there are any tutorial on Django-Registration that
>> > will help a beginner like me to get this wonderful App working?
>> >
>> > Best Regards,
>> >
>> > --
>> > 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.
>> >
>> >
>>
>>
>>
>> --
>> Mvh/Best regards,
>> Thomas Weholt
>> http://www.weholt.org
>>
>> --
>> 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.
>>
>>
>  --
> 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.
>

-- 
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: Upload Multiple Images App ?

2011-08-17 Thread william ratcliff
We've done this using django and the fileapi--but it will only work with
HTML5 and modern browsers...The only other solution I know involves flash
 (I believe uploadify or swfupload)...

Best,
William

2011/8/17 枯藤天涯 

> to Kevin Monceaux,according to  Kevin's offering link,we must delete
> the underline file by ourselves,django is no longer doing this for
> us.I think you can write your own code to delete the files which is
> local  our your computer.And this is easy.By the way,this posy is very
> useful.It mentions almost  all  django apps which is about  image
> content.Thank  you fire-water.But I woder whether we can upload
> multiple images through ajax.Is there any tutorial about this?
>
> 2011/8/8 Kevin Monceaux 
> >
> > On Fri, Aug 05, 2011 at 10:31:38AM -0700, fire_water wrote:
> >
> > > and has a http://code.google.com/p/django-stdimage/
> > > issues/detail?id=22">known bug that does not delete images when
> > > its object/row is deleted.
> >
> > > According to django-imagekit's github.com page, it has the same  > > href="https://github.com/jdriscoll/django-imagekit/issues/16";>bug
> > > as django-stdimage.
> >
> > I suspect the above known bugs are related to a known bug in Django:
> >
> >
> https://Docs.DjangoProject.com/en/1.3/releases/1.2.5/#filefield-no-longer-deletes-files
> >
> > which many consider a feature instead of a bug.  :-)
> >
> >
> >
> > --
> >
> > Kevin
> > http://www.RawFedDogs.net
> > http://www.WacoAgilityGroup.org
> > Bruceville, TX
> >
> > What's the definition of a legacy system?  One that works!
> > Errare humanum est, ignoscere caninum.
> >
> > --
> > 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.
> >
>
> --
> 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.
>
>

-- 
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.



User Profiles?

2011-02-15 Thread William Ratcliff
In Django, the standard way to add additional information to be
associated with a user is to use a user profile. To do this, I have an
app called, "accounts"

accounts
   __init__.py
   models.py
   admin.py  (we'll ignore this for now, it works fine) 
   management
__init__.py
commands
 __init__.py
 generate_user.py
in settings.py we have AUTH_PROFILE_MODULE = 'accounts.UserProfile'

in models.py we have

from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class UserProfile(models.Model):
user = models.ForeignKey(User, unique=True)
age=models.IntegerField()
extra_info=models.CharField(max_length=100,blank=True)
User.profile = property(lambda u:
UserProfile.objects.get_or_create(user=u)[0])
The last line makes use of python decorators to either get a user
profile object if it already exists, or to return an existing one.
This code is taken from: 
http://www.turnkeylinux.org/blog/django-profile#comment-7262

Next, we need to try to make our simple command. So in gen_user.py

from django.core.manaement.base import NoArgsCommand
from django.db import models
from django.contrib.auth.models import User
from accounts.models import UserProfile
import django.db.utils


class Command(NoArgsCommand):
help='generate test user'
def handle_noargs(self, **options):
first_name='bob'; last_name='smith'
username='bob' ; email='b...@bob.com'
password='apple'
#create or find a user
try:
 
user=User.objects.create_user(username=username,email=email,password=password)
except django.db.utils.IntegrityError:
print 'user exists'
user=User.objects.get(username=username)
user.firstname=first_name
user.lastname=last_name
user.save() #make sure we have the user before we fiddle around
with his name
#up to here, things work.
user.profile.age=34
user.save()
#test_user=User.objects.get(username=username)
#print 'test', test_user.profile.age
#test_user.profile.age=23
#test_user.save()
#test_user2=User.objects.get(username=username)
#print 'test2', test_user2.profile.age
to run, from your project directory, type python manage.py gen_user

The question is, why doesn't the age update? I suspect that this is a
case of me catching an instance instead of the real object, bet
everything that I've tried from using user.userprofile_set.create to
using setattr, etc. has failed and I'm running out of ideas. Is there
a better pattern? Ideally, I would like to just be able feed in a dict
to update the userprofile, but for now, I can't see how to even update
a single parameter. Also, even when I have been able to create a user
with one parameter (the age, which is required), I have not been able
to later update the additional parameter. I can't remove or delete the
old userprofile and blast in a new one because of the foreignkey
relation.

Ideas? 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-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: User Profiles?

2011-02-15 Thread william ratcliff
Thanks!

On Wed, Feb 16, 2011 at 1:43 AM, Ian Clelland  wrote:

> >
> user=User.objects.create_user(username=username,email=email,password=password)
> >except django.db.utils.IntegrityError:
> >print 'user exists'
> >user=User.objects.get(username=username)
> >user.firstname=first_name
> >user.lastname=last_name
> >user.save() #make sure we have the user before we fiddle around
> > with his name
> >#up to here, things work.
> >user.profile.age=34
> >user.save()
>
> > The question is, why doesn't the age update?
>
> This doesn't do what you are expecting, simply because saving the user
> object is different from saving the profile object. (user.save() just
> updates a row in the auth_user table, which doesn't affect the
> accounts_userprofile table at all.)
>
> The way I would do it is this:
>
> profile = user.get_profile()
> profile.age = 34
> profile.save()
>
> Try that, and see if it updates the database.
>
> --
> Regards,
> Ian Clelland
> 
>
> --
> 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.
>
>

-- 
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: Datefield

2011-02-16 Thread william ratcliff
There is a nice stack overflow question on this:
http://stackoverflow.com/questions/38601/using-django-time-date-widgets-in-custom-form


On Wed, Feb 16, 2011 at 10:26 AM, Szabo, Patrick (LNG-VIE) <
patrick.sz...@lexisnexis.at> wrote:

>  Hi,
>
>
>
> I built my own view where users can add new DB-entries.
>
> I have a DateField and generated the Form for it directly from the model
> but i don’t see this calender-icon like i do in the admin panel.
>
> How can I add it ?!
>
>
>
> Is it enough to just reference to the .js in the template !? (doesn’t seem
> to work)
>
>
>
> Kind regards
>
>  . . . . . . . . . . . . . . . . . . . . . . . . . .
>
>  **
>
> Patrick Szabo
> XSLT-Entwickler
>
> LexisNexis
> Marxergasse 25, 1030 Wien
>
> patrick.sz...@lexisnexis.at
>
> Tel.: +43 (1) 534 52 - 1573
>
> Fax: +43 (1) 534 52 - 146
>
>
>
>  --
> 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.
>

-- 
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: Collaborative text editor with Django

2011-02-25 Thread william ratcliff
If it were me, I would look into using "orbited".  We've used it for doing
real time plotting of data using django.  I'm not sure how it scales
though...

William

On Fri, Feb 25, 2011 at 11:36 AM, Pete  wrote:

> I was looking into doing this too! Ethereal is written in java so we
> either need to port the code or use jython.  Hookbox would be a good
> alternative.
>
> If anyone has done 'multiplayer' in Google docs or spreadsheet then
> they will see the value of this app
>
> On Feb 24, 12:35 pm, Piotr Zalewa  wrote:
> > On 02/23/11 08:32, Anoop Thomas Mathew wrote:
> >
> > > Is there any collaborative text editing application available for
> django.
> > > Has anybody tried with etherpad(www.etherpad.org
> > > ) along with django?
> >
> > If you'd start building it - I'd be collaborating.
> >
> > zalun
> > --
> > blog  http://piotr.zalewa.info
> > jobs  http://webdev.zalewa.info
> > twit  http://twitter.com/zalun
> > face  http://facebook.com/zaloon
>
> --
> 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.
>
>

-- 
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: current recommendations for using email as username

2011-03-08 Thread william ratcliff
If you look through the code in the django admin, then the limit is set in
the database schema.

On Tue, Mar 8, 2011 at 3:05 PM, Andy  wrote:

> Is the 30 characters limit enforced by the database or by Django?
>
> If the limit is set by the database, would altering the DB schema
> work?
>
> On Mar 4, 10:51 pm, Shawn Milochik  wrote:
> > > Email addresses have been allowed since version 1.2 <
> > >http://docs.djangoproject.com/en/1.2/topics/auth/#api-reference>.
> > > Have you found place in 1.2.x where an email address doesn't work?
> >
> > > Toodle-lo..
> > > creecode
> >
> > The problem here is that the username is still limited to 30
> > characters. So plenty of e-mail addresses won't work.
>
> --
> 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.
>
>

-- 
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: current recommendations for using email as username

2011-03-08 Thread william ratcliff
It is in the forms.

On Tue, Mar 8, 2011 at 4:26 PM, Brian Craft wrote:

> On Tue, Mar 8, 2011 at 12:53 PM, william ratcliff
>  wrote:
> > If you look through the code in the django admin, then the limit is set
> in
> > the database schema.
>
> I've read elsewhere that it's also in all the auth form validations,
> so you have to subclass all of them. I haven't actually investigated
> this myself.
>
> --
> 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.
>
>

-- 
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: What is the best server for Django

2011-03-09 Thread william ratcliff
For hosted, I rather like webfaction.

On Wed, Mar 9, 2011 at 5:34 AM, Norberto Leite  wrote:

> PS - You are not buying a server on EC2, google apps engine or any VPS
> provider, you are renting!
>
>
> On Wed, Mar 9, 2011 at 11:33 AM, Norberto Leite wrote:
>
>> What you need is a the proper server for your application needs.If you are
>> looking for managed hosting there are plenty of options to do this, a simple
>> google query will give a lifetime of options.
>> Now if you want to manage your own server instance and you need to define
>> which type of machine you are looking for. Django/Python will run in the
>> most common OS's,the question is which applies the best to your needs.
>>
>> In my case I'm using a linode VPS (*Linode 
>> 512)
>> *which pretty much handles all my server needs for the time being.
>>
>> If you are looking for a more extensible / elastic platform that enables
>> you to scale up or down in a very fashionable way I recommend the using an
>> EC2 instance.
>> Pretty straightforward way getting started and a lot of already available
>> instance images tailored for django environments.
>> But there are tons of different hosting / housing / VPS solutions tailored
>> for django.
>>
>> For the more purists, the recommendation will be google web apps wich
>> as plenty of support  and helps paying Guido salary :)
>>
>> It's all about having a clear view of what you need and how much you are
>> willing to pay.
>>
>> N.
>>
>>
>> On Wed, Mar 9, 2011 at 10:53 AM, Chen Xu  wrote:
>>
>>> I am thinking to buy a server, and integrated with Django environment. So
>>> could anyone please give me some suggestions, which server is the best for
>>> this, amazon ec2 or?
>>>
>>> Thanks very much
>>> Best regards
>>>
>>> --
>>> ⚡ Chen Xu ⚡
>>>
>>> --
>>> 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.
>>>
>>
>>
>>
>> --
>> Norberto Leite
>>
>>
>
>
> --
> Norberto Leite
>
>  --
> 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.
>

-- 
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.