Re: Form formatting

2010-01-28 Thread Zeynel
This works: label {font-weight: normal;} th {text-align: right;} On Jan 28, 11:32 am, Zeynel wrote: > Thanks. I added the CSS to the template; but it is not working. What > am I doing wrong? > > > >     Feedback >     >        label {font-weight:

Re: Form formatting

2010-01-28 Thread Zeynel
4 am, Rick Caudill wrote: > Use CSS. > > label {font-weight: none} > th {align: left} > > > > > > On Thu, Jan 28, 2010 at 9:53 AM, Zeynel wrote: > > Hello, > > > How can I remove the bold in this formhttp://swimswith.com/feedback/ > > and fi

Form formatting

2010-01-28 Thread Zeynel
Hello, How can I remove the bold in this form http://swimswith.com/feedback/ and fix the alignment? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from

Re: Number of total items in the database

2010-01-27 Thread Zeynel
Thanks. That works. On Jan 27, 1:26 pm, Malcolm Box wrote: > On Wed, Jan 27, 2010 at 6:10 PM, Zeynel wrote: > > Hello, > > > How do I query the the total number of items in the database to put in > > a template? > > > I want to add to this pagehttp://swimswi

Number of total items in the database

2010-01-27 Thread Zeynel
Hello, How do I query the the total number of items in the database to put in a template? I want to add to this page http://swimswith.com/search/ that "There are currently [X] lawyers in the database." Thanks -- You received this message because you are subscribed to the Google Groups "Django

Re: Chaining queries?

2010-01-13 Thread Zeynel
I answered my own question: http://stackoverflow.com/questions/2058573/how-to-refine-an-initial-query-in-django Any improvements and suggestions are welcome. On Jan 13, 1:36 pm, Zeynel wrote: > I am using this query in the views function search() to find a lawyer > in the da

Chaining queries?

2010-01-13 Thread Zeynel
I am using this query in the views function search() to find a lawyer in the database: lawyers = Lawyer.objects.filter(last__icontains=q) q is the query entered by user here: http://swimswith.com/search-form/ For instance, searching for "lelland" returns her info: http://swimswith.com/se

Re: Referencing the view function in urlpatterns

2010-01-13 Thread Zeynel
Thanks. This may be it. I'll try it later. But does that also explain why in the dev server the reference is not a string but in the production server it is a string? On Jan 13, 12:23 pm, Tim Miller wrote: > Zeynel wrote: > > I created a view function for a search form and put it

Referencing the view function in urlpatterns

2010-01-13 Thread Zeynel
I created a view function for a search form and put it in my views.py like this: (r'^search-form/$', views.search_form), This worked fine in the development server. When I did the same in the production server I got an 500 server error. Then I realized that the reference to view should be string

Search filter and sort in one step?

2010-01-08 Thread Zeynel
I want to improve the search function in the admin. I asked the same question both here and in stackoverflow previously but there were no answers: http://stackoverflow.com/questions/2029310/django-admin-search Does anyone know if this is impossible to do? Thanks. -- You received this message bec

Re: Clickable url in the admin

2009-12-22 Thread Zeynel
Thank you. Can you give me more detailed instructions about how to do this? I couldn't parse the referenced section of the documentation. How do I create the method "to generate anchor?" Where does the "method name" go in the admin.py? Thanks again. On Dec 14, 6:41 pm, rebus_ wrote: > Create met

Re: Clickable url in the admin

2009-12-14 Thread Zeynel
I found this thread: http://groups.google.com/group/django-users/msg/11b034152c9dff1a Does anyone have more details on urlize? On Dec 14, 1:16 pm, Zeynel wrote: > In my models I have this field > > firm_url = models.CharField('Bio', max_length=200) > > that should h

Clickable url in the admin

2009-12-14 Thread Zeynel
In my models I have this field firm_url = models.CharField('Bio', max_length=200) that should have a link to the website where the lawyer bio is. This is in the admin. I thought that firm_url = models.URLField('Bio', max_length=200) would make the url appear as a link; but it doesn't; documenta

Is there a way to display the admin filters in two columns?

2009-12-13 Thread Zeynel
This is what I have now in admin.py class LawyerAdmin(admin.ModelAdmin): fieldsets = [ ('Name', {'fields': ['first', 'last', 'firm_name', 'firm_url', 'school', 'year_graduated']}), #('School', {'fields': ['school', 'year_graduated']}), ] list_display = ('first', 'last

Re: The best way to populate sqlite3 database

2009-12-12 Thread Zeynel
On Dec 12, 3:04 pm, Shawn Milochik wrote: > > http://pastebin.com/f651cf8de Hi, Thanks for the script, I want to use it but I have some questions. These are from the previous thread: http://groups.google.com/group/django-users/msg/091f964c6c8e40c7 but I have others as well. Thanks again. --

Re: CSV to JSON snippet

2009-12-12 Thread Zeynel
This is fixed by modifying lines 31-32: http://stackoverflow.com/questions/1894099/csv2json-py-error On Dec 10, 3:12 pm, Zeynel wrote: > This worked fine before but now I get the error > > C:\...\Django\sw2\wkw2>csv2json.py csvtest1.csvwkw2.Lawyer > Converting C:\...\Django\s

The best way to populate sqlite3 database

2009-12-12 Thread Zeynel
Hi, I first put the data in csv format than convert it to json and then create a fixture... which seems a long process. This http://stackoverflow.com/questions/1884694/how-to-populate-sqlite3-in-django/1885417#1885417 answer suggests to "Just load the database directly," but without giving much pr

Re: Looking for guidance on django-registration

2009-12-12 Thread Zeynel
I think this will be in the documentation of your hosting co, for instance, http://docs.webfaction.com/software/django.html#configuring-django-to-send-email-messages On Dec 12, 11:51 am, vishy wrote: > got the registration working.Now, how to setup activation email? > > On Dec 12, 9:41 pm, vishy

Re: Can I change the models.py of an existing django app?

2009-12-12 Thread Zeynel
Shawn, Since I did not want to save the data I deleted the db file and ran synchdb and that created a new database. But eventually I will use south because I will keep adding new columns to this database. Thanks. On Dec 11, 7:50 pm, Shawn Milochik wrote: > I feel like a broken record this week --

Re: Can I change the models.py of an existing django app?

2009-12-12 Thread Zeynel
On Dec 11, 5:23 pm, Nick Arnett wrote: > If you don't need to save your existing data, the easiest thing is to drop > the old database and re-create it, then let syncdb create all the tables > again. Yes, I deleted the content of the sqlite3 database file and then ran syncdb and it created the n

Re: Can I change the models.py of an existing django app?

2009-12-11 Thread Zeynel
On Dec 11, 2:42 pm, "bax...@gretschpages.com" wrote: > If the table already exists, you will need to manually modify it. For > sqlite3, I would suggest the Firefox sqllite manager plugin, which > makes editing the tables pretty easy. You are right. I did upload the new models.py and run python2.

Re: Can I change the models.py of an existing django app?

2009-12-11 Thread Zeynel
On Dec 11, 1:52 pm, "bax...@gretschpages.com" wrote: > On Dec 11, 12:21 pm, Zeynel wrote: > > syncdb will not alter an existing database. You can run it (it won't > hurt) but it won't insert the new fields. I am confused about this because the

Re: Can I change the models.py of an existing django app?

2009-12-11 Thread Zeynel
On Dec 11, 1:21 pm, Phlip wrote: > What does manage.py syncdb do? I think it sets up the new database: http://stackoverflow.com/questions/1889622/how-to-replace-models-py-in-django-app-in-the-production-server/1889650#1889650 -- You received this message because you are subscribed to the Googl

Re: Can I change the models.py of an existing django app?

2009-12-11 Thread Zeynel
Ok. What else do I need to do after uploading the new models.py with new fields to the server and run manage.py syncdb? On Dec 11, 12:50 pm, "bax...@gretschpages.com" wrote: > On Dec 11, 11:39 am, Zeynel wrote: > > > I just want to add 2 new fields to the mode

Can I change the models.py of an existing django app?

2009-12-11 Thread Zeynel
I just want to add 2 new fields to the model. If I upload the new models.py would the app work as before? I asked the same question in OS that includes the models. Thanks for the help. http://stackoverflow.com/questions/1889622/how-to-replace-models-py-in-django-app-in-the-production-server -- Y

Re: CSV to JSON snippet

2009-12-10 Thread Zeynel
__file__) + input_file_name + ".json" 34 print "Converting %s from CSV to JSON as %s" % (in_file, out_file) 36 f = open(in_file, 'r' ) 37 fo = open(out_file, 'w') It seems to combine the directory name and file name? Thanks. On Nov 14, 7:42 am, Zeynel w

Re: How to populate the database

2009-12-10 Thread Zeynel
e: > You could also use OpenOffice with the SQLIte connector (I think) > > I use Access in Windows, works great! > > But you might try getting the CSV into a JSON format that the > manage.py loaddata command could use, that set's you up for the future > too. > >

Re: How to populate the database

2009-12-10 Thread Zeynel
Thanks, I'll try it now. What does os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings' do? I read the documentation here http://docs.python.org/library/os.html but I didn't understand. My app is in C:.../Documents/PROJECTS/Django/sw2/wkw2. Do I enter? os.environ['DJANGO_SETTINGS_MODUL

Re: How to populate the database

2009-12-10 Thread Zeynel
Thanks. I couldn't make the sqlite3 shell work on windows command prompt, so I cannot use .import. > read the csv with csv.DictReader, then create instances of my model > with the values from the resulting dictionary, then calling a .save() on > the new instance. Do you have more detailed instruc

How to populate the database

2009-12-10 Thread Zeynel
Can anyone point me in the right place in documentation for populating my sqlite3 tables with the data in the .csv file? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com.

Using admin search as keyword search?

2009-12-04 Thread Zeynel
I asked this in Stackoverflow but there was no answers: http://stackoverflow.com/questions/1849250/django-admin-search-functionality Can anyone here help with ways to achieve this: I have a simple database in django with SQLite and now I want to improve it with a better search capability (I will

Re: Redirect problems

2009-11-18 Thread Zeynel
I am confused because I don't exactly understand how urlpatterns works. I hope to read about it more, e.g., I found this document with lots of examples: http://www.scribd.com/doc/4975790/urlpatterns-for-django-cheatsheet Thanks for the help. On Nov 18, 11:09 am, Skylar Saveland wrote:

Redirect problems

2009-11-18 Thread Zeynel
I've been trying to redirect /admin/ to /admin/wkw1/lawyer The suggestions from my previous post http://groups.google.com/group/django-users/msg/67c4594a4083bd45 did not work. I read the redirect section in the documents as suggested http://docs.djangoproject.com/en/dev/ref/generic-views/#djan

Re: Can I change the title of an admin page?

2009-11-17 Thread Zeynel
r new file will have only 2 lines of code inside. > What it does is it extends the original template and thanks to django > blocks you overwrite the title section. > > lzantalhttp://twitter.com/lzantal > > On Nov 17, 6:46 am, Zeynel wrote: > > > > > Ok, thanks. I read t

Re: Can I change the title of an admin page?

2009-11-17 Thread Zeynel
tarted the server. But I don't see the change. What am I doing wrong? Thanks again for your help. On Nov 17, 8:57 am, Karen Tracey wrote: > On Tue, Nov 17, 2009 at 8:46 AM, Zeynel wrote: > > I am sorry, I am new to django and I don't understand what I need to > > do here.

Re: Can I change the title of an admin page?

2009-11-17 Thread Zeynel
t; {% block content_title %}Your Title Here{% endblock %} > > Hope it helps > > lzantalhttp://twitter.com/lzantal > > On Nov 16, 5:31 pm, Zeynel wrote: > > > > > RIDER 2: > > > pictures of the title I want to change: > > >http://zeynel.posterous.com/django-

Re: Can I change the title of an admin page?

2009-11-16 Thread Zeynel
RIDER 2: pictures of the title I want to change: http://zeynel.posterous.com/django-template-problem On Nov 16, 3:35 pm, Zeynel wrote: > In case someone else has the same problem: I hard-coded the text I > wanted in between h1 tags in template base.html. > > {% block content_t

Re: Default sort order in admin

2009-11-16 Thread Zeynel
sue. If you look at the pictures here http://zeynel.posterous.com/django-template-problem the title "Search lawyer by last name" should not be in the /admin/ wkw1 directory because the search box is in /admin/wkw1/lawyer/. How do I change that title? On Nov 16, 5:55 pm, Daniel Roseman wr

Re: Can I change the title of an admin page?

2009-11-16 Thread Zeynel
me know. On Nov 16, 2:57 pm, Zeynel wrote: > I found that the base.html template takes the title in admin change > page from the title of the page: > > line 64 in base.html: > > {% block content_title %}{% if title %}{{ title }}{% endif %} > {% endblock %} > > How ca

Can I change the title of an admin page?

2009-11-16 Thread Zeynel
I found that the base.html template takes the title in admin change page from the title of the page: line 64 in base.html: {% block content_title %}{% if title %}{{ title }}{% endif %} {% endblock %} How can I change the title of the page? Does anyone know? Also mentioned here: http://code.djan

Re: Disabling site wide actions

2009-11-16 Thread Zeynel
EDIT: In the page source code the title that I want to change shows like this: Select lawyer to change Where do i find this class="flex" ? On Nov 16, 1:34 pm, Zeynel wrote: > Django rocks! I used disable a site-wide action as explained here > > http://docs.djang

Disabling site wide actions

2009-11-16 Thread Zeynel
Django rocks! I used disable a site-wide action as explained here http://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/#disabling-a-site-wide-action but now I have the title "Select a lawyer to change" just above my search box. The action box is gone, but it's title is still there. Can

Changing the admin templates

2009-11-16 Thread Zeynel
My app is almost done but before I send it out to get some feedback I want to make a couple of more design tweaks. I changed the branding on the login dialogue box and on the dark blue band on top, by changing the template base_site.html. On the home page (www.swimswith.com/admin/) I want to chan

Re: Default sort order in admin

2009-11-16 Thread Zeynel
ering/ What is the correct way actually? On Nov 16, 10:22 am, Karen Tracey wrote: > On Mon, Nov 16, 2009 at 10:11 AM, Zeynel wrote: > > Hi, > > > Is there a way to change the default sort order in admin of my sqlite > > db? At this point it sorts the table in the order ent

Default sort order in admin

2009-11-16 Thread Zeynel
Hi, Is there a way to change the default sort order in admin of my sqlite db? At this point it sorts the table in the order entered (last entered item first). Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: setup python, django for web development

2009-11-16 Thread Zeynel
This site has instructions http://www.webmonkey.com/tutorial/Install_Django_and_Build_Your_First_App that appear to be simpler than the official django tutorial http://docs.djangoproject.com/en/dev/intro/install/#intro-install On Nov 16, 1:20 am, harshad wrote: > hello All, > > Im new to python,

Re: Auth and Sites in Admin

2009-11-15 Thread Zeynel
great tool and there is still a lot to learn. On Nov 15, 9:22 pm, Alex Robbins wrote: > Those sections won't show up for anyone who doesn't have edit > permissions. As long as you don't give the admin user superuser status > or permissions for those apps they won't sh

Re: Redirect

2009-11-15 Thread Zeynel
I couldn't make this one work: ('^$', lambda *args: HttpResponseRedirect('/admin/')) I want to try the other case, which file in apache do I use? Thanks On Nov 15, 1:01 pm, Dennis Kaarsemaker wrote: > On zo, 2009-11-15 at 09:35 -0800,

Redirect

2009-11-15 Thread Zeynel
hello, how do i redirect www.swimswith.com to www.swimswith.com/admin/ Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to dj

Auth and Sites in Admin

2009-11-14 Thread Zeynel
Is it possible to remove "Auth" and "Sites" sections from the Admin panel? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django

Re: New user login problem

2009-11-14 Thread Zeynel
the ModelAdmin.queryset() and ModelAdmin.has_change_permission() can be used to control the visibility and editability of objects in the admin. Is there anyone who is familiar with this process? On Nov 14, 9:38 am, Zeynel wrote: > Hello, > > I am creating a new user successfully but I cannot login with tha

New user login problem

2009-11-14 Thread Zeynel
Hello, I am creating a new user successfully but I cannot login with that new user. I make sure that username and pw (case sensitive) are correct. Is there more to creating a new user? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: CSV to JSON snippet

2009-11-14 Thread Zeynel
Great, thank you. When I ran it in the command prompt it worked fine. I noticed that the first column needs to be "pk" with rows starting with integers. On Nov 13, 11:24 pm, Karen Tracey wrote: > On Fri, Nov 13, 2009 at 10:57 PM, Zeynel wrote: > > Thanks, I tried but this

Re: CSV to JSON snippet

2009-11-13 Thread Zeynel
simplejson" > > Now try running the csv2json.py script from the command line: > >      python csv2json.py sw.csv wkw1.Lawyer > > See if that solves the problem. > > Best, > > Ben > > On Nov 12, 2:14 pm, Zeynel wrote: > > > > > Hi, > > &g

Debugging loaddata

2009-11-13 Thread Zeynel
Since my attempt to use sqlcustom to insert some data into my SQLite3 database failed I was trying to use a JSON fixture. But when I tried it, I got this traceback. Can anyone help me locate these files so that I can understand what the error is? (I don't know where to find the referenced files) T

Re: sqlcustom

2009-11-13 Thread Zeynel
mp;q=sqlcustom#359e6d294f5faed7 On Nov 13, 9:51 am, Zeynel wrote: > I am trying to add some records to my SQLite3 database with sqlcustom > as explained > herehttp://docs.djangoproject.com/en/dev/ref/django-admin/#ref-django-admin > > I don't get any errors when I run > > C

sqlcustom

2009-11-13 Thread Zeynel
I am trying to add some records to my SQLite3 database with sqlcustom as explained here http://docs.djangoproject.com/en/dev/ref/django-admin/#ref-django-admin I don't get any errors when I run C:\sw1>manage.py sqlcustom wkw1 BEGIN; INSERT INTO mkw1_lawyer (first, initial, last, year_graduated

Re: Apache2 installation

2009-11-13 Thread Zeynel
erent directories: /home/zeynel/sw1 and /home/webapps/ django/sw1. I kept changing the settings.py in /home/sw1 DEBUG = False, and resetting the server, and nothing was happening. I found that I needed to change the settings.py here: /home/webapps/django/sw1 So that's done and hopefully that r

Apache2 installation

2009-11-12 Thread Zeynel
Hello, I've been trying to port my app to apache2 server from the django development server. After trying all day, I now see the admin page but I don't see my app. Hosting co is not helping because they say this is "pure django." Is there someone familiar with this process and could you point me

Re: CSV to JSON snippet

2009-11-12 Thread Zeynel
Hi, my project is in C:/sw1/wkw1 models are in C:/sw1/wkw1/models.py Model name is Lawyer. So, in the python shell I import simplejson with from django.utils import simplejson then I enter csv2json.py sw.csv wkw1.Lawyer and I get the error >>> from django.utils import simplejson >>> csv2js

CSV to JSON snippet

2009-11-12 Thread Zeynel
Hello, I am trying to use this CSV to JSon Fixture snippet but I couldn't make it work. http://www.djangosnippets.org/snippets/1680/ Can anyone help me to run this snippet. I copy the instruction below. Thank you. -- The instructions for csv2json.py

Re: admin.site.register() - help

2009-11-11 Thread Zeynel
ide gives an error when def __unicode__(self): return self.keyword has no indent as the op had. On Nov 11, 11:09 pm, Kenneth Gonsalves wrote: > On Thursday 12 Nov 2009 9:36:11 am Zeynel wrote: > > > Sorry, I am a beginner but I noticed that in my models the indent of > &g

Re: admin.site.register() - help

2009-11-11 Thread Zeynel
Sorry, I am a beginner but I noticed that in my models the indent of unicode is indented like this: class SearchKeyword(models.Model): keyword = models.CharField(max_length=50) page = models.ForeignKey(FlatPage) def __unicode__(self): return self.keyword I have no idea if this

Re: problems registering models in admin

2009-11-11 Thread Zeynel
My models.py was in the path, C:/sw1/wkw/models.py I had to include sw1: from sw1.wkw1.models import Lawyer I don't if this is true in your case as well. On Nov 11, 8:19 pm, neridaj wrote: > I'm working on a standalone app and when I try to add it to the admin > index it does not show up using

Re: A simple database project

2009-11-11 Thread Zeynel
Ok, I tried search_fields = ['school__lawyer_first'] and I get this error Cannot resolve keyword 'lawyer_first' into field. Choices are: id, lawyer, school In the variations that I tried only search_fields = ['school__school'] worked. I followed the tutorial and arranged lawyer names as a l

Adding a second search box to admin panel?

2009-11-11 Thread Zeynel
Hello, I have almost what I wanted to achieve. At least enough for a demo. It works like this: Enter a law school, say "NYU" The search results show First, Initial, Last, School, Year Graduated Then I click the desired year in the Filter for "Year Graduated" and I can see all lawyers who grad

Re: A simple database project

2009-11-11 Thread Zeynel
__unicode__(self): return self.first Thank you On Nov 10, 7:35 pm, Kenneth Gonsalves wrote: > On Wednesday 11 Nov 2009 5:51:00 am Zeynel wrote:> So I want to enter in the > search box "Lawyer1" and in the result page > > I want to see "Lawyer1 knows L

Re: A simple database project

2009-11-10 Thread Zeynel
Lawyer1 and Lawyer2 graduated from NYU in 2000. So I want to enter in the search box "Lawyer1" and in the result page I want to see "Lawyer1 knows Lawyer2" How do I do this? Thank you so much. On Nov 7, 12:23 pm, Tomasz Zieliński wrote: > On 7 Lis, 15:58, Zeynel

Adding a search box in admin

2009-11-10 Thread Zeynel
Hello, Thanks again for all the help. I have the admin page and I added some lawyer names and schools, now I want to add the search box. In the tutorial it says "Let's add some search capability: search_fields = ['question'] ... " Translating this to my model, I entered in admin.py search_fi

Re: TemplateSyntaxError

2009-11-10 Thread Zeynel
s.djangoproject.com/en/dev/topics/db/models/#meta-optionshttp://docs.djangoproject.com/en/dev/ref/models/options/#verbose-name... > > Hope that helps :) > > On Nov 10, 3:14 am, Zeynel wrote: > > > > > Hello, > > > These are my tables: > > > BEGIN; >

Re: TemplateSyntaxError

2009-11-10 Thread Zeynel
r Graduated" field I just need the year, so I need to remove, day, month, and time. How do I make these changes? There must be a way without starting over and creating a new project. Thanks. On Nov 10, 8:06 am, Daniel Roseman wrote: > On Nov 10, 12:57 pm, Zeynel wrote: > > > &

Re: TemplateSyntaxError

2009-11-10 Thread Zeynel
Hi Tim, Yes, I syncdb several times. C:\sw\sw>manage.py syncdb C:\sw\sw>manage.py sql wkw BEGIN; CREATE TABLE "wkw_school" ( "id" integer NOT NULL PRIMARY KEY, "school" varchar(200) NOT NULL ) ; CREATE TABLE "wkw_lawyer" ( "id" integer NOT NULL PRIMARY KEY, "school_id" integer

TemplateSyntaxError

2009-11-09 Thread Zeynel
Hello, These are my tables: BEGIN; CREATE TABLE "wkw_school" ( "id" integer NOT NULL PRIMARY KEY, "school" varchar(200) NOT NULL ) ; CREATE TABLE "wkw_lawyer" ( "id" integer NOT NULL PRIMARY KEY, "first" varchar(20) NOT NULL, "initial" varchar(2) NOT NULL, "last" varchar(

Re: Help about models

2009-11-09 Thread Zeynel
Hello Greg and Jirka, Thanks for the help. I was rereading the tutorial to understand the ForeignKey. It says that ForeignKey "tells Django each Choice is related to a single Poll." In my case, each lawyer is associated with 1 law school; and each law school is associated with 1 or more lawyer

Help about models

2009-11-08 Thread Zeynel
Hello, I decided to start my own project with what I learned from part 1 of the tutorial. I have the project in C:\sw\sw\wkw The app sw.wkw is a prototype for a "who-knows-who" database for legal profession. I wanted to start with a really simple model: class Lawyer(models.Model): first =

Re: No module named django

2009-11-08 Thread Zeynel
Selam, evet izleyecem. Guzel bir site. On Nov 8, 8:25 am, joker wrote: > Merhaba;www.djangoturkiye.comadresinden videolu eğitimlerle ders hazırladım > inceleyebilirsin > > On 8 Kasım, 00:49, Zeynel wrote: > > > > > Great! Thank you very much. I downloaded django-1

Re: Error: No module named pollsdjango.contrib.admin

2009-11-08 Thread Zeynel
Thank you!! On Nov 8, 12:01 pm, Karen Tracey wrote: > On Sun, Nov 8, 2009 at 11:58 AM, Zeynel wrote: > > > Hi again, > > > Thanks for the help so far. > > > I am now working on the part 2 of the tutorial. > > > I updated the INSTALLED_APPS with '

Error: No module named pollsdjango.contrib.admin

2009-11-08 Thread Zeynel
Hi again, Thanks for the help so far. I am now working on the part 2 of the tutorial. I updated the INSTALLED_APPS with 'django.contrib.admin': INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'mysit

Class definition in the tutorial

2009-11-08 Thread Zeynel
I am just learning Object Oriented terminology as I go along. Please help me to understand what each word means in the class definition in the tutorial http://docs.djangoproject.com/en/dev/intro/tutorial01/ . Thank you. class => defines a class Poll => name of the class? [my guess: this is just

Re: No module named django

2009-11-07 Thread Zeynel
Karen Tracey wrote: > On Sat, Nov 7, 2009 at 4:15 PM, Zeynel wrote: > > > Hello, > > > I know this has been asked here a million times before, but I couldn't > > find the right answer. It seems something to do with PYTHONPATH. Can > > anyone help me figur

No module named django

2009-11-07 Thread Zeynel
Hello, I know this has been asked here a million times before, but I couldn't find the right answer. It seems something to do with PYTHONPATH. Can anyone help me figure this out. This is the error message on the windows shell: C:\Django-1.1.1>setup.py install Traceback (most recent call last):

Re: A simple database project

2009-11-07 Thread Zeynel
Thanks. I started to study. On Nov 7, 12:23 pm, Tomasz Zieliński wrote: > On 7 Lis, 15:58, Zeynel wrote: > > > Hello, > > > I am planning to build a demo prototype for a who-knows-who database > > for the legal profession. Database will consist of lawyer name, sc

A simple database project

2009-11-07 Thread Zeynel
Hello, I am planning to build a demo prototype for a who-knows-who database for the legal profession. Database will consist of lawyer name, school and year graduated. Searching by lawyer name will return other lawyers graduated from same law school the same year. Can I build this in Django? How l