PyPm / Django 1.4?

45 views
Skip to first unread message

Aaron C. de Bruyn

unread,
Jun 1, 2012, 5:28:28 PM6/1/12
to django...@googlegroups.com
I am not a Windows developer--but I was recently asked to port a very small Django app (so it could be run locally using the dev server) on Windows.

The app was developed using Django 1.4, but the ActiveState Package Manager (pypm) installs Django 1.3.  Rather than rewriting some of the code, I'd like to see Django 1.4 available under pypm.  But I am completely unfamiliar with the Windows side of anything Python or Django.

Is there someone I can ping to get the package updated?
Any pointers?

Thanks,

-A

Bill Freeman

unread,
Jun 2, 2012, 12:43:26 PM6/2/12
to django...@googlegroups.com
Have you considered running under a virtualenv and pip installing
exactly what you need?
> --
> 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/-/7q1DdIyDMwIJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

Aaron C. de Bruyn

unread,
Jun 3, 2012, 12:48:54 PM6/3/12
to django...@googlegroups.com
On Sat, Jun 2, 2012 at 9:43 AM, Bill Freeman <ke1...@gmail.com> wrote:
> Have you considered running under a virtualenv and pip installing
> exactly what you need?

Yes--that's what I may end up doing. Just trying to remove a few
steps from the 'install procedure' for a user that already doesn't
like the CLI.

Thanks,

-A

Aaron C. de Bruyn

unread,
Jun 4, 2012, 3:41:10 PM6/4/12
to django...@googlegroups.com
On Sun, Jun 3, 2012 at 9:48 AM, Aaron C. de Bruyn <aa...@heyaaron.com> wrote:
> On Sat, Jun 2, 2012 at 9:43 AM, Bill Freeman <ke1...@gmail.com> wrote:
>> Have you considered running under a virtualenv and pip installing
>> exactly what you need?

Windows is such a nightmare. PyPm doesn't have sqlite packages--they
all show a failure to compile on ActiveState's site. Apparently
they've always failed for every version of Windows ever. Pip wasn't
much help as I need to install Visual Studio to compile the sqlite
libraries. Pass.

I'll give it a shot with MySQL and hope I have better luck.

What do Windows Django developers use for small local databases?
MySQL seems overkill if you're just doing local development on a
Windows box--or as in my case, installing a single-user app that is
shown as a web front-end.

-A

Sells, Fred

unread,
Jun 4, 2012, 4:34:11 PM6/4/12
to django...@googlegroups.com
I just use MySQL. Better the devil you know ...
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
Message has been deleted

Mike Dewhirst

unread,
Jun 4, 2012, 11:41:49 PM6/4/12
to django...@googlegroups.com
On 5/06/2012 10:32am, Dennis Lee Bieber wrote:
> On Mon, 4 Jun 2012 12:41:10 -0700, "Aaron C. de Bruyn"
> <aa...@heyaaron.com> declaimed the following in
> gmane.comp.python.django.user:
>
>> What do Windows Django developers use for small local databases?
>> MySQL seems overkill if you're just doing local development on a
>> Windows box--or as in my case, installing a single-user app that is
>> shown as a web front-end.

I use PostgreSQL on Windows. For me, anything else isn't worth the
brainspace now.

If you are looking for something nicely self-contained and
cross-platform I think Firebird is probably worth a look. I haven't
looked at it for some time now but when I was looking for a dbms which
would be seamlessly stand-alone for single-user apps and client-server
in a network it was the only sensible solution. Everything else required
separate installation and setup for the dbms in a single-user
environment. It would probably work on a smartphone.

I don't know how the Firebird Django backend is progressing but when I
last looked it seemed well advanced.


>>
> Well... I've not done much Django (just deleted my first attempt,
> which goes back to Django 1.1 or so; and never did get beyond the admin
> interface)...
>
> But I tend to do a lot of scratch work using the SQLite3 that is
> part of the standard Windows Python binary installer (though I use
> ActiveState's binary install of Python). I'm not configured to build
> from sources.
>
> OTOH: I do have MySQL running as a server on my desktop machine --
> primarily using the old CherryPy/CherryTemplate system to generate
> static pages for upload to the Bestiaria web-site.

Alec Taylor

unread,
Jun 5, 2012, 2:10:18 AM6/5/12
to django...@googlegroups.com
If the CLI is the only thing stopping others from setting up the
server, then why not write up a neat little installer with a desktop
shortcut to run the Django server?

Easiest method would be to use NSIS to create the installer,
bootstrapping on the packages needed from here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/

Alternatively if you have a bit more time on hand (or your compilers
and whatnot are already setup) bootstrap MinGW onto your NSIS and set
the PATH and modify the necessary Python files accordingly. Then you
wouldn't need to bootstrap anything but distribute
(http://packages.python.org/distribute/) and then you can just
silently run all the pip's and have it virtualenv'd all the way down
to a Desktop shortcut :)

James

unread,
Jun 5, 2012, 7:51:16 AM6/5/12
to django...@googlegroups.com
I use Postgres for this.

You will need to install visual studios 2008. Not sure why you said that is an issue. I've never had a problem on several installations.

However, pscyopg2 has binaries, that is what I use.

From there you can just virtualnv / pip.

Aaron C. de Bruyn

unread,
Jun 5, 2012, 3:41:18 PM6/5/12
to django...@googlegroups.com
On Mon, Jun 4, 2012 at 12:41 PM, Aaron C. de Bruyn <aa...@heyaaron.com> wrote:
> Windows is such a nightmare.  PyPm doesn't have sqlite packages--they
> all show a failure to compile on ActiveState's site.  Apparently
> they've always failed for every version of Windows ever.  Pip wasn't
> much help as I need to install Visual Studio to compile the sqlite
> libraries.  Pass.

I finally found a decent solution that worked for me.
BitNami has a free download called DjangoStack
(http://bitnami.org/stack/djangostack) that apparently installs the
sqlite libs, apache, and a few other things under c:\prog...\bitnami
django stack\* along with a folder under your user profile where you
can drop your django projects. With a few tweaks to an INI file, you
can access your projects at localhost:8080/myproject/.

The installer is dead simple and includes options for Postgres, MySQL,
and Sqlite.

Definitely eases the install for the end-user. After installing the
stack, I can give them an ini file to copy into the c:\prog... folder
and tell them to unzip my file into the django projects folder and
reboot.

I doubt I'll run into dependency issues as most of the django apps
don't require compiling--and the package already includes Sqlite and
PIL.

-A
Reply all
Reply to author
Forward
0 new messages