Getting Started

2012-09-24 Thread Greg Lindstrom
Hello,
 
I am having trouble getting started using Django 1.4.1 on my Windows 7 
machine.  Everything appears to be installed (I'm running Python 2.7 and 
have been programming in Python for over 10 years; I figure it's time to 
see what all the fuss is over "the web" :-).
 
Reading through the tutorial on the Django page (the "polls" project), I 
start a new project using "django-admin.py startproject mysite".  It 
creates a new directory -- as promised -- but I'm in trouble, already!  My 
directory structure does not match the tutorial.  I expect:
 
mysite/manage.py
mysite/mysite/__init__.py
mysite/mysite/manage.py
mysite/mysite/settings.py
mysite/mysite/urls.py
mysite/mysite/wgsi.py
 
and I get all of those.  But, I also get
 
mysite/__init__.py
mysite/setings.py
mysite/urls.py
 
giving me __init__.py, settings.py, and urls.py in both the "outter" and 
"inner" directories.  I'm I in the wrong tutorial?  The initital web server 
runs and I can edi the models.py file, but when I attempt the "python 
manage.py sql polls" command the settings file die snot know about "polls" 
(I added it to the applications).
 
I'm eager to learn Django; can someone please give me a kick in the proper 
direction?
 
--greg

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/fkNOGLcwvpQJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Just getting started

2008-05-29 Thread jfinke

Hi everyone,

I am just getting started in Django.  I have run through most of the
tutorial at this point.  I played some with TG back when it was
getting started, so I am familiar with MVC.  I just got irritated that
they were constantly changing stuff.

I have a project in mind and I was wondering if I could get some
people's input on whether it would work or not.  It may be more of a
db question than django.

I work in let's say the auditing world.  Right now a lot of the work
is done manually with word documents and excel spreadsheets.  This
type of works lends itself to a db based application very well because
it is structured and repeatable.  Plus, it will allow me to normalize
my data (the holy grail).

Here is my architectural issue.  I would like to keep a centralize
system.  All the data is stored on a server back at HQ.  However, alot
of the work is done in the field on notebooks.  These notebooks more
than likely do not have access to the server back in HQ.  So, they
would need to run a version of the application locally.  This could be
done through the test webserver and sqlite or if need be apache +
postgresql/mysql/whatever.

The problem then becomes is there any easy to sync the notebook
information back with HQ when the notebooks come home or VPN in or
whatever?  Do I need to write a program to export it out and then
import it back in?  Or are there already existing features that handle
something like disconnected clients?

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



Problems getting started

2012-03-07 Thread Clark
After installing Django I am attempting to start a new project.  After
creating a directory for this, I tried using the command: "django-
admin.py startproject mysite".

but I'm getting the message "-bash: django-admin.py: command not found
".

So, I've tried running this:

"sudo ln -s library/python/2.6/site-packages/django/bin/django-
admin.py /usr/local/bin/django-admin.py" in which i get "file exists"
and I still get the same problem when running the startproject.

Only other piece of info is that during installation I had a "error: /
usr/local/bin/django-admin.py: No such file or directory".  But I can
cd into that directory and see the django-admin.py 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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Getting Started-Introduction

2012-05-22 Thread vishrut mehta
Hello Django users and Developers,
I am Vishrut Mehta,studing Computer
Sci  and Eng. BTech 2nd year.I was just getting started with contributing
to Open Source Community.So wanted to start from the thing i love like
developing softwares,apps,website,etc.I dont have any previous experience
working in any open source org,this would be the first time,so i want you
to help me move ahead.
I am very enthusiatic with the things that interest me,love to write codes
in python.
I am looking forward for a good response so you all can guide me ahead.
Please give suggestions from where i could start working from??
Thank you!!

Regards,
Vishrut

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



Re: Getting Started

2012-09-24 Thread Jani Tiainen
It looks like you have older version of Django installed somewhere.

You definitely should go for virtualenv it saves lot of troubles in the
long run.

On Mon, Sep 24, 2012 at 7:07 PM, Greg Lindstrom wrote:

> Hello,
>
> I am having trouble getting started using Django 1.4.1 on my Windows 7
> machine.  Everything appears to be installed (I'm running Python 2.7 and
> have been programming in Python for over 10 years; I figure it's time to
> see what all the fuss is over "the web" :-).
>
> Reading through the tutorial on the Django page (the "polls" project), I
> start a new project using "django-admin.py startproject mysite".  It
> creates a new directory -- as promised -- but I'm in trouble, already!  My
> directory structure does not match the tutorial.  I expect:
>
> mysite/manage.py
> mysite/mysite/__init__.py
> mysite/mysite/manage.py
> mysite/mysite/settings.py
> mysite/mysite/urls.py
> mysite/mysite/wgsi.py
>
> and I get all of those.  But, I also get
>
> mysite/__init__.py
> mysite/setings.py
> mysite/urls.py
>
> giving me __init__.py, settings.py, and urls.py in both the "outter" and
> "inner" directories.  I'm I in the wrong tutorial?  The initital web server
> runs and I can edi the models.py file, but when I attempt the "python
> manage.py sql polls" command the settings file die snot know about "polls"
> (I added it to the applications).
>
> I'm eager to learn Django; can someone please give me a kick in the proper
> direction?
>
> --greg
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/fkNOGLcwvpQJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

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



Re: Getting Started

2012-09-25 Thread Laxmikant Gurnalkar
Hi,
Extending to  Jani Tiainen--

 Or you have not properly installed Django, It looks like manage.py is
missing. In any of the version manage.py comes by default.
Use 7-zip   to unzip the django tarballs on windows machine.

regards,
Laxmikant



On Mon, Sep 24, 2012 at 9:37 PM, Greg Lindstrom wrote:

> Hello,
>
> I am having trouble getting started using Django 1.4.1 on my Windows 7
> machine.  Everything appears to be installed (I'm running Python 2.7 and
> have been programming in Python for over 10 years; I figure it's time to
> see what all the fuss is over "the web" :-).
>
> Reading through the tutorial on the Django page (the "polls" project), I
> start a new project using "django-admin.py startproject mysite".  It
> creates a new directory -- as promised -- but I'm in trouble, already!  My
> directory structure does not match the tutorial.  I expect:
>
> mysite/manage.py
> mysite/mysite/__init__.py
> mysite/mysite/manage.py
> mysite/mysite/settings.py
> mysite/mysite/urls.py
> mysite/mysite/wgsi.py
>
> and I get all of those.  But, I also get
>
> mysite/__init__.py
> mysite/setings.py
> mysite/urls.py
>
> giving me __init__.py, settings.py, and urls.py in both the "outter" and
> "inner" directories.  I'm I in the wrong tutorial?  The initital web server
> runs and I can edi the models.py file, but when I attempt the "python
> manage.py sql polls" command the settings file die snot know about "polls"
> (I added it to the applications).
>
> I'm eager to learn Django; can someone please give me a kick in the proper
> direction?
>
> --greg
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/fkNOGLcwvpQJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

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



getting started...with django

2009-03-04 Thread mseg...@gmail.com

hi  there !  am new in django and i  need help on getting started...
if you are the guy please email me

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



Getting started with django

2009-06-29 Thread atik

I have some basic of python(functional part and also very basic of oop
part), but don't have other knowledge. I would like to start with
django. So, what more is required to getting started with django so
that i can grasp all the concept and can be proficient with django.
Also is there any way to develop my skills?
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Getting Started, tutorial newbie

2009-08-06 Thread zignorp

Hello,
I'm going through the tutorial when I have time.  A few weeks back, I
created the polls app, was able to retrieve data and use the admin
interface and everything was beautiful.  Now I'm trying to catch up
where I left off and am having problems.  When I do the runserver
command, it tells me that the dev server is running, but I get a 404
if I click on the link.  And while I have the polls app installed, I
can't retrieve any information. I think I need some more basic info on
moving from unix to the python shell (and back). when I type python
manage.py shell, I don't get the >>> prompt.
I'm wondering if I can make some kind of startup file for myself, so I
can execute the basic commands I need to get started and set up.  Do
others do this?
Thanks for any help, I am only able to focus on this periodically.
Z
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Just getting started

2008-05-29 Thread Eric Wertman

This is an interesting and I think pretty common problem.  There are a
lot of potential solutions, depending.  Personally, I would design the
field app separately, and define a strict export format for it.  This
way, you can feed it back in later when you can in just about any way
you choose (via the application itself, or through a queue, or
whatever), and later if you want to change the field app, you don't
have to touch your data store.

So I think my answer is yes, you are probably going to want to write
an import/export program separately.  This will also allow you to pick
and choose what information can go into the field, versus what
information stays at home base, which may or may not be handy from a
security standpoint, depending on your data.

> Here is my architectural issue.  I would like to keep a centralize
> system.  All the data is stored on a server back at HQ.  However, alot
> of the work is done in the field on notebooks.  These notebooks more
> than likely do not have access to the server back in HQ.  So, they
> would need to run a version of the application locally.  This could be
> done through the test webserver and sqlite or if need be apache +
> postgresql/mysql/whatever.
>
> The problem then becomes is there any easy to sync the notebook
> information back with HQ when the notebooks come home or VPN in or
> whatever?  Do I need to write a program to export it out and then
> import it back in?  Or are there already existing features that handle
> something like disconnected clients?

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



Re: Just getting started

2008-05-29 Thread Richard Dahl
I have been working on an app that enables the completion of IT security
assessments.  A version of it that I used 2 years ago did allow remote
completion of the assessments and I faced this same problem.  I was not
comfortable using the django development server locally (primarily because
of the stern warnings in the documentation not to use it in a production
setting) but it may work fine in your situation. The way I tackled it was
to create an export of the questions from the DB into CSV format and then
created an excel spreadsheet with a macro that "prettified' it. I am not
saying this is the best way to do this, I have since decided that I
will simply not allow 'offline' assessments (something I have the privelage
of), but it may be one way to quickly solve this problem.  The biggest
downside is the lack of data entry validation and control of the format, you
have to trust your remote users very much.  The one advantage was that it
was easy and quick, and allowed me to focus on the server-side reporting
mechanisms, which were ultimately far more important to my users.

I did spend a bit of time thinking about how to accomplish this with a
'local' version of the app, and I would agree with Eric's comments.
Recently the idea of using Google Gears has piqued my interest, but I have
not adequatley researched it to recommend its viability.  The biggest
downside is of course, you're not using django on the local app then.
-richard



On 5/29/08, Eric Wertman <[EMAIL PROTECTED]> wrote:
>
>
> This is an interesting and I think pretty common problem.  There are a
> lot of potential solutions, depending.  Personally, I would design the
> field app separately, and define a strict export format for it.  This
> way, you can feed it back in later when you can in just about any way
> you choose (via the application itself, or through a queue, or
> whatever), and later if you want to change the field app, you don't
> have to touch your data store.
>
> So I think my answer is yes, you are probably going to want to write
> an import/export program separately.  This will also allow you to pick
> and choose what information can go into the field, versus what
> information stays at home base, which may or may not be handy from a
> security standpoint, depending on your data.
>
> > Here is my architectural issue.  I would like to keep a centralize
> > system.  All the data is stored on a server back at HQ.  However, alot
> > of the work is done in the field on notebooks.  These notebooks more
> > than likely do not have access to the server back in HQ.  So, they
> > would need to run a version of the application locally.  This could be
> > done through the test webserver and sqlite or if need be apache +
> > postgresql/mysql/whatever.
> >
> > The problem then becomes is there any easy to sync the notebook
> > information back with HQ when the notebooks come home or VPN in or
> > whatever?  Do I need to write a program to export it out and then
> > import it back in?  Or are there already existing features that handle
> > something like disconnected clients?
>
> >
>

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



Re: Just getting started

2008-05-29 Thread jfinke

Interesting ideas guys.  Thanks for the insight!  The google gears
idea sounds interesting... But, like you said, you are pretty much
dropping django.  I don't know how big of a deal that is?  What type
of customization on the back end needs to take place to take the
advantage of GG.

Richard, this is essentially to do Certification & Accreditation for
government agencies (for now).  So information security documentation,
assessments, and testing.  Unfortunately, I do not have the luxery of
not allowing offline work.  I have been to multiple places where I had
zero network access.

So, we are talking a couple hundred different security controls in 17
different control families.  Plus, when you add the testing, you can
get to 1200 different tests.  And that is just for one "system".

Right now the process really breaks when someone decides we need to
change something somewhere and I have to ensure that the change is
reflected in 3-4 documents.  Even worse, is when it is a common
control between multiple systems (say a bunch of systems that sit in
one datacenter).  If I say, wait they upgraded the UPSs in the dc last
month.  Now, all documentation needs to refect that change.  It is a
huge PITA.  I could literally have to paste in a paragraph into 20
different documents which may have different formatting needs, tables,
fonts, etc.

So, right now I am thinking about just the documentation.  But,
assessment grows naturally out of that.  Then testing can grow out of
that as well.

Thanks again for the help!
I just need to start small for now.  I have a CS degree, but I have
never really been a professional programmer.  So, a lot of it is just
getting back into the swing of things.

On May 29, 10:15 am, "Richard Dahl" <[EMAIL PROTECTED]> wrote:
> I have been working on an app that enables the completion of IT security
> assessments.  A version of it that I used 2 years ago did allow remote
> completion of the assessments and I faced this same problem.  I was not
> comfortable using the django development server locally (primarily because
> of the stern warnings in the documentation not to use it in a production
> setting) but it may work fine in your situation. The way I tackled it was
> to create an export of the questions from the DB into CSV format and then
> created an excel spreadsheet with a macro that "prettified' it. I am not
> saying this is the best way to do this, I have since decided that I
> will simply not allow 'offline' assessments (something I have the privelage
> of), but it may be one way to quickly solve this problem.  The biggest
> downside is the lack of data entry validation and control of the format, you
> have to trust your remote users very much.  The one advantage was that it
> was easy and quick, and allowed me to focus on the server-side reporting
> mechanisms, which were ultimately far more important to my users.
>
> I did spend a bit of time thinking about how to accomplish this with a
> 'local' version of the app, and I would agree with Eric's comments.
> Recently the idea of using Google Gears has piqued my interest, but I have
> not adequatley researched it to recommend its viability.  The biggest
> downside is of course, you're not using django on the local app then.
> -richard
>
> On 5/29/08, Eric Wertman <[EMAIL PROTECTED]> wrote:
>
>
>
> > This is an interesting and I think pretty common problem.  There are a
> > lot of potential solutions, depending.  Personally, I would design the
> > field app separately, and define a strict export format for it.  This
> > way, you can feed it back in later when you can in just about any way
> > you choose (via the application itself, or through a queue, or
> > whatever), and later if you want to change the field app, you don't
> > have to touch your data store.
>
> > So I think my answer is yes, you are probably going to want to write
> > an import/export program separately.  This will also allow you to pick
> > and choose what information can go into the field, versus what
> > information stays at home base, which may or may not be handy from a
> > security standpoint, depending on your data.
>
> > > Here is my architectural issue.  I would like to keep a centralize
> > > system.  All the data is stored on a server back at HQ.  However, alot
> > > of the work is done in the field on notebooks.  These notebooks more
> > > than likely do not have access to the server back in HQ.  So, they
> > > would need to run a version of the application locally.  This could be
> > > done through the test webserver and sqlite or if need be apache +
> > > postgresql/mysql/whatever.
>
> > > The problem then becomes is there any easy to sync the notebook
> > > information back with HQ when the notebooks come home or VPN in or
> > > whatever?  Do I need to write a program to export it out and then
> > > import it back in?  Or are there already existing features that handle
> > > something like disconnected clients?
--~--~-~--~~~--

Re: Just getting started

2008-05-31 Thread Russell Keith-Magee

On Thu, May 29, 2008 at 10:14 PM, jfinke <[EMAIL PROTECTED]> wrote:
>
> The problem then becomes is there any easy to sync the notebook
> information back with HQ when the notebooks come home or VPN in or
> whatever?  Do I need to write a program to export it out and then
> import it back in?  Or are there already existing features that handle
> something like disconnected clients?

To the best of my knowledge, there isn't an 'out of the box' solution
for this. However, it can be done - I've been involved in the
development of an implementation of a system that is almost identical
to the one you describe.

In the implementation I was working on, the architecture went
something like this:

 * There was a single set of models; the main server ran Postgres, and
kept the canonical copy. The clients (tablet PCs and handhelds) ran
SQLite versions in their own local server.

 * On first connection, the client would poll an 'export' URL on the
server that would pull down, in XML format, a dump of the relevant
table content from the server which would be loaded into the client's
local SQlite database. The server keeps track of which rows of data
(specifically, which primary keys - more on this later) have been sent
to the client.

 * The client would then operate as a normal Django application, using
the local SQLite database. Users use a web application running against
a local server; there is no need for a connection between the main
server and the client machine.

 * When the client reconnected to the network, it would POST a
serialized version of the local data back to the server via an
'import' URL.

 * The real magic came on the server side. Since there can be multiple
clients connecting to the server, each client could be producing
database entries with conflicting primary keys. As a result, the
server can't just accept the POSTed data as-is - it needs to maintain
an internal accounting table that correlates the primary key on the
client (as provided in the data upload) with the primary key that
exists locally on the server. If a new record is found in the POSTed
data, a new record is created on the server, and the accounting table
stores a record that correlates the server's canonical primary key
with the primary key received from the client.

Essentially, the server maintains a complete picture of all data from
all clients, plus a picture of the primary keys that are available on
each individual client. Whenever the server sends data is sent to the
client, the primary keys are normalized to match the expectations of
the client, and whenever data is received from the client, the primary
keys are normalized  back into the canonical server representation.

Based on my experiences, I suspect that it is something that could be
turned into a generic tool/utility which would make a useful
contribution to the community. Unfortunately, the implementation that
I worked on probably won't ever see the outside world as a generic
tool (due to a combination of factors, including the customer
involved, and the fact that I no longer work at the company that
developed the product).

Yours,
Russ Magee %-)

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



Re: Just getting started

2008-06-02 Thread jfinke

Thanks for the insight Russ.  I appreciate it.

On May 31, 3:09 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On Thu, May 29, 2008 at 10:14 PM, jfinke <[EMAIL PROTECTED]> wrote:
>
> > The problem then becomes is there any easy to sync the notebook
> > information back with HQ when the notebooks come home or VPN in or
> > whatever?  Do I need to write a program to export it out and then
> > import it back in?  Or are there already existing features that handle
> > something like disconnected clients?
>
> To the best of my knowledge, there isn't an 'out of the box' solution
> for this. However, it can be done - I've been involved in the
> development of an implementation of a system that is almost identical
> to the one you describe.
>
> In the implementation I was working on, the architecture went
> something like this:
>
>  * There was a single set of models; the main server ran Postgres, and
> kept the canonical copy. The clients (tablet PCs and handhelds) ran
> SQLite versions in their own local server.
>
>  * On first connection, the client would poll an 'export' URL on the
> server that would pull down, in XML format, a dump of the relevant
> table content from the server which would be loaded into the client's
> local SQlite database. The server keeps track of which rows of data
> (specifically, which primary keys - more on this later) have been sent
> to the client.
>
>  * The client would then operate as a normal Django application, using
> the local SQLite database. Users use a web application running against
> a local server; there is no need for a connection between the main
> server and the client machine.
>
>  * When the client reconnected to the network, it would POST a
> serialized version of the local data back to the server via an
> 'import' URL.
>
>  * The real magic came on the server side. Since there can be multiple
> clients connecting to the server, each client could be producing
> database entries with conflicting primary keys. As a result, the
> server can't just accept the POSTed data as-is - it needs to maintain
> an internal accounting table that correlates the primary key on the
> client (as provided in the data upload) with the primary key that
> exists locally on the server. If a new record is found in the POSTed
> data, a new record is created on the server, and the accounting table
> stores a record that correlates the server's canonical primary key
> with the primary key received from the client.
>
> Essentially, the server maintains a complete picture of all data from
> all clients, plus a picture of the primary keys that are available on
> each individual client. Whenever the server sends data is sent to the
> client, the primary keys are normalized to match the expectations of
> the client, and whenever data is received from the client, the primary
> keys are normalized  back into the canonical server representation.
>
> Based on my experiences, I suspect that it is something that could be
> turned into a generic tool/utility which would make a useful
> contribution to the community. Unfortunately, the implementation that
> I worked on probably won't ever see the outside world as a generic
> tool (due to a combination of factors, including the customer
> involved, and the fact that I no longer work at the company that
> developed the product).
>
> Yours,
> Russ Magee %-)
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Getting started on mac

2009-06-03 Thread zignorp

Hello,
I've just installed the development version in leopard on the mac, and
when I did this step:

"On Unix-like systems, create a symbolic link to the file django-trunk/
django/bin/django-admin.py in a directory on your system path, such
as /usr/local/bin. For example:

ln -s `pwd`/django-trunk/django/bin/django-admin.py /usr/local/bin

This simply lets you type django-admin.py from within any directory,
rather than having to qualify the command with the full path to the
file."

It looks like now local/bin is just a shortcut to django-admin.py, not
a directory.

So when I try to run django-admin.py startproject from elsewhere, it
doesn't understand.

Obviously I haven't been using my unix commands recently.   I think I
need to remove the alias file and create bin as a directory, then run
that above command again, but I'm not sure if that's correct, or the
best way to do that.  Any help would be greatly appreciated.
Thanks,
Wendy

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



Re: Problems getting started

2012-03-07 Thread Sandro Dutra
I don't know how it's works on a Linux box, but on Windows we've to put
Python/Scripts on PATH variable to use the command directly.


2012/3/7 Clark 

> After installing Django I am attempting to start a new project.  After
> creating a directory for this, I tried using the command: "django-
> admin.py startproject mysite".
>
> but I'm getting the message "-bash: django-admin.py: command not found
> ".
>
> So, I've tried running this:
>
> "sudo ln -s library/python/2.6/site-packages/django/bin/django-
> admin.py /usr/local/bin/django-admin.py" in which i get "file exists"
> and I still get the same problem when running the startproject.
>
> Only other piece of info is that during installation I had a "error: /
> usr/local/bin/django-admin.py: No such file or directory".  But I can
> cd into that directory and see the django-admin.py 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-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

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



Re: Problems getting started

2012-03-07 Thread Andre Terra
On Wed, Mar 7, 2012 at 2:53 PM, Sandro Dutra  wrote:

> I don't know how it's works on a Linux box, but on Windows we've to put
> Python/Scripts on PATH variable to use the command directly.



Or you can use virtualenv like I mentioned in the other thread.


Cheers,
AT

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



Re: Problems getting started

2012-03-07 Thread backdoc
I think you might need to install as root or sudo.

>From memory.

sudo python setup.py install

Also, try executing "which django-admin.py" at the terminal.  That
will tell you the location of the executable.  Basically, I'm curious
if it will even find it, as I'm thinking it didn't install at all.  I
just installed the 1.4 rc last night on Debian.  I didn't have any
issues.

On Mar 7, 8:36 am, Clark  wrote:
> After installing Django I am attempting to start a new project.  After
> creating a directory for this, I tried using the command: "django-
> admin.py startproject mysite".
>
> but I'm getting the message "-bash: django-admin.py: command not found
> ".
>
> So, I've tried running this:
>
> "sudo ln -s library/python/2.6/site-packages/django/bin/django-
> admin.py /usr/local/bin/django-admin.py" in which i get "file exists"
> and I still get the same problem when running the startproject.
>
> Only other piece of info is that during installation I had a "error: /
> usr/local/bin/django-admin.py: No such file or directory".  But I can
> cd into that directory and see the django-admin.py 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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Problems getting started

2012-03-07 Thread Andre Terra
Again, don't install as root, use virtualenv. This will save you headaches
in the future, and unless you have an inexcusable reason to have Django run
as root, you shouldn't.


Sincerely,
AT

On Wed, Mar 7, 2012 at 6:28 PM, backdoc  wrote:

> I think you might need to install as root or sudo.
>
> From memory.
>
> sudo python setup.py install
>
> Also, try executing "which django-admin.py" at the terminal.  That
> will tell you the location of the executable.  Basically, I'm curious
> if it will even find it, as I'm thinking it didn't install at all.  I
> just installed the 1.4 rc last night on Debian.  I didn't have any
> issues.
>
> On Mar 7, 8:36 am, Clark  wrote:
> > After installing Django I am attempting to start a new project.  After
> > creating a directory for this, I tried using the command: "django-
> > admin.py startproject mysite".
> >
> > but I'm getting the message "-bash: django-admin.py: command not found
> > ".
> >
> > So, I've tried running this:
> >
> > "sudo ln -s library/python/2.6/site-packages/django/bin/django-
> > admin.py /usr/local/bin/django-admin.py" in which i get "file exists"
> > and I still get the same problem when running the startproject.
> >
> > Only other piece of info is that during installation I had a "error: /
> > usr/local/bin/django-admin.py: No such file or directory".  But I can
> > cd into that directory and see the django-admin.py 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-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

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



Re: Problems getting started

2012-03-07 Thread Shawn Milochik

On 03/07/2012 05:21 PM, Andre Terra wrote:

Again, don't install as root, use virtualenv. This will save you
headaches in the future, and unless you have an inexcusable reason to
have Django run as root, you shouldn't.


Sincerely,
AT


+1. Also, there is no excusable reason to need to do it as root, and 
many good reasons not to.



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



Re: Problems getting started

2012-03-07 Thread backdoc
I've never set up virtualenv, so I can't speak to that.  But, how is
installing Django the same way that I install any other application
more of a risk?  If an installer tries to write to /usr/local/bin/,
then it needs elevated permissions to do so.  I would assume from that
point on, the remainder of the time, the program runs within the
context of the user who executed it, just like any other shell
commands like tar, ls, mv, rm, python, and so on.

While the web server is running, wouldn't it execute any Django
commands within the context of the web user, like www-data?  When I
installed WSGI, I used Synaptic.  To use Synaptic, if you start it as
a regular user, you have to give root password.  How would is that
different?

You may have very good answers.  I'm not saying I'm right and you're
wrong.  But, I don't see the problem.

On Mar 7, 4:21 pm, Andre Terra  wrote:
> Again, don't install as root, use virtualenv. This will save you headaches
> in the future, and unless you have an inexcusable reason to have Django run
> as root, you shouldn't.
>
> Sincerely,
> AT
>
>
>
>
>
>
>
> On Wed, Mar 7, 2012 at 6:28 PM, backdoc  wrote:
> > I think you might need to install as root or sudo.
>
> > From memory.
>
> > sudo python setup.py install
>
> > Also, try executing "which django-admin.py" at the terminal.  That
> > will tell you the location of the executable.  Basically, I'm curious
> > if it will even find it, as I'm thinking it didn't install at all.  I
> > just installed the 1.4 rc last night on Debian.  I didn't have any
> > issues.
>
> > On Mar 7, 8:36 am, Clark  wrote:
> > > After installing Django I am attempting to start a new project.  After
> > > creating a directory for this, I tried using the command: "django-
> > > admin.py startproject mysite".
>
> > > but I'm getting the message "-bash: django-admin.py: command not found
> > > ".
>
> > > So, I've tried running this:
>
> > > "sudo ln -s library/python/2.6/site-packages/django/bin/django-
> > > admin.py /usr/local/bin/django-admin.py" in which i get "file exists"
> > > and I still get the same problem when running the startproject.
>
> > > Only other piece of info is that during installation I had a "error: /
> > > usr/local/bin/django-admin.py: No such file or directory".  But I can
> > > cd into that directory and see the django-admin.py 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-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

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



Re: Problems getting started

2012-03-07 Thread Andres Reyes
For me, the main reason to use virtualenv has nothing to do with
security or anything like that, is the convenience of having different
projects with different sets of requirements not interfering with each
other

2012/3/7 backdoc :
> I've never set up virtualenv, so I can't speak to that.  But, how is
> installing Django the same way that I install any other application
> more of a risk?  If an installer tries to write to /usr/local/bin/,
> then it needs elevated permissions to do so.  I would assume from that
> point on, the remainder of the time, the program runs within the
> context of the user who executed it, just like any other shell
> commands like tar, ls, mv, rm, python, and so on.
>
> While the web server is running, wouldn't it execute any Django
> commands within the context of the web user, like www-data?  When I
> installed WSGI, I used Synaptic.  To use Synaptic, if you start it as
> a regular user, you have to give root password.  How would is that
> different?
>
> You may have very good answers.  I'm not saying I'm right and you're
> wrong.  But, I don't see the problem.
>
> On Mar 7, 4:21 pm, Andre Terra  wrote:
>> Again, don't install as root, use virtualenv. This will save you headaches
>> in the future, and unless you have an inexcusable reason to have Django run
>> as root, you shouldn't.
>>
>> Sincerely,
>> AT
>>
>>
>>
>>
>>
>>
>>
>> On Wed, Mar 7, 2012 at 6:28 PM, backdoc  wrote:
>> > I think you might need to install as root or sudo.
>>
>> > From memory.
>>
>> > sudo python setup.py install
>>
>> > Also, try executing "which django-admin.py" at the terminal.  That
>> > will tell you the location of the executable.  Basically, I'm curious
>> > if it will even find it, as I'm thinking it didn't install at all.  I
>> > just installed the 1.4 rc last night on Debian.  I didn't have any
>> > issues.
>>
>> > On Mar 7, 8:36 am, Clark  wrote:
>> > > After installing Django I am attempting to start a new project.  After
>> > > creating a directory for this, I tried using the command: "django-
>> > > admin.py startproject mysite".
>>
>> > > but I'm getting the message "-bash: django-admin.py: command not found
>> > > ".
>>
>> > > So, I've tried running this:
>>
>> > > "sudo ln -s library/python/2.6/site-packages/django/bin/django-
>> > > admin.py /usr/local/bin/django-admin.py" in which i get "file exists"
>> > > and I still get the same problem when running the startproject.
>>
>> > > Only other piece of info is that during installation I had a "error: /
>> > > usr/local/bin/django-admin.py: No such file or directory".  But I can
>> > > cd into that directory and see the django-admin.py 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-users@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > django-users+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> >http://groups.google.com/group/django-users?hl=en.
>
> --
> 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@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Andrés Reyes Monge
armo...@gmail.com
+(505)-8873-7217

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



Re: Problems getting started

2012-03-07 Thread Shawn Milochik

On 03/07/2012 08:58 PM, Andres Reyes wrote:

For me, the main reason to use virtualenv has nothing to do with
security or anything like that, is the convenience of having different
projects with different sets of requirements not interfering with each
other




It's really all about convenience. Not only is it easier to install (no 
root privileges needed), it's easier to deploy on more hosts (where you 
don't have many privileges), and on your development machine you're free 
to have many different stacks without interference.



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



Re: Problems getting started

2012-03-08 Thread Diego Schulz
On Wed, Mar 7, 2012 at 11:36 AM, Clark  wrote:
> After installing Django I am attempting to start a new project.  After
> creating a directory for this, I tried using the command: "django-
> admin.py startproject mysite".
>
> but I'm getting the message "-bash: django-admin.py: command not found
> ".
>
> So, I've tried running this:
>
> "sudo ln -s library/python/2.6/site-packages/django/bin/django-
   
> admin.py /usr/local/bin/django-admin.py" in which i get "file exists"
> and I still get the same problem when running the startproject.
>

You should use the absolute (full) path to django-admin.py, not a relative path.

> Only other piece of info is that during installation I had a "error: /
> usr/local/bin/django-admin.py: No such file or directory".  But I can
> cd into that directory and see the django-admin.py 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-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>

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



Re: Getting Started-Introduction

2012-05-22 Thread kenneth gonsalves
On Tue, 2012-05-22 at 14:35 +0500, vishrut mehta wrote:
> I am Vishrut Mehta,studing Computer
> Sci  and Eng. BTech 2nd year.I was just getting started with
> contributing
> to Open Source Community.So wanted to start from the thing i love like
> developing softwares,apps,website,etc.I dont have any previous
> experience
> working in any open source org,this would be the first time,so i want
> you
> to help me move ahead.
> I am very enthusiatic with the things that interest me,love to write
> codes
> in python.
> I am looking forward for a good response so you all can guide me
> ahead.
> Please give suggestions from where i could start working from?? 

this might be of interest:

https://code.djangoproject.com/query?status=!closed&easy=1
-- 
regards
Kenneth Gonsalves

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



Re: Getting Started-Introduction

2012-05-22 Thread vishrut mehta
Thank you a lo..! But i tld u im a bit new to all this...Can u
please explain how to solve bugs and submit the patches,means the procedure
??I am just new to this...

On Tue, May 22, 2012 at 3:54 PM, kenneth gonsalves
wrote:

> On Tue, 2012-05-22 at 14:35 +0500, vishrut mehta wrote:
> > I am Vishrut Mehta,studing Computer
> > Sci  and Eng. BTech 2nd year.I was just getting started with
> > contributing
> > to Open Source Community.So wanted to start from the thing i love like
> > developing softwares,apps,website,etc.I dont have any previous
> > experience
> > working in any open source org,this would be the first time,so i want
> > you
> > to help me move ahead.
> > I am very enthusiatic with the things that interest me,love to write
> > codes
> > in python.
> > I am looking forward for a good response so you all can guide me
> > ahead.
> > Please give suggestions from where i could start working from??
>
> this might be of interest:
>
> https://code.djangoproject.com/query?status=!closed&easy=1
> --
> regards
> Kenneth Gonsalves
>
> --
> 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@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

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



Re: Getting Started-Introduction

2012-05-22 Thread Andre Terra
https://docs.djangoproject.com/en/dev/internals/contributing/

On Tue, May 22, 2012 at 11:17 AM, vishrut mehta
wrote:

> Thank you a lo..! But i tld u im a bit new to all this...Can u
> please explain how to solve bugs and submit the patches,means the procedure
> ??I am just new to this...
>
> On Tue, May 22, 2012 at 3:54 PM, kenneth gonsalves  > wrote:
>
>> ...
>>
>

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



getting started with django

2015-10-07 Thread Anagha R
How to get stated with django?How can we contribute to it?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/01860db5-b03e-4656-9b9d-b629dfb94004%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: getting started...with django

2009-03-04 Thread CLIFFORD ILKAY
mseg...@gmail.com wrote:
> hi  there !  am new in django and i  need help on getting started...
> if you are the guy please email me

Welcome! Start here:
<http://docs.djangoproject.com/en/dev/intro/tutorial01/>. Don't worry if
it doesn't all make sense at first. Just follow the steps exactly and by
the end of the tutorial, the pieces will fall into place.
-- 
Regards,

Clifford Ilkay
Dinamis
1419-3266 Yonge St.
Toronto, ON
Canada  M4N 3P6

<http://dinamis.com>
+1 416-410-3326


smime.p7s
Description: S/MIME Cryptographic Signature


Re: getting started...with django

2009-03-04 Thread Paul Nema
After the tutorial and reading the docs, if you're the visual type, try
these screencasts.  Very helpful and illuminating.

http://thisweekindjango.com/screencasts/?page=3
and
http://showmedo.com/videos/django


On Wed, Mar 4, 2009 at 11:58 AM, CLIFFORD ILKAY
wrote:

> mseg...@gmail.com wrote:
> > hi  there !  am new in django and i  need help on getting started...
> > if you are the guy please email me
>
> Welcome! Start here:
> <http://docs.djangoproject.com/en/dev/intro/tutorial01/>. Don't worry if
> it doesn't all make sense at first. Just follow the steps exactly and by
> the end of the tutorial, the pieces will fall into place.
> --
> Regards,
>
> Clifford Ilkay
> Dinamis
> 1419-3266 Yonge St.
> Toronto, ON
> Canada  M4N 3P6
>
> <http://dinamis.com>
> +1 416-410-3326
>

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



Re: Getting started with django

2009-06-29 Thread Rajesh Dhawan

> I have some basic of python(functional part and also very basic of oop
> part), but don't have other knowledge. I would like to start with
> django. So, what more is required to getting started with django so
> that i can grasp all the concept and can be proficient with django.
> Also is there any way to develop my skills?

Start with the "First Steps" section documented here:
http://docs.djangoproject.com/en/dev/

-RD

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



Re: Getting started with django

2009-06-29 Thread mugisha moses

1.visit www.djangoproject.com . they have the best documentation
2. try experimenting with stuff. for example you can try developing a
website using django.
3. you can search code.google.com or sourceforge.net for some django
projects and look at the
source code.
cheers

On Mon, Jun 29, 2009 at 7:09 PM, Rajesh Dhawan wrote:
>
>> I have some basic of python(functional part and also very basic of oop
>> part), but don't have other knowledge. I would like to start with
>> django. So, what more is required to getting started with django so
>> that i can grasp all the concept and can be proficient with django.
>> Also is there any way to develop my skills?
>
> Start with the "First Steps" section documented here:
> http://docs.djangoproject.com/en/dev/
>
> -RD
>
> >
>



-- 

Mugisha Moses
P.O. Box 1420 Kampala, Uganda
http://appfrica.org
skype name :  mossplix
twitter: @mugisha

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



Re: Getting Started, tutorial newbie

2009-08-06 Thread zignorp

figured it out, but I'm not sure I can articulate what I did.  I had
to start the shell first, then import my model.

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



Re: Getting started on mac

2009-06-03 Thread zignorp

I just fixed this and it's working swimmingly.  It seems that 10.5
doesn't come with that directory, so I just did what I said I would in
the last paragraph, and I have my first page.  I'm very excited.  Now
I have to decide whether to go through the pain of getting mysql
working right with django, or just trying my first project using sql
light.  I am using mysql in a MAMP install already.  Any thoughts on
this would be appreciated.
Thanks,
Wendy

On Jun 3, 2:35 pm, zignorp  wrote:
> Hello,
> I've just installed the development version in leopard on the mac, and
> when I did this step:
>
> "On Unix-like systems, create a symbolic link to the file django-trunk/
> django/bin/django-admin.py in a directory on your system path, such
> as /usr/local/bin. For example:
>
> ln -s `pwd`/django-trunk/django/bin/django-admin.py /usr/local/bin
>
> This simply lets you type django-admin.py from within any directory,
> rather than having to qualify the command with the full path to the
> file."
>
> It looks like now local/bin is just a shortcut to django-admin.py, not
> a directory.
>
> So when I try to run django-admin.py startproject from elsewhere, it
> doesn't understand.
>
> Obviously I haven't been using my unix commands recently.   I think I
> need to remove the alias file and create bin as a directory, then run
> that above command again, but I'm not sure if that's correct, or the
> best way to do that.  Any help would be greatly appreciated.
> Thanks,
> Wendy
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Getting started on mac

2009-06-03 Thread Alex Gaynor
On Wed, Jun 3, 2009 at 5:12 PM, zignorp  wrote:

>
> I just fixed this and it's working swimmingly.  It seems that 10.5
> doesn't come with that directory, so I just did what I said I would in
> the last paragraph, and I have my first page.  I'm very excited.  Now
> I have to decide whether to go through the pain of getting mysql
> working right with django, or just trying my first project using sql
> light.  I am using mysql in a MAMP install already.  Any thoughts on
> this would be appreciated.
> Thanks,
> Wendy
>
> On Jun 3, 2:35 pm, zignorp  wrote:
> > Hello,
> > I've just installed the development version in leopard on the mac, and
> > when I did this step:
> >
> > "On Unix-like systems, create a symbolic link to the file django-trunk/
> > django/bin/django-admin.py in a directory on your system path, such
> > as /usr/local/bin. For example:
> >
> > ln -s `pwd`/django-trunk/django/bin/django-admin.py /usr/local/bin
> >
> > This simply lets you type django-admin.py from within any directory,
> > rather than having to qualify the command with the full path to the
> > file."
> >
> > It looks like now local/bin is just a shortcut to django-admin.py, not
> > a directory.
> >
> > So when I try to run django-admin.py startproject from elsewhere, it
> > doesn't understand.
> >
> > Obviously I haven't been using my unix commands recently.   I think I
> > need to remove the alias file and create bin as a directory, then run
> > that above command again, but I'm not sure if that's correct, or the
> > best way to do that.  Any help would be greatly appreciated.
> > Thanks,
> > Wendy
> >
>
If you've already got MySQL running you can just use it, but with Django
it's often easier to get started with SQLite because there's no permissions
or database issues to deal with and it's very easy to switch to MySQL when
you want to test and deploy an application.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

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



Re: Getting started on mac

2009-06-03 Thread zignorp

Thanks Alex!  That's just what I wanted to know, could I switch
easily.  I would rather put off some of that configuration time!
W


On Jun 3, 3:14 pm, Alex Gaynor  wrote:
> On Wed, Jun 3, 2009 at 5:12 PM, zignorp  wrote:
>
> > I just fixed this and it's working swimmingly.  It seems that 10.5
> > doesn't come with that directory, so I just did what I said I would in
> > the last paragraph, and I have my first page.  I'm very excited.  Now
> > I have to decide whether to go through the pain of getting mysql
> > working right with django, or just trying my first project using sql
> > light.  I am using mysql in a MAMP install already.  Any thoughts on
> > this would be appreciated.
> > Thanks,
> > Wendy
>
> > On Jun 3, 2:35 pm, zignorp  wrote:
> > > Hello,
> > > I've just installed the development version in leopard on the mac, and
> > > when I did this step:
>
> > > "On Unix-like systems, create a symbolic link to the file django-trunk/
> > > django/bin/django-admin.py in a directory on your system path, such
> > > as /usr/local/bin. For example:
>
> > > ln -s `pwd`/django-trunk/django/bin/django-admin.py /usr/local/bin
>
> > > This simply lets you type django-admin.py from within any directory,
> > > rather than having to qualify the command with the full path to the
> > > file."
>
> > > It looks like now local/bin is just a shortcut to django-admin.py, not
> > > a directory.
>
> > > So when I try to run django-admin.py startproject from elsewhere, it
> > > doesn't understand.
>
> > > Obviously I haven't been using my unix commands recently.   I think I
> > > need to remove the alias file and create bin as a directory, then run
> > > that above command again, but I'm not sure if that's correct, or the
> > > best way to do that.  Any help would be greatly appreciated.
> > > Thanks,
> > > Wendy
>
> If you've already got MySQL running you can just use it, but with Django
> it's often easier to get started with SQLite because there's no permissions
> or database issues to deal with and it's very easy to switch to MySQL when
> you want to test and deploy an application.
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Getting started with generic relations

2010-12-05 Thread mack the finger
I can't quite wrap my brain around how to do generic relations. I have
a `Receipt` model which is a receipt of a purchase. One of the fields
is `item` which is a foreign key to a product model. I want to be able
to not only have products, but other things that the user can buy.

What do I need to do here to allow me to link to other types? Just
change the ForeignKey('Product') to generic.GenericForeignKey()? Is
that it?

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



GETTING STARTED: DJANGO AND NUODB

2013-07-17 Thread Michael Waclawiczek


Web development frameworks are the backbone of today’s scale-out database 
applications. They come in many different flavors, some are minimalistic 
providing more leeway with various components while others are more fully 
featured with a tightly integrated stack. At the end of the day, all these 
frameworks aim to do the same thing: make it easier and faster for 
developers to create web applications that solve problems.

The Python <http://www.python.org/> community has a variety of web 
frameworks, the clear front runner by far 
isDjango<https://www.djangoproject.com/>, 
a full featured framework designed to make it extremely simple to develop 
robust web applications. Django has a huge 
community<https://www.djangoproject.com/community/> with 
a number of useful 3rd party apps <https://www.djangopackages.com/>. I 
personally recommend the Django framework as a means to implement your next 
killer web app and the community for their responsiveness to any questions 
or issues that may arise.

To this end, we are proud to announce the release of the NuoDB extension 
for Django <https://github.com/nuodb/nuodb-django> to enable your web apps 
to leverage the power of NuoDB’s scale-out architecture with the ease of 
Django’s web application framework.

In this article we are going to talk more about Django and NuoDB while 
covering the following topics:

   1. Installation
   2. Django Sample Application
   3. Settings Configuration
   4. Admin Interface Configuration (optional)


You can read the full article here - 
http://www.nuodb.com/techblog/2013/07/15/getting-started-django-and-nuodb/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Getting started with django templatetags

2014-10-18 Thread Scipion
Hey,

I have started to use Django (1.6) few weeks ago and I have the following 
problem to resolve by using templatetags. (this is my very first 
templatetags draft, so I may be wrong in the way of designing it, do not 
hesitate to highlight anything weird).
In my template, I have a list of elements (defined in the context) : items 
(among 6 different django models).
According to which class an item belongs, I have to display an image or a 
title specific to this class (these informations can't be stored in the 
models). 
So basically, in my template I would like to have something like : 

{% for item in items %}
 {% show_title_tag item %} 
myPath/{% show_image_name_tag %}
{% endfor %}


I can't have more than that.

   
 @register.tag
def show_title_tag(parser,token):
tag_name, item = token.split_contents()
if isinstance(item,class1):
return MyNode(item.quote)
elif isinstance(item,class2):
return MyNode(item.subtitle)
elif isinstance(item,class3):
return MyNode(item.title)
...
# basically, the field to use change for each class
 
@register.tag
def show_image_name_tag(parser,token):
tag_name, item = token.split_contents()
if isinstance(item,class1):
return MyNode("specific image name linked to class 1")
elif isinstance(item,class2):
return MyNode("specific image name linked to class 2")
...
# the name change at each class, and is not stored in the object

 
class MyNode:
def __init__(self, image_or_title_string):
self.image_or_title_string = image_or_title_string
def render(self, context):
return image_or_title_string.resolve(context)





Two main questions :   

 1. I am duplicated the if-elif code. Any idea how I could do it without
duplicating it ? I could maybe only use one tag and add an extra
parameter (in the tag and in the render) to specify which
information I need (either the image or the title). Really not sure
about this ...

 
 2. Can I have access to the variable and not the string in the tag code
(after doing : tag_name, item = token.split_contents()). I imagine
that item will be a string and not my django object. How can I
resolve this ?

Also, here are the requirements I have to enforce : 

 - keep template very simple
 - use templatetags to solve it
 - can't modify models
 - check to which class an item belongs with a function as isinstance in
   the templatetags (not in the template)

 
Please, any suggestions are welcome here, as long as they respect the 
requirements. Also, remind that I am a django beginner, I am just trying to 
do it simple and readable, not highly effective.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7b4b4803-dd5b-44ce-a785-b9a0d5fe6abb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: getting started with django

2015-10-07 Thread Tim Graham
Getting Started with Django:
https://docs.djangoproject.com/en/stable/intro/

Contributing:
https://docs.djangoproject.com/en/dev/intro/contributing/
https://docs.djangoproject.com/en/dev/internals/contributing/

On Wednesday, October 7, 2015 at 8:12:11 AM UTC-4, Anagha R wrote:
>
> How to get stated with django?How can we contribute to it?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/497f8999-c8e6-428e-b1e6-bf12ce50025d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


App not Defined - Getting Started

2018-06-04 Thread Jaime Escobar
Hi, 
I am a completely beginner in django and also python programming. I am 
trying to follow the online documentation tutorial in which a poll website 
is created, but just running the server after created the polls it throws 
the error "name 'polls' is not defined".

Can you help me?


Unhandled exception in thread started by .wrapper at 0x7feeeb74ab70>
Traceback (most recent call last):
  File 
"/home/jaime/.local/lib/python3.6/site-packages/django/utils/autoreload.py", 
line 225, in wrapper
fn(*args, **kwargs)
  File 
"/home/jaime/.local/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
 
line 120, in inner_run
self.check(display_num_errors=True)
  File 
"/home/jaime/.local/lib/python3.6/site-packages/django/core/management/base.py",
 
line 364, in check
include_deployment_checks=include_deployment_checks,
  File 
"/home/jaime/.local/lib/python3.6/site-packages/django/core/management/base.py",
 
line 351, in _run_checks
return checks.run_checks(**kwargs)
  File 
"/home/jaime/.local/lib/python3.6/site-packages/django/core/checks/registry.py",
 
line 73, in run_checks
new_errors = check(app_configs=app_configs)
  File 
"/home/jaime/.local/lib/python3.6/site-packages/django/core/checks/urls.py", 
line 40, in check_url_namespaces_unique
all_namespaces = _load_all_namespaces(resolver)
  File 
"/home/jaime/.local/lib/python3.6/site-packages/django/core/checks/urls.py", 
line 57, in _load_all_namespaces
url_patterns = getattr(resolver, 'url_patterns', [])
  File 
"/home/jaime/.local/lib/python3.6/site-packages/django/utils/functional.py", 
line 36, in __get__
res = instance.__dict__[self.name] = self.func(instance)
  File 
"/home/jaime/.local/lib/python3.6/site-packages/django/urls/resolvers.py", 
line 540, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", 
self.urlconf_module)
  File 
"/home/jaime/.local/lib/python3.6/site-packages/django/utils/functional.py", 
line 36, in __get__
res = instance.__dict__[self.name] = self.func(instance)
  File 
"/home/jaime/.local/lib/python3.6/site-packages/django/urls/resolvers.py", 
line 533, in urlconf_module
return import_module(self.urlconf_name)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in 
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 955, in _find_and_load_unlocked
  File "", line 665, in _load_unlocked
  File "", line 678, in exec_module
  File "", line 219, in 
_call_with_frames_removed
  File "/home/jaime/Projects/Django/mysite/mysite/urls.py", line 20, in 

path('polls/',include(polls.urls)),
NameError: name 'polls' is not defined

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/df3c68c4-aa2a-498d-a1ed-840a31acf7a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Issue with Heroku Getting Started

2020-05-14 Thread J Maryott
Wondering if anyone may be able to shed some light on this...I've cloned 
the latest dev. version of Django from Git, and though I'm a bit of a 
newbie here, and this might sound totally dumb to the professionals (I'm 
unsure), I also tried pip install django.utilsas a last ditch 
effort. It seemed to download a package successfully, but still I'm 
receiving the same error.

I've made it about halfway though the "Getting Started with Python" 
tutorial on the Heroku Dev Center (
https://devcenter.heroku.com/articles/getting-started-with-python#run-the-app-locally),
 
and I get the following error when attempting to run collectstatic:


python manage.py collectstatic

Traceback (most recent call last):
  File "manage.py", line 8, in 
from django.core.management import execute_from_command_line
  File 
"C:\Users\jakem\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\django\__init__.py",
 line 1, in 
from django.utils.version import get_version
ModuleNotFoundError: No module named 'django.utils'

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1be60359-eb10-4def-90dc-762d1315e66a%40googlegroups.com.


Re: CMS 'power' getting started

2022-02-19 Thread Michael Powell
Hello,

Mentioned before, coming at this from a 'power' user standpoint, with
dotnet C++ dev background across platforms, some exposure to Python,
familiar with what django is, and competitors i.e. OrchardCore/CMS.

Interested in being CMS productive and eventually also potentially adding
tenants/apps to the overall solution.

>From the 'power' getting started, what else do I need to know?

* Docker might be a possibility eventually, but not to start.
* Aiming for a postgres backed environment
* Have various Python3 versions installed, the latest is 3.10.2, I think,
just now

Also looking for guidance re: project structures, directory layout, editors
perhaps, or is a VS Code sufficient, possibly Eclipse, I don't know, that
sort of thing.

>From OrchardCore/CMS, somewhat familiar with what/how to treat as 'source',
from the code behind it all, to the content database(s) themselves, etc,
and in potentially multi-author scenarios, with dev/staging/prod phase
lines.

Let me know if that makes sense or I can clarify anything getting started.

Thanks!

Michael W. Powell

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM%3DaUXpz768E_7_96abrjXcQW0B-MDOL_-w%2B8TYiQ_KUjT68qQ%40mail.gmail.com.


Re: CMS 'power' getting started

2022-02-20 Thread MR INDIA
Django is a web framework not a CMS,  if you want to use a CMS then use 
wagtail which is a Django based CMS. And Vscode would be sufficient for 
working with Django. 

If you want many custom features for the CMS then you can use wagtail, as 
whatever you can do in python you can do in wagtail. 
On Sunday, 20 February 2022 at 01:01:37 UTC+5:30 mwpow...@gmail.com wrote:

> Hello,
>
> Mentioned before, coming at this from a 'power' user standpoint, with 
> dotnet C++ dev background across platforms, some exposure to Python, 
> familiar with what django is, and competitors i.e. OrchardCore/CMS.
>
> Interested in being CMS productive and eventually also potentially adding 
> tenants/apps to the overall solution.
>
> From the 'power' getting started, what else do I need to know?
>
> * Docker might be a possibility eventually, but not to start.
> * Aiming for a postgres backed environment
> * Have various Python3 versions installed, the latest is 3.10.2, I think, 
> just now
>
> Also looking for guidance re: project structures, directory layout, 
> editors perhaps, or is a VS Code sufficient, possibly Eclipse, I don't 
> know, that sort of thing.
>
> From OrchardCore/CMS, somewhat familiar with what/how to treat as 
> 'source', from the code behind it all, to the content database(s) 
> themselves, etc, and in potentially multi-author scenarios, with 
> dev/staging/prod phase lines.
>
> Let me know if that makes sense or I can clarify anything getting started.
>
> Thanks!
>
> Michael W. Powell
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2d5097f5-cd87-478b-9f99-224ad68b595bn%40googlegroups.com.


Re: CMS 'power' getting started

2022-02-20 Thread MR INDIA
Django is opinionated so it has a starter directory layout,  you should 
stick to that. 


On Monday, 21 February 2022 at 11:26:45 UTC+5:30 MR INDIA wrote:

> Django is a web framework not a CMS,  if you want to use a CMS then use 
> wagtail which is a Django based CMS. And Vscode would be sufficient for 
> working with Django. 
>
> If you want many custom features for the CMS then you can use wagtail, as 
> whatever you can do in python you can do in wagtail. 
> On Sunday, 20 February 2022 at 01:01:37 UTC+5:30 mwpow...@gmail.com wrote:
>
>> Hello,
>>
>> Mentioned before, coming at this from a 'power' user standpoint, with 
>> dotnet C++ dev background across platforms, some exposure to Python, 
>> familiar with what django is, and competitors i.e. OrchardCore/CMS.
>>
>> Interested in being CMS productive and eventually also potentially adding 
>> tenants/apps to the overall solution.
>>
>> From the 'power' getting started, what else do I need to know?
>>
>> * Docker might be a possibility eventually, but not to start.
>> * Aiming for a postgres backed environment
>> * Have various Python3 versions installed, the latest is 3.10.2, I think, 
>> just now
>>
>> Also looking for guidance re: project structures, directory layout, 
>> editors perhaps, or is a VS Code sufficient, possibly Eclipse, I don't 
>> know, that sort of thing.
>>
>> From OrchardCore/CMS, somewhat familiar with what/how to treat as 
>> 'source', from the code behind it all, to the content database(s) 
>> themselves, etc, and in potentially multi-author scenarios, with 
>> dev/staging/prod phase lines.
>>
>> Let me know if that makes sense or I can clarify anything getting started.
>>
>> Thanks!
>>
>> Michael W. Powell
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/33849786-33f6-4723-950c-00f508b59fedn%40googlegroups.com.


Re: CMS 'power' getting started

2022-02-21 Thread Stu
Well, they do have the DjangoCMS. I agree though, WagtailCMS is vastly 
better, in my opinion.

On Monday, February 21, 2022 at 12:56:45 AM UTC-5 buddie...@gmail.com wrote:

> Django is a web framework not a CMS,  if you want to use a CMS then use 
> wagtail which is a Django based CMS. And Vscode would be sufficient for 
> working with Django. 
>
> If you want many custom features for the CMS then you can use wagtail, as 
> whatever you can do in python you can do in wagtail. 
> On Sunday, 20 February 2022 at 01:01:37 UTC+5:30 mwpow...@gmail.com wrote:
>
>> Hello,
>>
>> Mentioned before, coming at this from a 'power' user standpoint, with 
>> dotnet C++ dev background across platforms, some exposure to Python, 
>> familiar with what django is, and competitors i.e. OrchardCore/CMS.
>>
>> Interested in being CMS productive and eventually also potentially adding 
>> tenants/apps to the overall solution.
>>
>> From the 'power' getting started, what else do I need to know?
>>
>> * Docker might be a possibility eventually, but not to start.
>> * Aiming for a postgres backed environment
>> * Have various Python3 versions installed, the latest is 3.10.2, I think, 
>> just now
>>
>> Also looking for guidance re: project structures, directory layout, 
>> editors perhaps, or is a VS Code sufficient, possibly Eclipse, I don't 
>> know, that sort of thing.
>>
>> From OrchardCore/CMS, somewhat familiar with what/how to treat as 
>> 'source', from the code behind it all, to the content database(s) 
>> themselves, etc, and in potentially multi-author scenarios, with 
>> dev/staging/prod phase lines.
>>
>> Let me know if that makes sense or I can clarify anything getting started.
>>
>> Thanks!
>>
>> Michael W. Powell
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7a983bd9-2d83-4f60-89da-40ac3b2a3ac8n%40googlegroups.com.


Help Requested: Getting Started with Django

2010-05-09 Thread Chuck
Hi all,

I've read through the Django tutorial and it makes a lot of sense to
me. Does anyone have the full version of the poll application
available for download? I think it would be a good reference for me as
I develop my own site.

Thank you,
Chuck

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Getting started with generic relations

2010-12-06 Thread bruno desthuilliers
On 5 déc, 20:30, mack the finger  wrote:
> I can't quite wrap my brain around how to do generic relations. I have
> a `Receipt` model which is a receipt of a purchase. One of the fields
> is `item` which is a foreign key to a product model. I want to be able
> to not only have products, but other things that the user can buy.
>
> What do I need to do here to allow me to link to other types? Just
> change the ForeignKey('Product') to generic.GenericForeignKey()? Is
> that it?

Actually it's a bit more complicated - but the good news is that it's
documented:
http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#generic-relations

Please read the above doc first, then come back if you have problems ;)

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Getting started with generic relations

2010-12-06 Thread mack the finger
I did read the docs. The ubiquious 'TaggedItem' example I just
couldn't wrap my head around. I get it now though. For those who find
this looking for a solution:

Just add three fields to your model:

content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField()
item = generic.GenericForeignKey('content_type', 'object_id')

You can name them anything you want, as long as the names on the first
two lines match the names in the third line's constructor.

Basically the first line stores the type of object, the second line
stores the object's primarykey, and the third line is a helper thats
not even truly required, but makes it much much easier to use. Now you
can just go:

MyModel(item=WhateverModelInstanceYouWant, **other_opts)

and it should all magically work. The 'content_type' and 'object_id'
fields will be handled by the generic relation API.


On Dec 6, 4:34 am, bruno desthuilliers 
wrote:
> On 5 déc, 20:30, mack the finger  wrote:
>
> > I can't quite wrap my brain around how to do generic relations. I have
> > a `Receipt` model which is a receipt of a purchase. One of the fields
> > is `item` which is a foreign key to a product model. I want to be able
> > to not only have products, but other things that the user can buy.
>
> > What do I need to do here to allow me to link to other types? Just
> > change the ForeignKey('Product') to generic.GenericForeignKey()? Is
> > that it?
>
> Actually it's a bit more complicated - but the good news is that it's
> documented:http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#generi...
>
> Please read the above doc first, then come back if you have problems ;)

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Getting Started with Mac OS X

2012-02-27 Thread JChlipala
Hello,

I am a Django beginner, and am trying to get Django set up in Mac OS
X.  I am going through the tutorial, but getting stuck very early
(essentially at the beginning).  I have installed Python and Django.
The next instruction is to enter the command "django-admin.py
startproject mysite".  When I do this, I get the following error:

File "", line 1
django-admin.py startproject mysite
^

SyntaxError:  invalid syntax

Does anybody know why I am getting this error?  The tutorial has a
note for Mac OS X users explaining what to do if you get a "permission
denied" error, but that is obviously not what is happening to me.

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



Re: Getting started with django templatetags

2014-10-19 Thread Tom Lockhart

On Oct 18, 2014, at 2:24 AM, Scipion  wrote:

> Hey,
> 
> I have started to use Django (1.6) few weeks ago and I have the following 
> problem to resolve by using templatetags. (this is my very first templatetags 
> draft, so I may be wrong in the way of designing it, do not hesitate to 
> highlight anything weird).
> In my template, I have a list of elements (defined in the context) : items 
> (among 6 different django models).
> According to which class an item belongs, I have to display an image or a 
> title specific to this class (these informations can't be stored in the 
> models). 
> So basically, in my template I would like to have something like : 
> 
> {% for item in items %}
>  {% show_title_tag item %} 
> myPath/{% show_image_name_tag %}
> {% endfor %}
> 
> 
> I can't have more than that.
> 
>
>  @register.tag
> def show_title_tag(parser,token):
> tag_name, item = token.split_contents()
> if isinstance(item,class1):
> return MyNode(item.quote)
> elif isinstance(item,class2):
> return MyNode(item.subtitle)
> elif isinstance(item,class3):
> return MyNode(item.title)
> ...
> # basically, the field to use change for each class
>  
> @register.tag
> def show_image_name_tag(parser,token):
> tag_name, item = token.split_contents()
> if isinstance(item,class1):
> return MyNode("specific image name linked to class 1")
> elif isinstance(item,class2):
> return MyNode("specific image name linked to class 2")
> ...
> # the name change at each class, and is not stored in the object
> 
>  
> class MyNode:
> def __init__(self, image_or_title_string):
> self.image_or_title_string = image_or_title_string
> def render(self, context):
> return image_or_title_string.resolve(context)
> 
> 
> 
> 
> 
> Two main questions :  
> 
>  1. I am duplicated the if-elif code. Any idea how I could do it without
> duplicating it ? I could maybe only use one tag and add an extra
> parameter (in the tag and in the render) to specify which
> information I need (either the image or the title). Really not sure
> about this ...

This should not count as a suggestion of "best practices". At all.

But if you really cannot associate your related data with a model, then I might 
try setting up a lookup table with the classes as the lookup key. Something like

imagelookups.py

include .models

image_table = {class1: specific_image_url_for_class1,
class2: specific_image_url_for_class2,
...}

I'm not sure that the template tag is particularly useful here; why not just 
cough up the image URL itself rather than an entire piece of template?

So your template tag can just set a variable to be used in your templates:

@register.simple_tag
def show_title_tag(parser, token):
tag_name, item = token...
return image_table[item]

hth

- Tom


> 
>  
>  2. Can I have access to the variable and not the string in the tag code
> (after doing : tag_name, item = token.split_contents()). I imagine
> that item will be a string and not my django object. How can I
> resolve this ?
> 
> Also, here are the requirements I have to enforce : 
> 
>  - keep template very simple
>  - use templatetags to solve it
>  - can't modify models
>  - check to which class an item belongs with a function as isinstance in
>the templatetags (not in the template)
> 
>  
> Please, any suggestions are welcome here, as long as they respect the 
> requirements. Also, remind that I am a django beginner, I am just trying to 
> do it simple and readable, not highly effective.
> 
> Thanks.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/7b4b4803-dd5b-44ce-a785-b9a0d5fe6abb%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Please consider the environment before printing this message.
This message may be privileged and/or confidential, and the sender does not 
waive any related rights and obligations.  Any distribution, use or copying of 
this message or the information it contains by other than an intended recipient 
is unauthorized.  If you received this message in error, please immediately 
advise me by return e-mail or phone.  All information, references, images, 
programs, source code, or other materials whatsoever contained in, or supplied 
with, this document are TRADE SECRETS and governed by the Uniform Trade Secrets 
Act.  User assumes all direct and consequential liabilities and costs that 
result from any unauthorized disclosure or use of this info

Re: Getting started with django templatetags

2014-10-20 Thread Collin Anderson
Hello,

If you didn't say "can't modify models", I would for sure recommend custom 
methods on each model.

Otherwise, I think Thomas's suggestion is right.

Thanks,
Collin

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/271c2feb-89a2-45fa-95e8-102867c6c3cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Having problems getting started with Zyons

2006-07-19 Thread tonemcd

Hi all,
I'm trying to get the Zyons community/bulletin board system up and
running - we think it could be extremely useful for a large part of our
education community, and will assist us in migrating from Zope to
Django. Trouble is, I can't get it to work on my machine (MacBook Pro,
Python 2.4.3/MySL 4.1.18-standard)

I get this error on pointing at the root;

ProgrammingError at /
(, 'Invalid use of group function')

Template error (at line 38)

In template
/Users/bingobob/Sites/zilbo/common/forum/templates/forum/main_page.html,
error at line 38
Caught an exception while rendering.
28  {% latest_conversations conv 10 %}
29  
30 {% for c in conv %}
31 {{ c.forum.name
}} {{ c.name }}
32 {% endfor %}
33  
34  
35
36  
37  Most Popular
38  {% popular_objects Conversation c_o 40 %}
39  
40  {% for a in c_o %}
41  {{ a.0.name }}
42  {% endfor %}
43  
44  
45  
46  
47
48  {% endblock %}

The actual SQL generated is;
select content_type_id, object_id, sum( unique_views)  from
counter_objecthourcounter  where site_id=1 and effective_date >=
'2006-07-18 09:12:08' and content_type_id in (30) order by sum(
unique_views ) desc LIMIT 40

Is this a simple thing that I can fix (ie I've done something stupid),
or do I need to include more traceback information?

Cheers for any help,
Tone


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: App not Defined - Getting Started

2018-06-04 Thread Priya
Hi Jamie,

I think you should put single quotes inside include() which expects a path
for your apps(polls) urls.py. So try-

path('polls/',include('polls.urls'))

Hope this helps.

On Tue, 5 Jun 2018, 2:59 a.m. Jaime Escobar,  wrote:

> Hi,
> I am a completely beginner in django and also python programming. I am
> trying to follow the online documentation tutorial in which a poll website
> is created, but just running the server after created the polls it throws
> the error "name 'polls' is not defined".
>
> Can you help me?
>
>
> Unhandled exception in thread started by  check_errors..wrapper at 0x7feeeb74ab70>
> Traceback (most recent call last):
>   File
> "/home/jaime/.local/lib/python3.6/site-packages/django/utils/autoreload.py",
> line 225, in wrapper
> fn(*args, **kwargs)
>   File
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
> line 120, in inner_run
> self.check(display_num_errors=True)
>   File
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/management/base.py",
> line 364, in check
> include_deployment_checks=include_deployment_checks,
>   File
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/management/base.py",
> line 351, in _run_checks
> return checks.run_checks(**kwargs)
>   File
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/checks/registry.py",
> line 73, in run_checks
> new_errors = check(app_configs=app_configs)
>   File
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/checks/urls.py",
> line 40, in check_url_namespaces_unique
> all_namespaces = _load_all_namespaces(resolver)
>   File
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/checks/urls.py",
> line 57, in _load_all_namespaces
> url_patterns = getattr(resolver, 'url_patterns', [])
>   File
> "/home/jaime/.local/lib/python3.6/site-packages/django/utils/functional.py",
> line 36, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>   File
> "/home/jaime/.local/lib/python3.6/site-packages/django/urls/resolvers.py",
> line 540, in url_patterns
> patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module)
>   File
> "/home/jaime/.local/lib/python3.6/site-packages/django/utils/functional.py",
> line 36, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>   File
> "/home/jaime/.local/lib/python3.6/site-packages/django/urls/resolvers.py",
> line 533, in urlconf_module
> return import_module(self.urlconf_name)
>   File "/usr/lib/python3.6/importlib/__init__.py", line 126, in
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in
> _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 678, in exec_module
>   File "", line 219, in
> _call_with_frames_removed
>   File "/home/jaime/Projects/Django/mysite/mysite/urls.py", line 20, in
> 
> path('polls/',include(polls.urls)),
> NameError: name 'polls' is not defined
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/df3c68c4-aa2a-498d-a1ed-840a31acf7a2%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPBHpYD2bvojRHMpJKpyG7PMcvNDzyOr%3Dd3dFtQ729K_NnPUiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: App not Defined - Getting Started

2018-06-05 Thread Sadialiou Diallo
you must replace the

> path('polls/',include(polls.
> urls)),
>

by 
path('polls/',include("polls.
urls")),

because the polls is not a variable,it is a name of application

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ac653dfe-4cb4-44ee-8050-e49b9d169c9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: App not Defined - Getting Started

2018-06-05 Thread Satyam Soni
Did u registered you app in settings.py file ? This happens when you forget to 
put name of your app in installed apps in settings.py file. 

Sent from my iPhone

> On 05-Jun-2018, at 2:36 AM, Jaime Escobar  wrote:
> 
> Hi, 
> I am a completely beginner in django and also python programming. I am trying 
> to follow the online documentation tutorial in which a poll website is 
> created, but just running the server after created the polls it throws the 
> error "name 'polls' is not defined".
> 
> Can you help me?
> 
> 
> Unhandled exception in thread started by  check_errors..wrapper at 0x7feeeb74ab70>
> Traceback (most recent call last):
>   File 
> "/home/jaime/.local/lib/python3.6/site-packages/django/utils/autoreload.py", 
> line 225, in wrapper
> fn(*args, **kwargs)
>   File 
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>  line 120, in inner_run
> self.check(display_num_errors=True)
>   File 
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/management/base.py",
>  line 364, in check
> include_deployment_checks=include_deployment_checks,
>   File 
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/management/base.py",
>  line 351, in _run_checks
> return checks.run_checks(**kwargs)
>   File 
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/checks/registry.py",
>  line 73, in run_checks
> new_errors = check(app_configs=app_configs)
>   File 
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/checks/urls.py", 
> line 40, in check_url_namespaces_unique
> all_namespaces = _load_all_namespaces(resolver)
>   File 
> "/home/jaime/.local/lib/python3.6/site-packages/django/core/checks/urls.py", 
> line 57, in _load_all_namespaces
> url_patterns = getattr(resolver, 'url_patterns', [])
>   File 
> "/home/jaime/.local/lib/python3.6/site-packages/django/utils/functional.py", 
> line 36, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>   File 
> "/home/jaime/.local/lib/python3.6/site-packages/django/urls/resolvers.py", 
> line 540, in url_patterns
> patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
>   File 
> "/home/jaime/.local/lib/python3.6/site-packages/django/utils/functional.py", 
> line 36, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>   File 
> "/home/jaime/.local/lib/python3.6/site-packages/django/urls/resolvers.py", 
> line 533, in urlconf_module
> return import_module(self.urlconf_name)
>   File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 678, in exec_module
>   File "", line 219, in _call_with_frames_removed
>   File "/home/jaime/Projects/Django/mysite/mysite/urls.py", line 20, in 
> 
> path('polls/',include(polls.urls)),
> NameError: name 'polls' is not defined
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/df3c68c4-aa2a-498d-a1ed-840a31acf7a2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4053A3FE-B231-4B3F-9BCD-A7AAB07BAD1E%40livehealth.in.
For more options, visit https://groups.google.com/d/optout.


Re: Issue with Heroku Getting Started

2020-05-15 Thread Jorge Gimeno
On Thu, May 14, 2020 at 5:02 AM J Maryott  wrote:

> Wondering if anyone may be able to shed some light on this...I've cloned
> the latest dev. version of Django from Git, and though I'm a bit of a
> newbie here, and this might sound totally dumb to the professionals (I'm
> unsure), I also tried pip install django.utilsas a last ditch
> effort. It seemed to download a package successfully, but still I'm
> receiving the same error.
>
> I've made it about halfway though the "Getting Started with Python"
> tutorial on the Heroku Dev Center (
> https://devcenter.heroku.com/articles/getting-started-with-python#run-the-app-locally),
> and I get the following error when attempting to run collectstatic:
>
>
> python manage.py collectstatic
>
> Traceback (most recent call last):
>   File "manage.py", line 8, in 
> from django.core.management import execute_from_command_line
>   File 
> "C:\Users\jakem\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\django\__init__.py",
>  line 1, in 
> from django.utils.version import get_version
> ModuleNotFoundError: No module named 'django.utils'
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1be60359-eb10-4def-90dc-762d1315e66a%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/1be60359-eb10-4def-90dc-762d1315e66a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

Can you type pip freeze into your terminal and copy/paste the output here,
please?

-Jorge

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANfN%3DK8r_Eer9AAWqt5ZDivsDCvwco6MgpUKQMbWk9WgZ-e8QQ%40mail.gmail.com.


Re: Issue with Heroku Getting Started

2020-05-15 Thread J Maryott
C:\Users\jakem\python-getting-started>pip freeze
asgiref==3.2.7
dj-database-url==0.5.0
Django==3.0.6
django-heroku==0.3.1
django-utils==0.0.2
gunicorn==20.0.4
psycopg2==2.8.5
pytz==2020.1
sqlparse==0.3.1
whitenoise==5.0.1

On Friday, May 15, 2020 at 11:29:29 AM UTC-4, jlgimeno71 wrote:
>
>
>
> On Thu, May 14, 2020 at 5:02 AM J Maryott > 
> wrote:
>
>> Wondering if anyone may be able to shed some light on this...I've cloned 
>> the latest dev. version of Django from Git, and though I'm a bit of a 
>> newbie here, and this might sound totally dumb to the professionals (I'm 
>> unsure), I also tried pip install django.utilsas a last ditch 
>> effort. It seemed to download a package successfully, but still I'm 
>> receiving the same error.
>>
>> I've made it about halfway though the "Getting Started with Python" 
>> tutorial on the Heroku Dev Center (
>> https://devcenter.heroku.com/articles/getting-started-with-python#run-the-app-locally),
>>  
>> and I get the following error when attempting to run collectstatic:
>>
>>
>> python manage.py collectstatic
>>
>> Traceback (most recent call last):
>>   File "manage.py", line 8, in 
>> from django.core.management import execute_from_command_line
>>   File 
>> "C:\Users\jakem\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\django\__init__.py",
>>  line 1, in 
>> from django.utils.version import get_version
>> ModuleNotFoundError: No module named 'django.utils'
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/1be60359-eb10-4def-90dc-762d1315e66a%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/1be60359-eb10-4def-90dc-762d1315e66a%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
> Can you type pip freeze into your terminal and copy/paste the output here, 
> please?
>
> -Jorge
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eda9f804-4949-4cdd-9b34-8bf7db3b049a%40googlegroups.com.


Re: Issue with Heroku Getting Started

2020-05-15 Thread Jorge Gimeno
Is this in a virtual environment? Are you using pipenv?

-Jorge

On Fri, May 15, 2020 at 1:24 PM J Maryott  wrote:

> C:\Users\jakem\python-getting-started>pip freeze
> asgiref==3.2.7
> dj-database-url==0.5.0
> Django==3.0.6
> django-heroku==0.3.1
> django-utils==0.0.2
> gunicorn==20.0.4
> psycopg2==2.8.5
> pytz==2020.1
> sqlparse==0.3.1
> whitenoise==5.0.1
>
> On Friday, May 15, 2020 at 11:29:29 AM UTC-4, jlgimeno71 wrote:
>>
>>
>>
>> On Thu, May 14, 2020 at 5:02 AM J Maryott  wrote:
>>
>>> Wondering if anyone may be able to shed some light on this...I've cloned
>>> the latest dev. version of Django from Git, and though I'm a bit of a
>>> newbie here, and this might sound totally dumb to the professionals (I'm
>>> unsure), I also tried pip install django.utilsas a last ditch
>>> effort. It seemed to download a package successfully, but still I'm
>>> receiving the same error.
>>>
>>> I've made it about halfway though the "Getting Started with Python"
>>> tutorial on the Heroku Dev Center (
>>> https://devcenter.heroku.com/articles/getting-started-with-python#run-the-app-locally),
>>> and I get the following error when attempting to run collectstatic:
>>>
>>>
>>> python manage.py collectstatic
>>>
>>> Traceback (most recent call last):
>>>   File "manage.py", line 8, in 
>>> from django.core.management import execute_from_command_line
>>>   File 
>>> "C:\Users\jakem\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\django\__init__.py",
>>>  line 1, in 
>>> from django.utils.version import get_version
>>> ModuleNotFoundError: No module named 'django.utils'
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/1be60359-eb10-4def-90dc-762d1315e66a%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/1be60359-eb10-4def-90dc-762d1315e66a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>> Can you type pip freeze into your terminal and copy/paste the output
>> here, please?
>>
>> -Jorge
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/eda9f804-4949-4cdd-9b34-8bf7db3b049a%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/eda9f804-4949-4cdd-9b34-8bf7db3b049a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANfN%3DK8cwA3HzqRQ6pLAS0835oK3AZ%3DHgb%2BLZqDHv9GySDwxnQ%40mail.gmail.com.


Re: Issue with Heroku Getting Started

2020-05-15 Thread John McClain
try removing this

django-utils==0.0.2

from requirements then run again to see next error

On Fri, 15 May 2020 at 21:23, J Maryott  wrote:

> C:\Users\jakem\python-getting-started>pip freeze
> asgiref==3.2.7
> dj-database-url==0.5.0
> Django==3.0.6
> django-heroku==0.3.1
> django-utils==0.0.2
> gunicorn==20.0.4
> psycopg2==2.8.5
> pytz==2020.1
> sqlparse==0.3.1
> whitenoise==5.0.1
>
> On Friday, May 15, 2020 at 11:29:29 AM UTC-4, jlgimeno71 wrote:
>>
>>
>>
>> On Thu, May 14, 2020 at 5:02 AM J Maryott  wrote:
>>
>>> Wondering if anyone may be able to shed some light on this...I've cloned
>>> the latest dev. version of Django from Git, and though I'm a bit of a
>>> newbie here, and this might sound totally dumb to the professionals (I'm
>>> unsure), I also tried pip install django.utilsas a last ditch
>>> effort. It seemed to download a package successfully, but still I'm
>>> receiving the same error.
>>>
>>> I've made it about halfway though the "Getting Started with Python"
>>> tutorial on the Heroku Dev Center (
>>> https://devcenter.heroku.com/articles/getting-started-with-python#run-the-app-locally),
>>> and I get the following error when attempting to run collectstatic:
>>>
>>>
>>> python manage.py collectstatic
>>>
>>> Traceback (most recent call last):
>>>   File "manage.py", line 8, in 
>>> from django.core.management import execute_from_command_line
>>>   File 
>>> "C:\Users\jakem\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\django\__init__.py",
>>>  line 1, in 
>>> from django.utils.version import get_version
>>> ModuleNotFoundError: No module named 'django.utils'
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/1be60359-eb10-4def-90dc-762d1315e66a%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/1be60359-eb10-4def-90dc-762d1315e66a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>> Can you type pip freeze into your terminal and copy/paste the output
>> here, please?
>>
>> -Jorge
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/eda9f804-4949-4cdd-9b34-8bf7db3b049a%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/eda9f804-4949-4cdd-9b34-8bf7db3b049a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
John McClain

Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-hv_p3VGnGn60UeZCg4ktxc%2BQakt5xgd7kyMadF7t7b0VYng%40mail.gmail.com.


Re: Issue with Heroku Getting Started

2020-05-15 Thread Jorge Gimeno
On Fri, May 15, 2020 at 5:27 PM John McClain  wrote:

> try removing this
>
> django-utils==0.0.2
>
> from requirements then run again to see next error
>

Good catch!  I'll bet there's a name collision here.

-Jorge

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANfN%3DK8DX2sFNm5s1oLoPdN6uCkKc42cL8TAbm%2BEirkFuZSu0Q%40mail.gmail.com.


Re: Issue with Heroku Getting Started

2020-05-16 Thread John McClain
did it work?

On Sat, 16 May 2020 at 01:37, Jorge Gimeno  wrote:

>
>
> On Fri, May 15, 2020 at 5:27 PM John McClain 
> wrote:
>
>> try removing this
>>
>> django-utils==0.0.2
>>
>> from requirements then run again to see next error
>>
>
> Good catch!  I'll bet there's a name collision here.
>
> -Jorge
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANfN%3DK8DX2sFNm5s1oLoPdN6uCkKc42cL8TAbm%2BEirkFuZSu0Q%40mail.gmail.com
> 
> .
>


-- 
John McClain

Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-hv_q34b4AbDWbBoodB6zJ0FNDdJY5WAHkoMEdWdTn8A-9dw%40mail.gmail.com.


DJANGO + Google App Engine, Getting Started Tutorial

2010-08-23 Thread nobosh
I'm very interested in finding a up-to-date tutorial that shows steps
for getting DJANGO running on Google App Engine, anyone know of any
such tutorials?

Surprisingly, Google's App Engine DJANGO docs are almost a year old.
What gives?

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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Help Requested: Getting Started with Django

2010-05-10 Thread Steven Degutis
There is no 'full version' as far as I know. You're meant to write the
project along with the tutorial and by the time you complete the 4
tutorials, you will have a full django project. This is how I got my feet
wet with django, and afterwards I used all the thorough documentation as a
reference for what else can be done in django. Doing so got me writing
websites in just 2 weeks, I highly recommend it.

-Steven

On Sun, May 9, 2010 at 1:05 AM, Chuck  wrote:

> Hi all,
>
> I've read through the Django tutorial and it makes a lot of sense to
> me. Does anyone have the full version of the poll application
> available for download? I think it would be a good reference for me as
> I develop my own site.
>
> Thank you,
> Chuck
>
> --
> 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-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Getting Started with Mac OS X

2012-03-07 Thread Clark
I am having a similar issue, so I tried the $ pip uninstall django,
but I got a "IOError: [Errno 13] Permission denied"

Advice?

Thanks.

On Feb 28, 2:08 am, Praveen Rachabattuni 
wrote:
> Hi,
>
> I am using on Mac OS X Lion and its working pretty well.
> Seems there is something wrong with your django installation, try
> reinstalling
>
> $ pip uninstall django
> $ pip install django
>
> Hope that helps.
>
> Regards,
> Praveen R
>
>
>
>
>
>
>
> On Tuesday, 28 February 2012 06:06:21 UTC+5:30, JChlipala wrote:
>
> > Hello,
>
> > I am a Django beginner, and am trying to get Django set up in Mac OS
> > X.  I am going through the tutorial, but getting stuck very early
> > (essentially at the beginning).  I have installed Python and Django.
> > The next instruction is to enter the command "django-admin.py
> > startproject mysite".  When I do this, I get the following error:
>
> > File "", line 1
> > django-admin.py startproject mysite
> >                                         ^
>
> > SyntaxError:  invalid syntax
>
> > Does anybody know why I am getting this error?  The tutorial has a
> > note for Mac OS X users explaining what to do if you get a "permission
> > denied" error, but that is obviously not what is happening to me.
>
> > Thank you for any 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@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Getting Started with Mac OS X

2012-03-07 Thread Tom Evans
On Wed, Mar 7, 2012 at 2:43 PM, Clark  wrote:
> I am having a similar issue, so I tried the $ pip uninstall django,
> but I got a "IOError: [Errno 13] Permission denied"
>
> Advice?
>
> Thanks.
>

You should have started a new thread for your new error. The error
here was that the new user was typing shell commands into a python
prompt - is that what you are doing?

The error that you have shown means that pip tried to access (read or
delete) a file to which it did not have access. That could happen for
any number of reasons, but most likely you installed django as root
and are trying to uninstall it as a regular user.

Of course, that is just speculation, as you have not shown what
happened, or what your original error was that made you think "I know,
a reinstall of Django will fix everything".

Cheers

Tom

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



Re: Getting Started with Mac OS X

2012-03-07 Thread Clark Corey
I am typing mine into a shell promptI posted the thread, but I don't
know that it has posted yet...here it is:

After installing Django I am attempting to start a new project.  After
creating a directory for this, I tried using the command: "django-
admin.py startproject mysite".

but I'm getting the message "-bash: django-admin.py: command not found".

So, I've tried running this:

"sudo ln -s library/python/2.6/site-packages/django/bin/django-admin.py
/usr/local/bin/django-admin.py" in which i get "file exists"
and I still get the same problem when running the startproject.

Only other piece of info is that during installation I had a "error:
/usr/local/bin/django-admin.py: No such file or directory".  But I can
cd into that directory and see the django-admin.py file.

Thanks!

-Clark


On Wed, Mar 7, 2012 at 7:54 AM, Tom Evans  wrote:

> On Wed, Mar 7, 2012 at 2:43 PM, Clark  wrote:
> > I am having a similar issue, so I tried the $ pip uninstall django,
> > but I got a "IOError: [Errno 13] Permission denied"
> >
> > Advice?
> >
> > Thanks.
> >
>
> You should have started a new thread for your new error. The error
> here was that the new user was typing shell commands into a python
> prompt - is that what you are doing?
>
> The error that you have shown means that pip tried to access (read or
> delete) a file to which it did not have access. That could happen for
> any number of reasons, but most likely you installed django as root
> and are trying to uninstall it as a regular user.
>
> Of course, that is just speculation, as you have not shown what
> happened, or what your original error was that made you think "I know,
> a reinstall of Django will fix everything".
>
> Cheers
>
> Tom
>
> --
> 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@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

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



Re: Getting Started with Mac OS X

2012-02-27 Thread Babatunde Akinyanmi
I've never used mac OS but try:
python django-admin.py startproject mysite

On 2/28/12, JChlipala  wrote:
> Hello,
>
> I am a Django beginner, and am trying to get Django set up in Mac OS
> X.  I am going through the tutorial, but getting stuck very early
> (essentially at the beginning).  I have installed Python and Django.
> The next instruction is to enter the command "django-admin.py
> startproject mysite".  When I do this, I get the following error:
>
> File "", line 1
> django-admin.py startproject mysite
> ^
>
> SyntaxError:  invalid syntax
>
> Does anybody know why I am getting this error?  The tutorial has a
> note for Mac OS X users explaining what to do if you get a "permission
> denied" error, but that is obviously not what is happening to me.
>
> Thank you for any 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@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
Sent from my mobile device

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



Re: Getting Started with Mac OS X

2012-02-28 Thread Praveen Rachabattuni
Hi,

I am using on Mac OS X Lion and its working pretty well.
Seems there is something wrong with your django installation, try 
reinstalling 

$ pip uninstall django
$ pip install django

Hope that helps.

Regards,
Praveen R

On Tuesday, 28 February 2012 06:06:21 UTC+5:30, JChlipala wrote:
>
> Hello, 
>
> I am a Django beginner, and am trying to get Django set up in Mac OS 
> X.  I am going through the tutorial, but getting stuck very early 
> (essentially at the beginning).  I have installed Python and Django. 
> The next instruction is to enter the command "django-admin.py 
> startproject mysite".  When I do this, I get the following error: 
>
> File "", line 1 
> django-admin.py startproject mysite 
> ^ 
>
> SyntaxError:  invalid syntax 
>
> Does anybody know why I am getting this error?  The tutorial has a 
> note for Mac OS X users explaining what to do if you get a "permission 
> denied" error, but that is obviously not what is happening to me. 
>
> Thank you for any help!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/39Bcwp2cUHgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Getting Started with Mac OS X

2012-02-28 Thread Tom Evans
On Tue, Feb 28, 2012 at 12:36 AM, JChlipala  wrote:
> Hello,
>
> I am a Django beginner, and am trying to get Django set up in Mac OS
> X.  I am going through the tutorial, but getting stuck very early
> (essentially at the beginning).  I have installed Python and Django.
> The next instruction is to enter the command "django-admin.py
> startproject mysite".  When I do this, I get the following error:
>
> File "", line 1
> django-admin.py startproject mysite
>                                        ^
>
> SyntaxError:  invalid syntax
>
> Does anybody know why I am getting this error?

You need to type that command at the console command prompt, not the
python prompt.

Cheers

Tom

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



Re: Getting Started with Mac OS X

2013-07-13 Thread Kayode Alayode
Yea I think they wanted you to add this "*django-admin.py 
startproject mysite*"  at the cd commandpromopt I am stuck here as well and 
don't really know how to proceed as well.


On Monday, February 27, 2012 7:36:21 PM UTC-5, JChlipala wrote:
>
> Hello, 
>
> I am a Django beginner, and am trying to get Django set up in Mac OS 
> X.  I am going through the tutorial, but getting stuck very early 
> (essentially at the beginning).  I have installed Python and Django. 
> The next instruction is to enter the command "django-admin.py 
> startproject mysite".  When I do this, I get the following error: 
>
> File "", line 1 
> django-admin.py startproject mysite 
> ^ 
>
> SyntaxError:  invalid syntax 
>
> Does anybody know why I am getting this error?  The tutorial has a 
> note for Mac OS X users explaining what to do if you get a "permission 
> denied" error, but that is obviously not what is happening to me. 
>
> Thank you for any help!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Getting Started with Mac OS X

2013-07-14 Thread Mando
Hi,

This is the way I have it set up my osx


$ sudo pip install virtualenv
$ virtualenv --distribute pytho_projects
$ source python_projects/bin/activate
$ (python projects) pip install django
$ django-admin.py startproject myblog

and that should get you past that. using virtualenv just makes it a lot 
more clean and organized imo. Let me know if that helped you out some.



On Saturday, July 13, 2013 2:25:06 PM UTC-5, Kayode Alayode wrote:
>
> Yea I think they wanted you to add this "*django-admin.py 
> startproject mysite*"  at the cd commandpromopt I am stuck here as well 
> and don't really know how to proceed as well.
>
>
> On Monday, February 27, 2012 7:36:21 PM UTC-5, JChlipala wrote:
>>
>> Hello, 
>>
>> I am a Django beginner, and am trying to get Django set up in Mac OS 
>> X.  I am going through the tutorial, but getting stuck very early 
>> (essentially at the beginning).  I have installed Python and Django. 
>> The next instruction is to enter the command "django-admin.py 
>> startproject mysite".  When I do this, I get the following error: 
>>
>> File "", line 1 
>> django-admin.py startproject mysite 
>> ^ 
>>
>> SyntaxError:  invalid syntax 
>>
>> Does anybody know why I am getting this error?  The tutorial has a 
>> note for Mac OS X users explaining what to do if you get a "permission 
>> denied" error, but that is obviously not what is happening to me. 
>>
>> Thank you for any help!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Getting Started with Mac OS X

2013-07-14 Thread Thomas Lockhart

On 7/14/13 1:26 PM, Mando wrote:

Hi,

This is the way I have it set up my osx


$ sudo pip install virtualenv
$ virtualenv --distribute pytho_projects
$ source python_projects/bin/activate
$ (python projects) pip install django
$ django-admin.py startproject myblog

and that should get you past that. using virtualenv just makes it a 
lot more clean and organized imo. Let me know if that helped you out some.


+1 on that. pip is the only way to go.

And I would suggest installing PostgreSQL from MacPorts or an equivalent 
package manager to give yourself more control over your database 
versioning and contents. Otherwise you are relying on whatever is in 
Apple's current update which may change or be different from what you 
might need for reasons of your own.


I've also installed python and related packages from MacPorts so then 
the virtualenv will point to that installation when it initializes. That 
also gives you more control over versioning.


hth

   - Tom






On Saturday, July 13, 2013 2:25:06 PM UTC-5, Kayode Alayode wrote:

Yea I think they wanted you to add this "*django-admin.py
startproject mysite*"  at the cd commandpromopt I am stuck here as
well and don't really know how to proceed as well.


On Monday, February 27, 2012 7:36:21 PM UTC-5, JChlipala wrote:

Hello,

I am a Django beginner, and am trying to get Django set up in
Mac OS
X.  I am going through the tutorial, but getting stuck very early
(essentially at the beginning).  I have installed Python and
Django.
The next instruction is to enter the command "django-admin.py
startproject mysite".  When I do this, I get the following error:

File "", line 1
django-admin.py startproject mysite
^

SyntaxError:  invalid syntax

Does anybody know why I am getting this error?  The tutorial
has a
note for Mac OS X users explaining what to do if you get a
"permission
denied" error, but that is obviously not what is happening to me.

Thank you for any help!

--
You received this message because you are subscribed to the Google 
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to django-users+unsubscr...@googlegroups.com.

To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Having problems getting started with Zyons

2006-07-19 Thread Malcolm Tredinnick

On Wed, 2006-07-19 at 09:16 +, tonemcd wrote:
> Hi all,
> I'm trying to get the Zyons community/bulletin board system up and
> running - we think it could be extremely useful for a large part of our
> education community, and will assist us in migrating from Zope to
> Django. Trouble is, I can't get it to work on my machine (MacBook Pro,
> Python 2.4.3/MySL 4.1.18-standard)
> 
> I get this error on pointing at the root;
> 
> ProgrammingError at /
> (, 'Invalid use of group function')

[...]
> The actual SQL generated is;
> select content_type_id, object_id, sum( unique_views)  from
> counter_objecthourcounter  where site_id=1 and effective_date >=
> '2006-07-18 09:12:08' and content_type_id in (30) order by sum(
> unique_views ) desc LIMIT 40

I'm not familiar with Zyons, so I don't know if this is a query you are
generating or one from inside the product, but the SQL is bad. 

here should be a "group by content_type_id, object_id" clause in that
SQL statement. You have to group by all the non-aggregate return values
in a query like that.

Regards,
Malcolm



--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Having problems getting started with Zyons

2006-07-19 Thread Ian Holsman
Hi Tony.Thanks for giving Zyons a whirl.'popular_objects' is part of the 'counter' app which tracks what people are viewing.you don't need it installed for the rest of the app to run.that being said.he SQL you are showing me doesn't seem to contain the 'group by' command which looks like it is present in all the vairous forms in zilbo/common/counter/models.py ;(can you post the trackback on zyons in the 'bugs' forum.. http://zyons.com/forum/bugs/as I'm not sure django-users is appropriate for discussion custom apps.On 19/07/2006, at 7:16 PM, tonemcd wrote:Hi all,I'm trying to get the Zyons community/bulletin board system up andrunning - we think it could be extremely useful for a large part of oureducation community, and will assist us in migrating from Zope toDjango. Trouble is, I can't get it to work on my machine (MacBook Pro,Python 2.4.3/MySL 4.1.18-standard)I get this error on pointing at the root;ProgrammingError at /(, 'Invalid use of group function')Template error (at line 38)In template/Users/bingobob/Sites/zilbo/common/forum/templates/forum/main_page.html,error at line 38Caught an exception while rendering.28	        {% latest_conversations conv 10 %}29	30	   {% for c in conv %}31	   {{ c.forum.name}} {{ c.name }}32	   {% endfor %}33	34	3536	37	Most Popular38	{% popular_objects Conversation c_o 40 %}39	40	{% for a in c_o %}41	{{ a.0.name }}42	{% endfor %}43	44	45	46	4748	{% endblock %}The actual SQL generated is;select content_type_id, object_id, sum( unique_views)  fromcounter_objecthourcounter  where site_id=1 and effective_date >='2006-07-18 09:12:08' and content_type_id in (30) order by sum(unique_views ) desc LIMIT 40Is this a simple thing that I can fix (ie I've done something stupid),or do I need to include more traceback information?Cheers for any help,Tone

--~--~-~--~~~---~--~~
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@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---


Re: Having problems getting started with Zyons

2006-07-19 Thread tonemcd

Sorry Ian, I didn't mean to diss your application in the main
discusssion forum! I just thought it might be a stupid user problem (I
couldn't find it in the zyons.com forum).

I've been watching the development of zyons for a while with a view to
using it for the first stage of our Zope migration project and thought
that I'd have a go at the latest release.

Stupidly, I have posted the wrong SQL, it should be;
select content_type_id, object_id, sum( unique_views)  from
counter_objecthourcounter  where site_id=1 and effective_date >=
'2006-07-18 09:50:07' and content_type_id in (30) group by
content_type_id, object_id order by sum( unique_views ) desc LIMIT 40

I'll post the trackback in the 'bugs' forum at zyons.com

Thanks for what looks like a really useful application by the way!

Cheers,
Tone


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Having problems getting started with Zyons

2006-07-19 Thread Ian Holsman
didn't 'diss' it at all.bugs happen.have you tried running the SQL directly from the mysql command prompt?it doesn't cause an error on mysql 5.0.16 or 5.1.11;(maybe the trackback will help.On 19/07/2006, at 7:56 PM, tonemcd wrote:Sorry Ian, I didn't mean to diss your application in the maindiscusssion forum! I just thought it might be a stupid user problem (Icouldn't find it in the zyons.com forum).I've been watching the development of zyons for a while with a view tousing it for the first stage of our Zope migration project and thoughtthat I'd have a go at the latest release.Stupidly, I have posted the wrong SQL, it should be;select content_type_id, object_id, sum( unique_views)  fromcounter_objecthourcounter  where site_id=1 and effective_date >='2006-07-18 09:50:07' and content_type_id in (30) group bycontent_type_id, object_id order by sum( unique_views ) desc LIMIT 40I'll post the trackback in the 'bugs' forum at zyons.comThanks for what looks like a really useful application by the way!Cheers,Tone

--~--~-~--~~~---~--~~
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@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---


Re: Having problems getting started with Zyons

2006-07-19 Thread tonemcd

Ian,
I think that's it - it definitely causes an SQL error on MySQL
4.1.18-standard.

Drat. Our main systems (where I intend to run django 'for real') are
stuck on the 4.1 series for the time being (hence why my machine is
still running 4.1.18-standard). However, as I make the final decisions
on what server versions we use, this could change ... ;)

Tone


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Having problems getting started with Zyons

2006-07-19 Thread Ian Holsman
hmm..the SQL shouldn't be that complex.. it's pretty standardcan you try running it without the date ?or perhaps changethe with content_type_id in (30) to content_type_id = 30On 19/07/2006, at 8:10 PM, tonemcd wrote:Ian,I think that's it - it definitely causes an SQL error on MySQL4.1.18-standard.Drat. Our main systems (where I intend to run django 'for real') arestuck on the 4.1 series for the time being (hence why my machine isstill running 4.1.18-standard). However, as I make the final decisionson what server versions we use, this could change ... ;)Tone

--~--~-~--~~~---~--~~
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@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---


Re: Having problems getting started with Zyons

2006-07-19 Thread tonemcd

I dug around a little, http://archives.neohapsis.com/archives/mysql/2005-q2/1966.html";>this
helped a lot - and I found that this works (4.1.18-standard);

mysql> select content_type_id, object_id, sum( unique_views)  from
counter_objecthourcounter  where site_id=1 and effective_date >=
'2006-07-18 09:50:07' and content_type_id in (30) group by
content_type_id, object_id  LIMIT 40;
Empty set (0.00 sec)


But of course the 'order by sum (unique_views) desc' has gone.

Tone


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Having problems getting started with Zyons

2006-07-19 Thread Ian Holsman
try order by 3 descOn 19/07/2006, at 8:40 PM, tonemcd wrote:I dug around a little, href=""http://archives.neohapsis.com/archives/mysql/2005-q2/1966.html">http://archives.neohapsis.com/archives/mysql/2005-q2/1966.html">thishelped a lot - and I found that this works (4.1.18-standard);mysql> select content_type_id, object_id, sum( unique_views)  fromcounter_objecthourcounter  where site_id=1 and effective_date >='2006-07-18 09:50:07' and content_type_id in (30) group bycontent_type_id, object_id  LIMIT 40;Empty set (0.00 sec)But of course the 'order by sum (unique_views) desc' has gone.Tone

--~--~-~--~~~---~--~~
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@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---


Re: Having problems getting started with Zyons

2006-07-19 Thread Malcolm Tredinnick

On Wed, 2006-07-19 at 10:40 +, tonemcd wrote:
> I dug around a little,  href="http://archives.neohapsis.com/archives/mysql/2005-q2/1966.html";>this
> helped a lot - and I found that this works (4.1.18-standard);
> 
> mysql> select content_type_id, object_id, sum( unique_views)  from
> counter_objecthourcounter  where site_id=1 and effective_date >=
> '2006-07-18 09:50:07' and content_type_id in (30) group by
> content_type_id, object_id  LIMIT 40;
> Empty set (0.00 sec)
> 
> 
> But of course the 'order by sum (unique_views) desc' has gone.

Does it work if you give the sum() an alias? So put "sum( unique_views)
as s" in the select clause and "order by s desc" later on?

Yes, it's a short in the dark, but it's not clear to me if that version
fo MySQL doesn't like order by aggregates at all or if it's something
more subtle. So there's one more possibility for you to try.

Regards,
Malcolm


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Having problems getting started with Zyons

2006-07-19 Thread tonemcd

Thanks Ian, Malcolm, this works!;

mysql> select content_type_id, object_id, sum( unique_views) as sum_uv
from  counter_objecthourcounter  where site_id=1 and effective_date >=
'2006-07-18 09:50:07' and content_type_id in (30) group by
content_type_id, object_id order by sum_uv desc  LIMIT 40;
Empty set (0.00 sec)

IMHO, The initial error message from MySQL (Invalid use of group
function) is a little bit misleading...as look what happens if the
'group by' part of the query is removed;

mysql> select content_type_id, object_id, sum( unique_views) as sum_uv
from  counter_objecthourcounter  where site_id=1 and effective_date >=
'2006-07-18 09:50:07' and content_type_id in (30)  order by
sum(unique_views)  LIMIT 40;
ERROR  (HY000): Invalid use of group function


Cheers,
Tone


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Having problems getting started with Zyons

2006-07-19 Thread tonemcd

I've posted a ticket at http://zyons.python-hosting.com/ticket/3 with a
description of the problem and a possible solution based on the SQL
alias.

Funny, I would have thought there were more MySQL 4.0-4.1 people around
than that (which would have shown the glitch earlier), guess I really
do need to look at MySQL 5!!

Cheers,
Tone


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Having problems getting started with Zyons

2006-07-19 Thread tonemcd

Quick update, Ian has updated the source in svn to fix the glitch.

I've svn-uped and it everything is hunky-dory...

Thanks very much Ian, from a reported glitch at 10:16 through to
resolution by 12:31. Nice one!

Cheers,
Tone


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Finding Help in getting started in Django

2023-05-30 Thread Veronica Ndemo
Hi guys I need help.I am just getting started in using Django and I would 
love to get guidance on how to go about the Django framework

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0ef756ca-5641-4cbe-9da5-056e5ed08c0fn%40googlegroups.com.


Re: DJANGO + Google App Engine, Getting Started Tutorial

2010-08-23 Thread Russell Keith-Magee
On Mon, Aug 23, 2010 at 1:01 PM, nobosh  wrote:
> I'm very interested in finding a up-to-date tutorial that shows steps
> for getting DJANGO running on Google App Engine, anyone know of any
> such tutorials?
>
> Surprisingly, Google's App Engine DJANGO docs are almost a year old.
> What gives?

That's something you'll have to take up with Google. The Django
project doesn't have any formal affiliation or support for App Engine.
Any technical or documentation flaws you find should be reported to
Google, not to us.

Yours,
Russ Magee %-)

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO + Google App Engine, Getting Started Tutorial

2010-08-23 Thread Steve Holden
On 8/23/2010 7:29 AM, Russell Keith-Magee wrote:
> On Mon, Aug 23, 2010 at 1:01 PM, nobosh  wrote:
>> I'm very interested in finding a up-to-date tutorial that shows steps
>> for getting DJANGO running on Google App Engine, anyone know of any
>> such tutorials?
>>
>> Surprisingly, Google's App Engine DJANGO docs are almost a year old.
>> What gives?
> 
> That's something you'll have to take up with Google. The Django
> project doesn't have any formal affiliation or support for App Engine.
> Any technical or documentation flaws you find should be reported to
> Google, not to us.
> 
And, by the way, that's "Django", not "DJANGO" - it isn't an acronym,
it's a tribute to a gypsy guitarist.

regards
 Steve
-- 
DjangoCon US 2010 September 7-9 http://djangocon.us/

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO + Google App Engine, Getting Started Tutorial

2010-08-23 Thread Subhranath Chunder
You should try django non-rel project.

Thanks,
Subhranath Chunder.

On Aug 23, 2010 3:08 PM, "nobosh"  wrote:

I'm very interested in finding a up-to-date tutorial that shows steps
for getting DJANGO running on Google App Engine, anyone know of any
such tutorials?

Surprisingly, Google's App Engine DJANGO docs are almost a year old.
What gives?

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
django-users+unsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO + Google App Engine, Getting Started Tutorial

2010-08-23 Thread rafael.nu...@gmail.com
http://www.42topics.com/dumps/django/docs.html

On Mon, Aug 23, 2010 at 9:53 AM, Subhranath Chunder wrote:

> You should try django non-rel project.
>
> Thanks,
> Subhranath Chunder.
>
> On Aug 23, 2010 3:08 PM, "nobosh"  wrote:
>
> I'm very interested in finding a up-to-date tutorial that shows steps
> for getting DJANGO running on Google App Engine, anyone know of any
> such tutorials?
>
> Surprisingly, Google's App Engine DJANGO docs are almost a year old.
> What gives?
>
> 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
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>  --
> 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-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO + Google App Engine, Getting Started Tutorial

2010-08-24 Thread nobosh
Thanks for pointing that out.

On Aug 23, 4:30 am, Steve Holden  wrote:
> On 8/23/2010 7:29 AM, Russell Keith-Magee wrote:> On Mon, Aug 23, 2010 at 
> 1:01 PM,nobosh wrote:
> >> I'm very interested in finding a up-to-date tutorial that shows steps
> >> for getting DJANGO running on Google App Engine, anyone know of any
> >> such tutorials?
>
> >> Surprisingly, Google's App Engine DJANGO docs are almost a year old.
> >> What gives?
>
> > That's something you'll have to take up with Google. The Django
> > project doesn't have any formal affiliation or support for App Engine.
> > Any technical or documentation flaws you find should be reported to
> > Google, not to us.
>
> And, by the way, that's "Django", not "DJANGO" - it isn't an acronym,
> it's a tribute to a gypsy guitarist.
>
> regards
>  Steve
> --
> DjangoCon US 2010 September 7-9http://djangocon.us/

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Having a tough time getting started with Django

2011-01-05 Thread Peter L. Berghold
OK:  Trying to get a handle on getting started with Django and like I
always do when learning a new environment I've dived in head first. 

Here is an error message I'm getting. 

pe...@slcjwebapp0:~/agilitystewards$ python manage.py syncdb
Error: Couldn't install apps, because there were errors in one or more
models:
agilitystewards: __init__() got an unexpected keyword argument
'max_length'

Now, my models file almost looks like the example that I saw on the
Django web site and here it is: 

pe...@slcjwebapp0:~/agilitystewards$ cat models.py
from django.db import models


class Person(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)

class Person2(models.Model):
given_name=models.CharField(max_length=40)
surname= models.CharField(max_length=40)

class Account (models.Model):
person = models.ForeignKey(Person)
login_id = models.CharField(max_length=15)
password = models.CharField(max_length=30)
lastLogin = models.DateTimeField()


class Dog (models.Model):
person = models.ForeignKey(Person)
callname = models.CharField(max_length=20)
jump_height = models.IntegerField()

class Venue (models.Model):
name = models.CharField(max_length=30)
abbr = models.CharField(max_length=10)

class CompeteLevel (models.Model):
venue = models.ForeignKey(Venue)
name = models.CharField(max_length=50)
abbr = models.CharField(max_length=8)

class EventClassType (models.Model):
venue = models.ForeignKey(Venue)
name = models.CharField(max_length=50)
abbr = models.CharField(max_length=8)

class Club (models.Model):
name = models.CharField(max_length=30)
abbr = modesl.CharField(max_length=10)

class Trial (models.Model):
venue = models.ForeignKey(Venue)
club = models.ForeignKey(Club)
name = models.CharField(max_length=50)

RUNNING_ORDER_CHOICES = (
('B','Big to Small'),
('S','Small to Big')
);

class TrialDate(models.Model):
trial = models.ForeignKey(Trial)
day_date = Models.DateField
running_order =
Models.CharField(max_length=1,choices=RUNNING_ORDER_CHOICES)
nrings = Models.IntegerField()

class Ring(models.Model):
trialDate = models.ForeignKey(TrialDate)
ringHandle = Models.CharField(max_length=30)



Nothing really fancy there. 

Here is the settings.py file. 

pe...@slcjwebapp0:~/agilitystewards$ cat settings.py
# Django settings for agilitystewards project.

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
 ('Peter L. Berghold', 'pe...@berghold.net'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = 'mysql'   # 'postgresql_psycopg2',
'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'agilitystewards' # Or path to database file
if using sqlite3.
DATABASE_USER = 'agilitystewards' # Not used with sqlite3.
DATABASE_PASSWORD = '*' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost. Not
used with sqlite3.
DATABASE_PORT = '' # Set to empty string for default. Not
used with sqlite3.

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as
your
# system time zone.
TIME_ZONE = 'America/New_York'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as
not
# to load the internationalization machinery.
USE_I18N = True

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = ''

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com";, "http://example.com/media/";
MEDIA_URL = ''

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to
use a
# trailing slash.
# Examples: "http://foo.com/media/";, "/media/".
ADMIN_MEDIA_PREFIX = '/media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = '***'

# List of callables that know how to import templates from various
sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
# 'django.template.loaders.eggs.load_templ

Getting started with Django workshop - Nottingham 18 May

2012-03-27 Thread Erskine Design
Hi - we're holding a workshop for developers interested in getting
stuck into Django.

It’ll cover all the essentials including:

* Setting up a new project
* Package management
* Database migration with South
* The model, view template structure
* Working with forms
* Customising the admin interface

Then you’ll put it all into action by building a Tumblog. By the end
of the workshop you should have all the necessary skills to start
developing with Django.

Andrew Godwin will be opening the workshop with an insight into
Django’s architecture, an update on the new features just released in
1.4 and some insights into the often-missed secrets of Django. He’ll
also be on hand throughout the workshop to chat and answer questions.

Andrew is a co-founder of ep.io, a Python platform-as-a-service (PaaS)
hosting provider. He is also a Django core contributor and is one of
the creators of South, a tool that brings migrations to Django
applications. When it comes to Django there are few more knowledgeable
people, so we’re delighted to have him.

We've kept costs to a minimum and included a special rate for students
(if you register as a student, please bring your ID along to the event
registration).

Here's how the workshop will run...

12:00: Arrival, lunch (included)
12:45: Welcome
12:50: Andrew Godwin - Django’s architecture: the good, bad and ugly,
update on 1.4 features and the often-missed secrets of Django
13:10: Q&A
13:30: Workshop session one - Introduction to various Django elements
15:15: Break
15:30 Workshop session two- Build a Tumblog with Django
17:15: Washup, Q&A
18:00: Social

Book via Eventbrite: http://erskineworkshops.eventbrite.co.uk/

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



Re: Finding Help in getting started in Django

2023-05-30 Thread Muhammad Juwaini Abdul Rahman
Getting started by doing. Django official site have their own tutorial that
you can follow line by line.

On Tue, 30 May 2023 at 22:55, Veronica Ndemo 
wrote:

> Hi guys I need help.I am just getting started in using Django and I would
> love to get guidance on how to go about the Django framework
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0ef756ca-5641-4cbe-9da5-056e5ed08c0fn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/0ef756ca-5641-4cbe-9da5-056e5ed08c0fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFKhtoTs-9HsbSHf5gwzaWR4Oiqfxdz5A4CjrbLb%3Dfd92cGjUg%40mail.gmail.com.


Re: Finding Help in getting started in Django

2023-05-30 Thread Bhuvnesh Sharma
Hi Veronica,
  You can start from the official documentation. Django has one of the best
documentations in the world , just in case you are lost, here's a link from
where you can create your first application :
https://docs.djangoproject.com/en/4.2/intro/tutorial01/

Regards,
Bhuvnesh

On Tue, May 30, 2023 at 8:27 PM Muhammad Juwaini Abdul Rahman <
juwa...@gmail.com> wrote:

> Getting started by doing. Django official site have their own tutorial
> that you can follow line by line.
>
> On Tue, 30 May 2023 at 22:55, Veronica Ndemo 
> wrote:
>
>> Hi guys I need help.I am just getting started in using Django and I would
>> love to get guidance on how to go about the Django framework
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/0ef756ca-5641-4cbe-9da5-056e5ed08c0fn%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/0ef756ca-5641-4cbe-9da5-056e5ed08c0fn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFKhtoTs-9HsbSHf5gwzaWR4Oiqfxdz5A4CjrbLb%3Dfd92cGjUg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFKhtoTs-9HsbSHf5gwzaWR4Oiqfxdz5A4CjrbLb%3Dfd92cGjUg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BZJHEo_POs-5%3DsuKhQCqD3O1nWTg-tX05RHqpHj6ERVNHLUoQ%40mail.gmail.com.


Re: Finding Help in getting started in Django

2023-05-30 Thread psyMaster Code
Congratulations,
You did one of the greatest choice
In the beginning, the documentation of django is awsome and also infinity,

You can go through the 7 first steps of doc, then get start the django rest
framework on

https://www.django-rest-framework.org/

After that you can find out more and more project to try and learn while
you're enjoying.

It is important that during your lessons, you try your ideas too, after a
while just do projects alone.

You can find some UI design or some website and try to make APIs accourding
to the logic that you see

Hope It could help you
Best wishes

On Tue, 30 May 2023, 19:28 Muhammad Juwaini Abdul Rahman, 
wrote:

> Getting started by doing. Django official site have their own tutorial
> that you can follow line by line.
>
> On Tue, 30 May 2023 at 22:55, Veronica Ndemo 
> wrote:
>
>> Hi guys I need help.I am just getting started in using Django and I would
>> love to get guidance on how to go about the Django framework
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/0ef756ca-5641-4cbe-9da5-056e5ed08c0fn%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/0ef756ca-5641-4cbe-9da5-056e5ed08c0fn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFKhtoTs-9HsbSHf5gwzaWR4Oiqfxdz5A4CjrbLb%3Dfd92cGjUg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFKhtoTs-9HsbSHf5gwzaWR4Oiqfxdz5A4CjrbLb%3Dfd92cGjUg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKm35Rs7WrRhufo69AXT3LBbZHcOjw7WqPT70x_Xx4YGpLLYjA%40mail.gmail.com.


Re: Finding Help in getting started in Django

2023-05-31 Thread DieHardMan 300
I'd like to give some advice before start your Django journey and Django 
project configurations
-- Before Start Django --
1. master Python "class" bacause you might use django class-based view a 
lot, learn "decorator" and standard library "datetime" and "re"
2. choose "Python version" for your django project, I recommend Python 3.10 
or 3.11. You should check current installed Python version
in your terminal --> py --version
** if you use Unix OS like MacOS or Linux, type "python3" instead of "py"
3. I highly recommend create virtual environment for each django project, 
install virtualenv with pip
windows cmd --> py -m pip install virtualenv
then --> py -m virtualenv app-env
macos terminal --> python3 -m pip install virtualenv
then --> python3 -m virtualenv app-env
4. activate virtual environment you just created
windows cmd --> app-env\Scripts\activate.bat   or  
 app-env\Scripts\activate
macos terminal --> source/bin/activate
to stop virtualenv just type --> deactivate
5. install django latest version via pip (you must activate virtualenv 
first)
--> py -m pip install django
-- Start Django --
1. start new django project (don't forget to activate virtualenv first)
--> django-admin startproject my-app
2. go inside project folder and create "requirements.txt" and type all 
requirement library for your project
   --- requirements.txt ---
django >= 4.2.0, < 4.3.0
wheel >= 0.4.0
ipython >= 8.11.0   # python shell for django project
python-decouple >= 3.7.0# for hiding sensitive data in settings.py 
before uploading to git
setuptools >= 67.7.0
psycopg >= 3.0.0   # postgresql database driver. if you 
use django 4.1 or lower you must install psycopg2 instead of psycopg
 mysqlclient => 2.1.1# mysql database driver. if you 
already use postgresql you don't need this
3. install specified dependencies
--> py -m pip install -r requirements.txt
for upgrade your dependencies --> py -m pip install --upgrade -r 
requirements.txt
by doing this you have more control to your project dependencies
for example if you specified "django >= 4.2.0, < 4.3.0" it will upgrade 
django between 4.2.0 to 4.2.* but never 4.3.0
4. in your main project directory it will have 3 files now
my-app,  manage.py  and  requirements.txt
5. open "settings.py" in "my-app"
first thing you need to be cautious is SECRET_KEY constant. You must 
never lose it or expose this to public that's why "python-decouple" library 
needed
for more information https://pypi.org/project/python-decouple/
6. in DATABASE section change it to your database
--- for postgresql ---
DATABASES = {
'default': {
ALLOWED_HOSTS='localhost'
DATABASE_ENGINE='django.db.backends.postgresql'
DATABASE_NAME='mydatabase'
DATABASE_USER='root'
DATABASE_PASSWORD=''
DATABASE_HOST='localhost'
DATABASE_PORT='5432'
}
}
--- for mysql ---
DATABASES = {
'default': {
ALLOWED_HOSTS='localhost'
DATABASE_ENGINE='django.db.backends.mysql'
DATABASE_NAME='mydatabase'
DATABASE_USER='root'
DATABASE_PASSWORD=''
DATABASE_HOST='localhost'
DATABASE_PORT='3306'
}
add your "user" and "password", both database port above are default port 
though
7. start your first database migrate
--> py manage.py migrate

Now go for Django Tutorial --> https://docs.djangoproject.com/en/4.2/
I hope this help you avoid some problems in the future.

ในวันที่ วันอังคารที่ 30 พฤษภาคม ค.ศ. 2023 เวลา 21 นาฬิกา 56 นาที 14 วินาที 
UTC+7 Veronica Ndemo เขียนว่า:

Hi guys I need help.I am just getting started in using Django and I would 
love to get guidance on how to go about the Django framework

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c3ccfae8-1ca0-4b02-98b6-e7d8b32776a2n%40googlegroups.com.


Re: Finding Help in getting started in Django

2023-05-31 Thread DieHardMan 300
I'd like to give some advice before start your Django journey and Django 
project configurations
-- Before Start Django --
1. master Python "class" bacause you might use django class-based view a 
lot, learn "decorator" and standard library "datetime" and "re"
2. choose "Python version" for your django project, I recommend Python 3.10 
or 3.11. You should check current installed Python version
in your terminal --> py --version
** if you use Unix OS like MacOS or Linux, type "python3" instead of "py"
3. I highly recommend create virtual environment for each django project, 
install virtualenv with pip
windows cmd --> py -m pip install virtualenv
then --> py -m virtualenv app-env
macos terminal --> python3 -m pip install virtualenv
then --> python3 -m virtualenv app-env
4. activate virtual environment you just created
windows cmd --> app-env\Scripts\activate.bat   or  
 app-env\Scripts\activate
macos terminal --> source/bin/activate
to stop virtualenv just type --> deactivate
5. install django latest version via pip (you must activate virtualenv 
first)
--> py -m pip install django
-- Start Django --
1. start new django project (don't forget to activate virtualenv first)
--> django-admin startproject my-app
2. go inside project folder and create "requirements.txt" and type all 
requirement library for your project
   --- requirements.txt ---
django >= 4.2.0, < 4.3.0
wheel >= 0.4.0
ipython >= 8.11.0   # python shell for django project
python-decouple >= 3.7.0# for hiding sensitive data in settings.py 
before uploading to git
setuptools >= 67.7.0
psycopg >= 3.0.0   # postgresql database driver. if you 
use django 4.1 or lower you must install psycopg2 instead of psycopg
 mysqlclient => 2.1.1# mysql database driver. if you 
already use postgresql you don't need this
3. install specified dependencies
--> py -m pip install -r requirements.txt
for upgrade your dependencies --> py -m pip install --upgrade -r 
requirements.txt
by doing this you have more control to your project dependencies
for example if you specified "django >= 4.2.0, < 4.3.0" it will upgrade 
django between 4.2.0 to 4.2.* but never 4.3.0
4. in your main project directory it will have 3 files now
my-app,  manage.py  and  requirements.txt
5. open "settings.py" in "my-app"
first thing you need to be cautious is SECRET_KEY constant. You must 
never lose it or expose this to public that's why "python-decouple" library 
needed
for more information https://pypi.org/project/python-decouple/
6. in DATABASE section change it to your database
--- for postgresql ---
DATABASES = {
'default': {
DATABASE_ENGINE='django.db.backends.postgresql'
DATABASE_NAME='mydatabase'
DATABASE_USER='root'
DATABASE_PASSWORD=''
DATABASE_HOST='localhost'
DATABASE_PORT='5432'
}
}
--- for mysql ---
DATABASES = {
'default': {
ALLOWED_HOSTS='localhost'
DATABASE_ENGINE='django.db.backends.mysql'
DATABASE_NAME='mydatabase'
DATABASE_USER='root'
DATABASE_PASSWORD=''
DATABASE_HOST='localhost'
DATABASE_PORT='3306'
}
add your "user" and "password", both database port above are default port 
though
7. start your first database migrate
--> py manage.py migrate

Now go for Django Tutorial --> https://docs.djangoproject.com/en/4.2/
I hope this help you avoid some problems in the future.

ในวันที่ วันอังคารที่ 30 พฤษภาคม ค.ศ. 2023 เวลา 21 นาฬิกา 56 นาที 14 วินาที 
UTC+7 Veronica Ndemo เขียนว่า:

> Hi guys I need help.I am just getting started in using Django and I would 
> love to get guidance on how to go about the Django framework

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8f7da283-844b-4fd3-aa73-324a5ada7d7cn%40googlegroups.com.


Re: Finding Help in getting started in Django

2023-05-31 Thread RANGA BHARATH JINKA
Hi,

Go through this quick start tutorial and understand. You can do this. It is
very easy.

https://www.django-rest-framework.org/tutorial/quickstart/

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Wed, 31 May 2023, 2:16 pm DieHardMan 300, 
wrote:

> I'd like to give some advice before start your Django journey and Django
> project configurations
> -- Before Start Django --
> 1. master Python "class" bacause you might use django class-based view a
> lot, learn "decorator" and standard library "datetime" and "re"
> 2. choose "Python version" for your django project, I recommend Python
> 3.10 or 3.11. You should check current installed Python version
> in your terminal --> py --version
> ** if you use Unix OS like MacOS or Linux, type "python3" instead of "py"
> 3. I highly recommend create virtual environment for each django project,
> install virtualenv with pip
> windows cmd --> py -m pip install virtualenv
> then --> py -m virtualenv app-env
> macos terminal --> python3 -m pip install virtualenv
> then --> python3 -m virtualenv app-env
> 4. activate virtual environment you just created
> windows cmd --> app-env\Scripts\activate.bat   or
>  app-env\Scripts\activate
> macos terminal --> source/bin/activate
> to stop virtualenv just type --> deactivate
> 5. install django latest version via pip (you must activate virtualenv
> first)
> --> py -m pip install django
> -- Start Django --
> 1. start new django project (don't forget to activate virtualenv first)
> --> django-admin startproject my-app
> 2. go inside project folder and create "requirements.txt" and type all
> requirement library for your project
>--- requirements.txt ---
> django >= 4.2.0, < 4.3.0
> wheel >= 0.4.0
> ipython >= 8.11.0   # python shell for django project
> python-decouple >= 3.7.0# for hiding sensitive data in settings.py
> before uploading to git
> setuptools >= 67.7.0
> psycopg >= 3.0.0   # postgresql database driver. if
> you use django 4.1 or lower you must install psycopg2 instead of psycopg
>  mysqlclient => 2.1.1# mysql database driver. if you
> already use postgresql you don't need this
> 3. install specified dependencies
> --> py -m pip install -r requirements.txt
> for upgrade your dependencies --> py -m pip install --upgrade -r
> requirements.txt
> by doing this you have more control to your project dependencies
> for example if you specified "django >= 4.2.0, < 4.3.0" it will
> upgrade django between 4.2.0 to 4.2.* but never 4.3.0
> 4. in your main project directory it will have 3 files now
> my-app,  manage.py  and  requirements.txt
> 5. open "settings.py" in "my-app"
> first thing you need to be cautious is SECRET_KEY constant. You must
> never lose it or expose this to public that's why "python-decouple" library
> needed
> for more information https://pypi.org/project/python-decouple/
> 6. in DATABASE section change it to your database
> --- for postgresql ---
> DATABASES = {
> 'default': {
> DATABASE_ENGINE='django.db.backends.postgresql'
> DATABASE_NAME='mydatabase'
> DATABASE_USER='root'
> DATABASE_PASSWORD=''
> DATABASE_HOST='localhost'
> DATABASE_PORT='5432'
> }
> }
> --- for mysql ---
> DATABASES = {
> 'default': {
> ALLOWED_HOSTS='localhost'
> DATABASE_ENGINE='django.db.backends.mysql'
> DATABASE_NAME='mydatabase'
> DATABASE_USER='root'
> DATABASE_PASSWORD=''
> DATABASE_HOST='localhost'
> DATABASE_PORT='3306'
> }
> add your "user" and "password", both database port above are default port
> though
> 7. start your first database migrate
> --> py manage.py migrate
>
> Now go for Django Tutorial --> https://docs.djangoproject.com/en/4.2/
> I hope this help you avoid some problems in the future.
>
> ในวันที่ วันอังคารที่ 30 พฤษภาคม ค.ศ. 2023 เวลา 21 นาฬิกา 56 นาที 14
> วินาที UTC+7 Veronica Ndemo เขียนว่า:
>
>> Hi guys I need help.I am just getting started in using Django and I would
>> love to get guidance on how to go about the Django framework
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users

Help getting started.....I think it is installed correctly

2011-01-01 Thread Anthony Pearce
Quote from "Writing your first Django app, part 1":

>From the command line, cd into a directory where you’d like to store
your code, then run the command django-admin.py startproject mysite.
This will create a mysite directory in your current directory.

Put your code in some directory outside of the document root, such as /
home/mycode.


OK, please explain where /hom/mycode should be located.  Is it
directly on the C:, or like I have a www folder for playing with html,
or within the Python directory somewhere?   Sorry, but I'm looking at
this again for the first time in over a year, and need a bump start.

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



  1   2   >