Re: New to Django (stuck at the end of the tutorial)

2016-04-29 Thread Mie Rex
go as the tutorial?? The sense of achievement is great once the view function starts to working and progress are being made. I hope you could figure out your problem soon. Cheers~ Mie Rex於 2016年4月27日星期三 UTC-7下午7時02分56秒寫道: > > I had a smiliar problem with another Django tutorial. >>

Re: I'm new to programming, I don't know where consider as "document root of web server"

2016-04-27 Thread Mie Rex
most dangerous phrase in the language is, "We've always done it this > way." > > - Grace Hopper > > On 28 April 2016 at 11:25, Mie Rex > > wrote: > >> Hello everyone, I am new to Django and quite new to Python as well. >> >> I came across this advice

Re: New to Django (stuck at the end of the tutorial)

2016-04-27 Thread Mie Rex
> > I had a smiliar problem with another Django tutorial. > I was running Django with Anaconda environment and I took the advice from "Two Scoop Django" to have all projects stored in one directory and all the environment in another. Therefore the project "mysite" was initialized and put in a

Re: User Created Objects (models)

2013-10-21 Thread Ideo Rex
to make a unique object on the response of the program. Does anyone have any tips for making this happen. Thanks On Monday, October 21, 2013 2:55:33 AM UTC-7, Daniel Roseman wrote: > > On Monday, 21 October 2013 01:24:22 UTC+1, Ideo Rex wrote: > >> Hello, >> I'm relati

User Created Objects (models)

2013-10-20 Thread Ideo Rex
Hello, I'm relatively new to Django. So I have a working (local) web application. I can create new model objects from the admin site, but I would like my users to be able to create their own objects and save them to the database. I'm really confused on the over arching process on how this is dow

Re: Using an external Server to serve Static files - Development Server

2013-08-21 Thread Ideo Rex
re you referencing your static files from your > templates? > > _Nik > > On 8/21/2013 6:09 PM, Ideo Rex wrote: > > Hello, > > I have a different request that I couldn't find anywhere else on the > > internet. I'm an intern who has built a Django Web A

Using an external Server to serve Static files - Development Server

2013-08-21 Thread Ideo Rex
Hello, I have a different request that I couldn't find anywhere else on the internet. I'm an intern who has built a Django Web Application for my project (basically a large experiment). The cite will never leave development, but I'm holding my static files and templates on another server. I wan

Inspect a Model in Django

2010-07-21 Thread Rex
is will give me the ability to keep my db and forms sync. Thank you for any help Rex disclaimer: I know about ModelForm and all that, but I want to see if there is a way to inspect a Model's meta data and field options. I found functions like get_field_by_name() but they are not in the django do

Finding a Django expert to review my code

2009-07-30 Thread Rex
employment posting websites, but they seemed more geared toward posting jobs or large freelance projects, not something small like this. Thanks, Rex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

How do I display custom error messages to users?

2009-07-05 Thread Rex
There are situations on my site where I'd like to show the a page telling them what they did wrong: their browser doesn't support cookies, they erroneously try to re-submit a form, and so on. However, I want to be notified by email whenever a user encounters one of these errors, since I want to m

PyDev users: how do you manage tabs?

2009-06-30 Thread Rex
Kind of a petty question: I've been using PyDev to do my Django work and find it to be great. However, my only gripe is that it's hard to keep track of tabs, since they display only the (non-qualified) file name, which is a problem given Django's very regular naming scheme. So for example I'll of

Question about ForeignKeys and subclasses

2009-05-31 Thread Rex
method is defined for Ducks but not for Animals. I am running into a situation where I would like to call the quack() method if the room's animal is an instance of Duck. Is there some way to do this? Regards, Rex --~--~-~--~~~---~--~~ You received this message be

Email error reporting not working

2009-05-25 Thread Rex
tered my email address - I ensured that Postfix is installed and running Is there anything else I need to do? I will gladly provide any extra information to troubleshoot this. Rex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Fixed: Why does form.is_valid() throw ValueError?

2009-05-23 Thread Rex
On May 23, 1:40 am, Daniel Roseman wrote: > On May 23, 5:07 am, Rex wrote: > > On May 22, 4:33 pm, "R. Gorman" wrote: > > > On May 21, 10:48 pm, Rex wrote: > > > > > I have the following code in a view, where UserSurveyForm is a > > > &g

Re: Why does form.is_valid() throw ValueError?

2009-05-22 Thread Rex
our data might provide some insight. > > R. > > On May 21, 10:48 pm, Rex wrote: > > > > > I have the following code in a view, where UserSurveyForm is a > > ModelForm. > > > f = UserSurveyForm(request.POST, instance=thisuser) > > if f.is_valid():

Why does form.is_valid() throw ValueError?

2009-05-21 Thread Rex
I have the following code in a view, where UserSurveyForm is a ModelForm. f = UserSurveyForm(request.POST, instance=thisuser) if f.is_valid(): [...] When I try submitting valid data, this works fine. However, when I submit an incomplete form, I get the following traceback: [...] 50.

Loading a filter module for all templates: possible?

2009-05-02 Thread Rex
n't appear to inherit the filters that get loaded. Is this correct? Thanks, Rex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Can the admin site link foreign keys?

2009-04-29 Thread Rex
e list of Users, have the "country" column contain a hyperlink that takes me to that particular Country object. (2) When I'm looking at a Country object, show the set of all users that have a ForeignKey to this Country, along with a hyperlink to those User objects. Any tips would

Re: Blocking multiple form submissions from the same IP address

2009-04-27 Thread Rex
your report that X > participants had the same IP address and have therefore been > excluded). > > Cheers, > > Will Thanks Will and Malcolm for the answers. That is just what I was looking for. It works great. Best, Rex --~--~-~--~~~---~--~~ You

Blocking multiple form submissions from the same IP address

2009-04-26 Thread Rex
that I block off users from IP addresses that have already submitted the survey. What modules/ functions would I use to do this? Thanks, Rex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

FIXED: Can't run django on Apache

2009-03-15 Thread Rex
On Mar 14, 7:52 pm, Rex wrote: > On Mar 4, 12:47 pm, John Maines wrote: > > > > > Hello: > > > I've installed Django 1.0 on Ubuntu and am trying to get it to run on > >Apache.Apacheis installed, working fine, with mod-python also in > > place. I

Re: Can't run django on Apache

2009-03-14 Thread Rex
ead of launching the Django project I attempt to specify in my directive. I have a project called "mturk". I want to run it on from mysite.com/ myapp. Based on the answers to the OP's questions, it seems like I should be putting something like this in one of my confi

Moving a Django project to another directory/server

2009-03-14 Thread Rex
would have the same name (unless there's an easy workaround). - Is copying a Django project to another machine/directory simply a matter of transferring the project's directory to the desired location, or does some other work have to be done first to

Re: How are request.session assignments persisted?

2009-03-07 Thread Rex
assigning to request.session, all the other variables referring to > that object will see the updates. > > Cheers, > Malcolm Thanks for the helpful reply, Malcolm! It makes perfect sense now. Cheers, Rex --~--~-~--~~~---~--~~ You received this message

How are request.session assignments persisted?

2009-03-07 Thread Rex
I'm reading the documentation on sessions (http:// docs.djangoproject.com/en/dev/topics/http/sessions/?from=olddocs) and saw the following example: def post_comment(request, new_comment): if request.session.get('has_commented', False): return HttpResponse("You've already commented.")

Re: django-admin.py not working on Vista

2009-01-09 Thread Rex
On Jan 9, 11:51 pm, "Karen Tracey" wrote: > On Fri, Jan 9, 2009 at 10:55 PM, Rex wrote: > ... > > I Googled around, and the only thing I found was this comment: > > > "you have to change the file association from (cant remember) to "%1″ >

django-admin.py not working on Vista

2009-01-09 Thread Rex
I installed Django on my Vista box. Using the Windows command shell, I go to the site-packages/django/bin directory and here's what I get when I type various commands: > django-admin.py help Type 'django-admin.py help' for usage. > python django-admin.py help [This gives me the proper help instr

Re: urlpatterns and generic views cheatsheet

2008-08-25 Thread rex
ocuments? All documents belonging to users that we have terminated for abuse are deleted at the point of termination. Scribd will not provide backups or access to these deleted documents. How does Scribd define "abuse?" Abuse is any activity that detracts

Re: Django-survey fails with beta-1

2008-08-20 Thread rex
y, and it works. Thank you much for your help. Now if I can just understand the level of abstraction... -rex -- I ain't goin' to buy my kids an encyclopedia. Let them walk to school the way I did. --~--~-~--~~~---~--~~ You received this message because you are

Django-survey fails with beta-1

2008-08-20 Thread rex
Running Debian Lenny, I uninstalled Django 0.96-2, installed Django beta 1, and downloaded Django-survey. The result of running it is below. Any help appreciated, thanks. -rex XXX:~/djcode/django-survey-read-only$ python examples/manage.py runserver Validating models... Unhandled exception in

Re: Template help, gotta be simple

2008-02-03 Thread rex
it *should* be in the view anyway??? it's logic... but it should be possible? Something like this would work... although.. it's hideously innefficient. {% for row in data %} {% for key,val in row.items %} {% for field in fields %} {% ifequal field key %} {{ key }}: {{ val }} {% endifequal %} {% e

Creating dynamically expanding forms

2008-01-01 Thread Rex Eastbourne
has the option "Enter another address", and if he clicks on that button, a new set of fields is created, and which the a user can fill out the new address, and can keep adding new addresses until he feels he is finished. What is the easiest way to do this

Re: (Newbie) TemplateSyntaxError in admin panel

2007-12-23 Thread Rex Eastbourne
Hi, Is there any solution to the below described problem? I still haven't been able to get it to work. Best, Rex On Dec 20, 3:11 am, Rex Eastbourne <[EMAIL PROTECTED]> wrote: > Hello, > > I'm going through the Django tutorial for Django 0.9.6 on Windows > Vista.

Re: Installing mod_python in xampp

2007-12-20 Thread Rex Eastbourne
Thanks to both of you! I got it working. I also checked out InstantDjango; reminds me of InstantRails, which I liked. Rex On Dec 19, 10:03 pm, cjl <[EMAIL PROTECTED]> wrote: > Rex: > > You might want to check out my stupid little project: > > http://www.instantdjango.com &g

(Newbie) TemplateSyntaxError in admin panel

2007-12-20 Thread Rex Eastbourne
lateSyntaxError, appended below. Any ideas on how to fix this? The only thing I did outside of the tutorial instructions was to follow the fix described here because of an apparent flaw with 0.96.: http://forums.devshed.com/showpost.php?p=1856484&postco

Installing mod_python in xampp

2007-12-19 Thread Rex Eastbourne
http://addons.xampp.org/project/3.html But I'm still unsure about where to place the files in the 'lampp' folder. Any advice? Thank you, Rex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Django deployment à lá Capistrano

2007-09-13 Thread rex
Hello. I'd be interested in helping with writing a Capistrano replacement for Django in python (not a port!). I'm relatively new to django sites, but quite an old hand at python. Regarding names... surely this is the least important part of a project like this :) My 2c though: dojango! T

Re: License Terms

2007-01-09 Thread Rex
Thanks for the insight! Though I myself like to have new development open to the community, my client insists that he own the code, I have no choice. I wish to us django in a big way and delight him :) On Jan 7, 4:45 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On

License Terms

2007-01-06 Thread Rex
Hi, I understand the terms of the BSD license. One thing still eludes me: What if I want to develop a web application / enterprise application which I want to sell to a company. Does the license terms allow it? Django will be delivered in terms of BSD license. But what about thee code we have w