Mr. Mister | 1 Feb 01:09 2008
Picon

Problem getting new project started


Hi, I have had some problms installing Django in Windows XP. I have
finally got it to work, in a fashion. I can go to the command prompt
and type "django-admin.py startproject mysite" I set path variables,
etc so this command is semi-valid. The only problem is that instead of
creating a 'mysite' folder in the current directory, it displays a
list of possible commands. startproject is one of those commands, but
no matter whatI do, it won't work.

Thanks for all the 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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Carl Karsten | 1 Feb 01:34 2008

form for display, not edit


newforms is great for creating forms.  I need something similar to generate a 
display form from a model.

I looked at subclassing form, but what I would need to override is in the 
widgets.  which is probably why my hope isn't a good one.  but for what I need, 
I only am using char fields, so I don't have to worry about widgets.

So, is there some way to render a form as just text?

Carl K

--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

alex.gaynor@gmail.com | 1 Feb 02:01 2008
Picon

Re: form for display, not edit


Using SVN you could SVN use modelforms, on .96 use the form_for
helpers.

On Jan 31, 6:34 pm, Carl Karsten <c... <at> personnelware.com> wrote:
> newforms is great for creating forms.  I need something similar to generate a
> display form from a model.
>
> I looked at subclassing form, but what I would need to override is in the
> widgets.  which is probably why my hope isn't a good one.  but for what I need,
> I only am using char fields, so I don't have to worry about widgets.
>
> So, is there some way to render a form as just text?
>
> Carl K
--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Carl Karsten | 1 Feb 02:13 2008

Re: form for display, not edit


alex.gaynor <at> gmail.com wrote:
> Using SVN you could SVN use modelforms, on .96 use the form_for
> helpers.

but modelforms still puts everything in <input> tags, right?

Carl K

> 
> On Jan 31, 6:34 pm, Carl Karsten <c... <at> personnelware.com> wrote:
>> newforms is great for creating forms.  I need something similar to generate a
>> display form from a model.
>>
>> I looked at subclassing form, but what I would need to override is in the
>> widgets.  which is probably why my hope isn't a good one.  but for what I need,
>> I only am using char fields, so I don't have to worry about widgets.
>>
>> So, is there some way to render a form as just text?
>>
>> Carl K
> > 
> 

--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
(Continue reading)

James Bennett | 1 Feb 02:31 2008
Picon

Re: User permissions


On Jan 31, 2008 5:06 PM, Chris <macmichael01 <at> gmail.com> wrote:
> I've been reading up on user permissions and I have found that user
> permissions are on a per-model basis. My question: If I have a photo
> gallery application, and I have several uses who can post their
> galleries to this application. Is there a way to create permission on
> a per-user basis. Example maybe I created a gallery called 'The
> Rockies' but I only want Bob, Susan, and Tim to see it, Is this
> possible with the built in permissions? or would I have to create a
> table column similar to is_public = models.booleanField().

If all you're worrying about is the public display and/or non-admin
forms, it's fairly simple to do the necessary check in your own code
based on data stored in the model object. Depending on the exact
nature of the check, you might even be able to write a decorator to
handle it for you.

In the admin it's basically not possible right now, but will become
very easy in the not-too-distant future.

--

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

(Continue reading)

aym35 | 1 Feb 03:44 2008
Picon

can't view my app in the admin page


hey Guys,

* warning: this is a beginner question!

I created a django project and a simple app... I added a simple class
in models.py (I put in an inner Admin class), synced the db,  and
visited the admin page...

however, I cannot see a field on the admin page related to my new
class... only the three default links are on this page...i.e. sites,
users,groups...

I really don't understand what is going wrong... what do you guys
suggest in terms of debugging (I get no errors by the way)

Aydin.
--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Jeff Anderson | 1 Feb 03:46 2008
Picon

Re: can't view my app in the admin page

You'll need to paste some code so we can see the problem.
Debugging advice: Double check everything!

Jeff Anderson

aym35 wrote:
> hey Guys,
>
> * warning: this is a beginner question!
>
> I created a django project and a simple app... I added a simple class
> in models.py (I put in an inner Admin class), synced the db,  and
> visited the admin page...
>
> however, I cannot see a field on the admin page related to my new
> class... only the three default links are on this page...i.e. sites,
> users,groups...
>
> I really don't understand what is going wrong... what do you guys
> suggest in terms of debugging (I get no errors by the way)
>
> Aydin.
> --~--~---------~--~----~------------~-------~--~----~
> 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 <at> googlegroups.com
> To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>   
(Continue reading)

alex.gaynor@gmail.com | 1 Feb 03:49 2008
Picon

Re: can't view my app in the admin page


Is your app in the installed apps list in settings?

On Jan 31, 8:46 pm, Jeff Anderson <jeffe... <at> programmerq.net> wrote:
> You'll need to paste some code so we can see the problem.
> Debugging advice: Double check everything!
>
> Jeff Anderson
>
> aym35 wrote:
> > hey Guys,
>
> > * warning: this is a beginner question!
>
> > I created a django project and a simple app... I added a simple class
> > in models.py (I put in an inner Admin class), synced the db,  and
> > visited the admin page...
>
> > however, I cannot see a field on the admin page related to my new
> > class... only the three default links are on this page...i.e. sites,
> > users,groups...
>
> > I really don't understand what is going wrong... what do you guys
> > suggest in terms of debugging (I get no errors by the way)
>
> > Aydin.
> > >
>
>
>  signature.asc
(Continue reading)

alex.gaynor@gmail.com | 1 Feb 03:50 2008
Picon

Re: form for display, not edit


Yes, I suppose if you wanted you could create a custom form that added
the attribute disabled to all of them, however I am not aware of any
other way, someone else might be able to explain how to alter all the
fields in the __init__ method but I'm  not sure how.

On Jan 31, 7:13 pm, Carl Karsten <c... <at> personnelware.com> wrote:
> alex.gay... <at> gmail.com wrote:
> > Using SVN you could SVN use modelforms, on .96 use the form_for
> > helpers.
>
> but modelforms still puts everything in <input> tags, right?
>
> Carl K
>
>
>
> > On Jan 31, 6:34 pm, Carl Karsten <c... <at> personnelware.com> wrote:
> >> newforms is great for creating forms.  I need something similar to generate a
> >> display form from a model.
>
> >> I looked at subclassing form, but what I would need to override is in the
> >> widgets.  which is probably why my hope isn't a good one.  but for what I need,
> >> I only am using char fields, so I don't have to worry about widgets.
>
> >> So, is there some way to render a form as just text?
>
> >> Carl K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
(Continue reading)

mickey ristroph | 1 Feb 03:54 2008
Picon

Re: can't view my app in the admin page


Did it actually add tables for that app when you synced the db? Did
you add the app to your INSTALLED_APPS?

On Jan 31, 8:44 pm, aym35 <amirz... <at> gmail.com> wrote:
> hey Guys,
>
> * warning: this is a beginner question!
>
> I created a django project and a simple app... I added a simple class
> in models.py (I put in an inner Admin class), synced the db,  and
> visited the admin page...
>
> however, I cannot see a field on the admin page related to my new
> class... only the three default links are on this page...i.e. sites,
> users,groups...
>
> I really don't understand what is going wrong... what do you guys
> suggest in terms of debugging (I get no errors by the way)
>
> Aydin.
--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane