SQLite3 refuses to work when running syncdb

2013-07-16 Thread Alex Hall
Hello list, I am well versed in Python, and I hate web development, but I have to make a website for my business. So, I thought I'd use Python to make the task more tolerable. I'm working through the official Django tutorial, and am at the part where I am to run "python manage.py syncdb". Howev

Re: SQLite3 refuses to work when running syncdb

2013-07-16 Thread Alex Hall
to database file if using sqlite3. > 'NAME': '/path/to/my/file.sqlite', > ... > > Have some info message of error ?? > > Cheers! > > > 2013/7/16 Alex Hall > Hello list, > I am well versed in Python, and I hate web development, but I have t

a bit confused about projects/apps

2013-07-17 Thread Alex Hall
Hi all, I currently have a boring, small, plain website to give the essential information about my business. I hope to add a projects section, to host programming projects I have done, a section for hosting articles/tutorials/recordings, and, eventually, an ecommerce system so i can charge for

Re: a bit confused about projects/apps

2013-07-17 Thread Alex Hall
r authentication you don't want to > have a user have to login separately to go to blog.example.com from > www.example.com. > > Brian > > > On Jul 17, 2013, at 8:30 AM, Alex Hall wrote: > >> Hi all, >> I currently have a boring, small, plain website to

is Django useful for a basic site as well?

2013-07-18 Thread Alex Hall
Hi all, As I said in my first post here, I despise CSS and laying out websites. I realize that much of that likely stems from my being legally blind, so I cannot check my work, use interactive CSS tools to practice coding and see results, or understand the subtile differences in styles or what h

Re: is Django useful for a basic site as well?

2013-07-18 Thread Alex Hall
tion and editing without looking at > HTML, but this is usually be means of a WYSIWYG editor (on the page being > edited, implemented using JavaScript), but I'm not sure how much that helps > you. > > Bill > > > On Thu, Jul 18, 2013 at 1:25 PM, Alex Hall wrote: >

Re: is Django useful for a basic site as well?

2013-07-19 Thread Alex Hall
thanks for the tip about this, it looks really useful. I was also pleased to find that, at least in looking at one of the template files, it seems to work well with my screen reader. Too often web developers don't bother with accessibility, but this looks promising. On Jul 18, 2013, at 6:31 PM,

setting up homepage, and naming/organizing apps

2011-07-18 Thread Alex Hall
Hello all, I was on this list a few months ago, but was unable to get a django-friendly web host. I am now helping with a site on Bluehost, which does support django, and I am hoping to be given permission by the guy in charge to use django instead of php for our project. I have been going through

Re: setting up homepage, and naming/organizing apps

2011-07-19 Thread Alex Hall
rst wrote: > On 19/07/2011 1:49pm, Alex Hall wrote: >> Hello all, >> I was on this list a few months ago, but was unable to get a >> django-friendly web host. I am now helping with a site on Bluehost, >> which does support django, and I am hoping to be given permission

defining model with list of foreign keys?

2011-07-19 Thread Alex Hall
Hello all, I am trying to figure out the best way to represent a field in a model. The model is an article, which is associated with multiple devices (devices is another model). When adding a new article, an admin is presented with a multiple select list of all the rows in the devices table. All se

Re: defining model with list of foreign keys?

2011-07-19 Thread Alex Hall
I will have a look in the docs for this. The less thinking I have to do, the better! :) Thanks. On 7/19/11, Nan wrote: > > Try a ManyToManyField, which essentially creates the article_devices > table but abstracts it away so you don't have to think about it. > > On Jul 19

Re: __init__ got unexpected argument

2011-07-21 Thread Alex Hall
The word you want is max_length, not maxlength (note the underscore). Try changing to max_length and it should run. On 7/21/11, shakthi wrote: > while executing the following model i got the error message > __init() got an unexpected keyword argument 'maxlength' > > > from django.db import models

changing how, or if, model fields display

2011-07-21 Thread Alex Hall
Hi all, I have an articles model and I have a few questions. 1. Each article can have only one author. However, the admin site shows a dropdown list of all authors. What I want to happen is for the "author" field to be auto-filled by the id of the author currently logged in and creating the articl

newbie going through basic tutorial

2011-03-01 Thread Alex Hall
Hi all, I have been working with Python for quite a while now and I feel pretty comfortable with it. I am in my last semester at college for a computer science degree, so I also have the background behind a lot of what Python does (objects, classes, all that). I am in a databases class and one requ

Re: newbie going through basic tutorial

2011-03-02 Thread Alex Hall
On 3/2/11, Kenneth Gonsalves wrote: > On Tue, 2011-03-01 at 23:14 -0500, Alex Hall wrote: >> I get a very long traceback, ending with sqlite3.OperationalError: >> unable to open database file. > > looks like a permissions problem. Does the webserver have permissions to

curious about model classes

2011-03-02 Thread Alex Hall
Hi all, Still working through that tutorial. I am just curious: why are none of the class variables called self.var, but rather just var? For example: import models class Poll(models.Model): question=models.CharField(max_length=200) Should that not be self.question=... instead? Otherwise, saying

Re: newbie going through basic tutorial

2011-03-02 Thread Alex Hall
happy as things are now working quite nicely. On 3/2/11, Alex Hall wrote: > On 3/2/11, Kenneth Gonsalves wrote: >> On Tue, 2011-03-01 at 23:14 -0500, Alex Hall wrote: >>> I get a very long traceback, ending with sqlite3.OperationalError: >>> unable to open databa

Re: curious about model classes

2011-03-03 Thread Alex Hall
Thanks everyone. Looks like I have reading to do... On 3/3/11, bruno desthuilliers wrote: > > On 2 mar, 22:02, Alex Hall wrote: >> Hi all, >> Still working through that tutorial. I am just curious: why are none >> of the class variables called self.var, but rather

Re: newbie going through basic tutorial

2011-03-04 Thread Alex Hall
On 3/4/11, Karen Tracey wrote: > On Wed, Mar 2, 2011 at 4:43 PM, Alex Hall wrote: > >> Well, looks like things are suddenly working. I started over, and >> changed two things: I removed the path from the database file name and >> I gave it an extension of .db. The file ap