Re: Problems creating django project in Windows 7

2012-03-09 Thread Jason
Pycharm is awesome. I've run it from WindowsXP/Windows7/Ubuntu/OSX and
it's great.

In terms of cross platform compatibility, I also rarely run into
anything which I think speaks pretty highly of Python and Django. The
Virtual Environments really help a lot.

Most of the development I do is locally and Pycharm offers some great
tools. So even if I plan to deploy into Oracle or MySQL I'm usually
just using SQLite locally. Django is great at exporting the data/
fixtures easily so switching the backend for production is very
painless.

All that being said, I think anyone just starting out (I sound like
some super experienced veteran - I'm not) should just run on Linux
because it will be the least hassle all around. Plus if it's something
you're going to host, you'd be nuts to host it on Windows.


On Mar 8, 4:54 pm, Matteius  wrote:
> I would like to weigh in on this discussion because I started out
> developing Django apps fairly platform agnostic in college, meaning
> that I worked on the apps on a variety of systems (although not too
> much on macs).  My big project has been Django-Classcomm (http://
> classcomm.googlecode.com/).  Well so now I develop Django apps
> professionally in a land of mac developers/engineers I run Windows
> 7.
>
> I have to say I don't really run my Django apps too much on Windows
> natively, but I definitely develop them natively on Windows 7 and most
> of my app spaces run in the local test environment from within the
> windows file system (well technically they all do!).   Well so my
> solution is I run Ubuntu server in Virtual Box (http://
> virtualbox.org/) and I use host only adapter to connect to my host
> from Windows 7 and I use the libraries versions as spec'ed for
> production deployments.  My projects can live on Windows and run from
> the linux server using the Virtual Box Shared Folders addition that
> you get with installing the VirtualBox Guest Additions iso when you
> load up Ubuntu for the first time.
>
> Python is generally pretty good about running this way, for some of
> the java stuff sometimes I have to copy it locally to withinside the
> VM for ant commands to function properly.   This is the ideal solution
> because you can use all your favorite tools like PyCharm to edit and
> develop natively on Windows and as long as your VM is running you can
> connect with GUI and cygwin to do fairly instantaneous development.
>
> I still occasionally think about getting my projects fully running on
> the Windows side so that I can tie them to the PyCharm IDE and take
> advantage of those types of development tools.  However for now this
> desire has always been trumped by the inconvenience of some of the
> library support with the convenience of using a VM and spending most
> of your time actually making traction.  Maybe if I wait long enough
> the IDEs will have better abilities to plugin to running services on
> VMs ...  That is generally how computing works, if you wait things
> will get better and you can save a lot of effort.   But when you are
> starting or have a very specific goal, going to the effort can really
> pay off.

-- 
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 creating django project in Windows 7

2012-03-08 Thread Mark Jones
I use WingIDE and one license covers all 3 platforms for a developer.
And the guys that make it are incredibly nice and helpful with
features and how to use.

I Highly recommend it.  (30 day free trial too)

-- 
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 creating django project in Windows 7

2012-03-08 Thread Matteius
I would like to weigh in on this discussion because I started out
developing Django apps fairly platform agnostic in college, meaning
that I worked on the apps on a variety of systems (although not too
much on macs).  My big project has been Django-Classcomm (http://
classcomm.googlecode.com/).  Well so now I develop Django apps
professionally in a land of mac developers/engineers I run Windows
7.

I have to say I don't really run my Django apps too much on Windows
natively, but I definitely develop them natively on Windows 7 and most
of my app spaces run in the local test environment from within the
windows file system (well technically they all do!).   Well so my
solution is I run Ubuntu server in Virtual Box (http://
virtualbox.org/) and I use host only adapter to connect to my host
from Windows 7 and I use the libraries versions as spec'ed for
production deployments.  My projects can live on Windows and run from
the linux server using the Virtual Box Shared Folders addition that
you get with installing the VirtualBox Guest Additions iso when you
load up Ubuntu for the first time.

Python is generally pretty good about running this way, for some of
the java stuff sometimes I have to copy it locally to withinside the
VM for ant commands to function properly.   This is the ideal solution
because you can use all your favorite tools like PyCharm to edit and
develop natively on Windows and as long as your VM is running you can
connect with GUI and cygwin to do fairly instantaneous development.

I still occasionally think about getting my projects fully running on
the Windows side so that I can tie them to the PyCharm IDE and take
advantage of those types of development tools.  However for now this
desire has always been trumped by the inconvenience of some of the
library support with the convenience of using a VM and spending most
of your time actually making traction.  Maybe if I wait long enough
the IDEs will have better abilities to plugin to running services on
VMs ...  That is generally how computing works, if you wait things
will get better and you can save a lot of effort.   But when you are
starting or have a very specific goal, going to the effort can really
pay off.

-- 
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 creating django project in Windows 7

2012-03-08 Thread Mark Jones
I've created a manage.cmd and put it on my path so I can type less
while on windows

the command is just
@echo off
python manage.py %*

this makes it more like linux

The "@echo off" part is important because mange dumpdata >filename
doesn't want to see the command line echoed into the json file.

-- 
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 creating django project in Windows 7

2012-03-08 Thread Jani Tiainen
Well I've been successfully working in Windows with Django and Python 
last 3 years without much of troubles. Few libraries that don't play 
nice with virtualenvs.


So first things first:

Make sure that you install only 32 bit Python for windows. 64 bit will 
work but most of the libraries are only for 32 bit and you just get 
troubles for that.


Next thing after installin Python is to install of course easy_install, 
pip and virtualenv.


Then steps are rather easy:

go to directory of your choice.

Create virtualenv:
C:\my-venvs > virtualenv myenv --no-site-packages

Goto inside virtual environment created:
C:\my-venvs > cd myenv

Activate virtual environment:
C:\my-venvs\myenv > scripts\activate.bat

Install Django:
(myenv) C:\my-venvs\myenv > pip install django

Start new project:
(myenv) C:\my-venvs\myenv > django-admin startproject myproj

If you need I can do blog post about my current instructions how to 
setup whole dev environment from the ground up in Windows environment.


8.3.2012 14:07, Javier Guerra Giraldez kirjoitti:

On Wed, Mar 7, 2012 at 11:03 PM, Mika  wrote:

But I'm just curious about the
objective advantages of Ubuntu over Windows vis a vis django?


all OpenSource tools and libraries are developed first and foremost to
work on unix-like systems.  while most of them do work very well on
windows too, it's always a second-class system.

conversely, if you develop on .NET, you can deploy on Linux if you
want, but it's always a step behind on that stack.  it's much easier
to just go with the preferred platform.


Why would
Windows cause headaches down the road?


there are several things: maybe you'd want to use IIS which
doesn't play well with FastCGI / WSGI.  or NGINX, which runs great on
POSIX, but on windows you're limited in the choice of backtransports.
or uWSGI, which has a lot of very handy process control abilities...
but few of them works on non-POSIX environments.  or you want Redis as
a mind-numbingly-fast on-memory database, but it's unsupported on
windows because it can't do persistence without sane fork()
primitives.


Also, is VMWare or Virtualbox
necessary? How would it benefit my development environment?


if you want to try a new OS, you have two options: install on a real
machine, or on a virtual machine.  if you certainly can keep your
windows OS and tools and just use a linux machine as a test server.
since it doesn't need a lot of power for that, you can avoid
dedicating a real machine by using a virtual one.



--

Jani Tiainen

--
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 creating django project in Windows 7

2012-03-08 Thread Javier Guerra Giraldez
On Wed, Mar 7, 2012 at 11:03 PM, Mika  wrote:
> But I'm just curious about the
> objective advantages of Ubuntu over Windows vis a vis django?

all OpenSource tools and libraries are developed first and foremost to
work on unix-like systems.  while most of them do work very well on
windows too, it's always a second-class system.

conversely, if you develop on .NET, you can deploy on Linux if you
want, but it's always a step behind on that stack.  it's much easier
to just go with the preferred platform.

> Why would
> Windows cause headaches down the road?

there are several things: maybe you'd want to use IIS which
doesn't play well with FastCGI / WSGI.  or NGINX, which runs great on
POSIX, but on windows you're limited in the choice of backtransports.
or uWSGI, which has a lot of very handy process control abilities...
but few of them works on non-POSIX environments.  or you want Redis as
a mind-numbingly-fast on-memory database, but it's unsupported on
windows because it can't do persistence without sane fork()
primitives.

> Also, is VMWare or Virtualbox
> necessary? How would it benefit my development environment?

if you want to try a new OS, you have two options: install on a real
machine, or on a virtual machine.  if you certainly can keep your
windows OS and tools and just use a linux machine as a test server.
since it doesn't need a lot of power for that, you can avoid
dedicating a real machine by using a virtual one.

-- 
Javier

-- 
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 creating django project in Windows 7

2012-03-07 Thread Mika
Thanks Jason. Putting python in front of 'django-admin' did work. I
appreciate your help with this.  I'm relatively new to Python and
programming in general. All I've ever used is Windows and I don't know
much about Linux-related operating systems. I'll probably go with
Ubuntu because it seems everyone who knows what they're doing is using
Linux(and Paul Graham mentions that just about all of Y Combinator's
startups use either Mac OSX or Linux). But I'm just curious about the
objective advantages of Ubuntu over Windows vis a vis django?Why would
Windows cause headaches down the road? Also, is VMWare or Virtualbox
necessary? How would it benefit my development environment?

thnx

On Mar 7, 12:35 pm, Jason  wrote:
> Use python before all your commands. Even if you setup windows to
> automatically work without this, it's still a really good habit to get
> into.
>
> python django-admin.py
>
> My guess is that either will work or you have a problem with your
> python environment.
>
> Eventually you'll stop using Windows for Django development (I was
> like you once!). I suggest installing VirtualBox or VMWare (or
> whatever else) and do all this stuff from Ubuntu. It will save you
> many, many headaches.
>
> On Mar 6, 8:56 pm, Mika  wrote:
>
>
>
>
>
>
>
> > Hi,
> > I uninstalled and reinstalled django to see if that would solve
> > things, but I still can't create a project. Here are the steps I'm
> > taking:
>
> > 1) Made sure the correct path was set so that the command prompt can
> > find the django-admin.py file. Here's the path I set to locate the
> > appropriate folder:  %SystemRoot%\system32;%SystemRoot%;%SystemRoot%
> > \System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:
> > \Python26\;C:\Python26\Scripts
>
> > 2) Went into the command prompt and typed in django-admin.py. It
> > didn't automatically show me any of the available commands as I
> > presume it should have, but it didn't generate any error message
> > either.
>
> > 3) Typed in django-admin.py startproject mysite. I assumed I would
> > then be able to go find the newly created mysite folder in my home
> > directory because that's where it was set to start the project in the
> > prompt
>
> > 4) Went into my user directory(C:\Users\Mika) to find mysite folder,
> > but it wasn't there. I'm not getting any error messages at all either
> > in the command prompt, so I'm not sure what's going on. Please advise.
>
> > thnx
>
> > Mika

-- 
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 creating django project in Windows 7

2012-03-07 Thread Jason
Use python before all your commands. Even if you setup windows to
automatically work without this, it's still a really good habit to get
into.

python django-admin.py

My guess is that either will work or you have a problem with your
python environment.

Eventually you'll stop using Windows for Django development (I was
like you once!). I suggest installing VirtualBox or VMWare (or
whatever else) and do all this stuff from Ubuntu. It will save you
many, many headaches.

On Mar 6, 8:56 pm, Mika  wrote:
> Hi,
> I uninstalled and reinstalled django to see if that would solve
> things, but I still can't create a project. Here are the steps I'm
> taking:
>
> 1) Made sure the correct path was set so that the command prompt can
> find the django-admin.py file. Here's the path I set to locate the
> appropriate folder:  %SystemRoot%\system32;%SystemRoot%;%SystemRoot%
> \System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:
> \Python26\;C:\Python26\Scripts
>
> 2) Went into the command prompt and typed in django-admin.py. It
> didn't automatically show me any of the available commands as I
> presume it should have, but it didn't generate any error message
> either.
>
> 3) Typed in django-admin.py startproject mysite. I assumed I would
> then be able to go find the newly created mysite folder in my home
> directory because that's where it was set to start the project in the
> prompt
>
> 4) Went into my user directory(C:\Users\Mika) to find mysite folder,
> but it wasn't there. I'm not getting any error messages at all either
> in the command prompt, so I'm not sure what's going on. Please advise.
>
> thnx
>
> Mika

-- 
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.



Problems creating django project in Windows 7

2012-03-07 Thread Mika
Hi,
I uninstalled and reinstalled django to see if that would solve
things, but I still can't create a project. Here are the steps I'm
taking:

1) Made sure the correct path was set so that the command prompt can
find the django-admin.py file. Here's the path I set to locate the
appropriate folder:  %SystemRoot%\system32;%SystemRoot%;%SystemRoot%
\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:
\Python26\;C:\Python26\Scripts

2) Went into the command prompt and typed in django-admin.py. It
didn't automatically show me any of the available commands as I
presume it should have, but it didn't generate any error message
either.

3) Typed in django-admin.py startproject mysite. I assumed I would
then be able to go find the newly created mysite folder in my home
directory because that's where it was set to start the project in the
prompt

4) Went into my user directory(C:\Users\Mika) to find mysite folder,
but it wasn't there. I'm not getting any error messages at all either
in the command prompt, so I'm not sure what's going on. Please advise.

thnx

Mika

-- 
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.