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

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['recad

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

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,

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 statemen

Re: How to print a graph

2012-08-01 Thread william ratcliff
; 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> >> >>

Re: How to print a graph

2012-08-01 Thread william ratcliff
hic 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

Re: How to print a graph

2012-08-01 Thread william ratcliff
b 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 >&g

Re: How to print a graph

2012-08-01 Thread william ratcliff
yfit(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() >

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 d

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

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

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:

Re: tutorial part 1...syncing db

2012-04-12 Thread william ratcliff
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

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 г

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

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': '/u

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,

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 e

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 neede

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

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, georg

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 of

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

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 >

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 withi

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

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 othe

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: >&g

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

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 eveni

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

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 We

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

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

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

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

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('', >> >>

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 und

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 Mo

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

Re: 3rd party Apps in Django

2011-08-15 Thread william ratcliff
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 we

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

Re: Running the orbited server?

2011-08-12 Thread william ratcliff
t; 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

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

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,

Re: django and extjs: works well together?

2011-08-10 Thread william ratcliff
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

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 proje

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

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

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

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

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] >> w

Re: Creating a simple contact form

2011-06-17 Thread william ratcliff
ut > 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

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 ha

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 doc

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 t

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 becau

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 c

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

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

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 elsewher

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

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

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

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

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