Re: Instant Django for Mac?

2008-06-01 Thread cjl

MM:

I've never used it, but you might want to check out:

http://bitnami.org/stack/djangostack

It might be what you are looking for.

-cjl
--~--~-~--~~~---~--~~
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: Instant Django for Mac?

2008-06-01 Thread Russell Keith-Magee

On Sun, Jun 1, 2008 at 6:14 PM, Michael Meier <[EMAIL PROTECTED]> wrote:
>
> What I want is a local PostgreSQL database server on my Macbook, so I
> tried all Tutorials I've found on the internet, most with MacPorts.

Sounds like you want:

http://www.postgresqlformac.com/

Its unofficial, but it works fine for my purposes.

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: Instant Django

2007-08-07 Thread zorba

> If you get a chance, check it out and drop me an email telling me what
> you think.

One small problem with instant-django and old local python
installation:

- Instant django (latest version)
- local python 2.4.3 (!) installation

Problem:
When using sqlite db backend. It seems that django have been looking
for an old module because it has got error on db backend file (sqlite)
about not
finding pysqlite2 (and not sqlite3 module from python 2.5).

After locally upgrading from 2.4.3 to 2.5.1 everything seems to work
just fine.

Author was notified about this issue.

--
Slawek Mikula


--~--~-~--~~~---~--~~
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: Instant Django

2007-07-30 Thread djx

That's a good tutorial thanks for that.  I think the way you described
the workings has helped me a lot in "getting into" django.


--~--~-~--~~~---~--~~
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: Instant Django

2007-07-25 Thread cjl

YML:

OK -- disregard my last post, that was wrong, too, and actually breaks
things worse.

I need to work some more on this, and try to replicate your error.

Could you try downloading again, and trying things out from a "fresh"
environment?

Thanks again,

-cjlesh

On Jul 24, 9:48 pm, cjl <[EMAIL PROTECTED]> wrote:
> YML:
>
> Thanks for the follow up bug report.  It looks like I was using
> ExeMaker incorrectly.
>
> In the utilities folder is a file named 'update.bat'. Change the
> following line:
>
> exemaker %CD%\Utilities\django-admin.py %CD%\Utilities
>
> To read:
>
> exemaker -i %CD%\Python25\python.exe %CD%\Utilities\django-admin.py %CD
> %\Utilities
>
> Then double-click start.bat, and type 'update' and the command prompt,
> and press enter.  This should re-create django-admin.exe using the new
> directives, which specify which python interpreter to use. I am
> curious to see if this solves your problem.  If so, I will update the
> download.
>
> Thanks again,
> cjlesh


--~--~-~--~~~---~--~~
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: Instant Django

2007-07-24 Thread cjl

YML:

Thanks for the follow up bug report.  It looks like I was using
ExeMaker incorrectly.

In the utilities folder is a file named 'update.bat'. Change the
following line:

exemaker %CD%\Utilities\django-admin.py %CD%\Utilities

To read:

exemaker -i %CD%\Python25\python.exe %CD%\Utilities\django-admin.py %CD
%\Utilities

Then double-click start.bat, and type 'update' and the command prompt,
and press enter.  This should re-create django-admin.exe using the new
directives, which specify which python interpreter to use. I am
curious to see if this solves your problem.  If so, I will update the
download.

Thanks again,
cjlesh


--~--~-~--~~~---~--~~
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: Instant Django

2007-07-24 Thread yml

This is half solving the problem. with your fix in the start.bat now
when i launch python it start python on the memory stick  but for some
reasons dajngo-admin.exe call python installed on my computer not the
one in your package.
However this is working fine "E:\instant_django\django>python
Utilities/django-admin.py" but this is not working :
E:\instant_django\django>E:\instant_django\django\Utilities\django-
admin.py
Traceback (most recent call last):
  File "E:\instant_django\django\Utilities\django-admin.py", line 5,
in 
from django.core import management
ImportError: No module named django.core

It seems that django-admin.exe behave like "E:\instant_django\django
\Utilities\django-admin.py" instead of  "python Utilities/django-
admin.py"

Thank you for your effort in helping me.


On Jul 24, 8:45 pm, cjl <[EMAIL PROTECTED]> wrote:
> Thanks again for the bug report, I have found the problem.
>
> Change the 'path' section of start.bat to read:
>
> path = %CD%\Python25;%CD%\Utilities;%CD%\Utilities\svn-
> win32-1.4.4\bin;%CD%\Utilities\exemaker-1.2-20041012;%CD%\Utilities
> \npp.4.1.2.bin;%CD%\Utilities\sqlite-3_4_0;%PATH%
>
> I had %PATH% first, and it needs to come last, because order matters,
> and it needs to find my python before it finds the previously
> installed python.
>
> I will make the change, and upload a new version later.
>
> -cjlesh


--~--~-~--~~~---~--~~
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: Instant Django

2007-07-24 Thread cjl

Thanks again for the bug report, I have found the problem.

Change the 'path' section of start.bat to read:

path = %CD%\Python25;%CD%\Utilities;%CD%\Utilities\svn-
win32-1.4.4\bin;%CD%\Utilities\exemaker-1.2-20041012;%CD%\Utilities
\npp.4.1.2.bin;%CD%\Utilities\sqlite-3_4_0;%PATH%

I had %PATH% first, and it needs to come last, because order matters,
and it needs to find my python before it finds the previously
installed python.

I will make the change, and upload a new version later.

-cjlesh


--~--~-~--~~~---~--~~
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: Instant Django

2007-07-24 Thread cjl

YML:

Thank you for the bug report.

I thought I had tested this use case, but obviously I missed
something. I'll check into it, and get back to you with an answer.

Thanks again,
cjlesh


--~--~-~--~~~---~--~~
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: Instant Django

2007-07-24 Thread yml

Hello,

I have downloaded your package and launch the start.bat
Then in that console I have entered: "django-admin startproject
test_admin"

Unfortunatly the system raises this error message:
"""
Traceback (most recent call last):
  File "E:\instant_django\django\Utilities\django-admin.py", line 5,
in 
from django.core import management
ImportError: No module named django.core
"""
It looks like the system is using my "installed" python and not the
one provided in your package.
Could you please let me know what need to be done to fix this error?

Thank you very much for your effort of making django moveable.
Regards,
yml




On Jul 23, 11:30 pm, cjl <[EMAIL PROTECTED]> wrote:
> Nathan: Thank you for the suggestion, I'm sure you're right. I'll add
> in a start-up message to 'start.bat' the next time I upload an update.
>
> Cam:  Thank you for the kind words. If you do get a change to play
> around with it, I would appreciate feedback and bug reports.
>
> Rob:  I see you read my 'disclaimer'.  I would argue that sipping wine
> in a nice club with a beautiful woman would make anything sound good,
> but I'll admit that I have never done it. I have pounded cheap beer in
> a dirty bar with slutty chicks while listening to AC/DC, and I would
> highly recommend it. By the way, I'm from Buffalo, too.
>
> Strangely enough, and slightly off-topic, I found a Japanese
> translation of my website:http://www.win-django.com/
>
> -cjlesh


--~--~-~--~~~---~--~~
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: Instant Django

2007-07-23 Thread cjl

Nathan: Thank you for the suggestion, I'm sure you're right. I'll add
in a start-up message to 'start.bat' the next time I upload an update.

Cam:  Thank you for the kind words. If you do get a change to play
around with it, I would appreciate feedback and bug reports.

Rob:  I see you read my 'disclaimer'.  I would argue that sipping wine
in a nice club with a beautiful woman would make anything sound good,
but I'll admit that I have never done it. I have pounded cheap beer in
a dirty bar with slutty chicks while listening to AC/DC, and I would
highly recommend it. By the way, I'm from Buffalo, too.

Strangely enough, and slightly off-topic, I found a Japanese
translation of my website: http://www.win-django.com/

-cjlesh


--~--~-~--~~~---~--~~
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: Instant Django

2007-07-23 Thread Nathan Ostgard

Pretty sweet, good job!

I would recommend echoing some info when one runs start.bat. I thought
it wasn't working right at first because it just opened a normal
command prompt. Just telling people a few of the Django commands that
are available to them would probably be enough.

On Jul 23, 8:14 am, cjl <[EMAIL PROTECTED]> wrote:
> Group:
>
> Over the last few weeks I put up a little website called Instant
> Django:
>
> http://www.instantdjango.com
>
> It includes a simple tutorial, and a no-installation-required,
> portable django development environment for windows that can be run
> from a USB thumb drive.
>
> I have just finished a very rough first draft of the tutorial, and I
> am interested in community feedback.
>
> Over the next few weeks I hope to write additional tutorial chapters.
>
> If you get a chance, check it out and drop me an email telling me what
> you think.
>
> -cjlesh


--~--~-~--~~~---~--~~
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: Instant Django

2007-07-23 Thread rtconner

Jazz is good music. I suppose you've never seen a good Jazz trio play
at a nice club while you sip some wine with a lovely woman. Otherwise
you would like Jazz a little more.

On Jul 23, 9:14 am, cjl <[EMAIL PROTECTED]> wrote:
> Group:
>
> Over the last few weeks I put up a little website called Instant
> Django:
>
> http://www.instantdjango.com
>
> It includes a simple tutorial, and a no-installation-required,
> portable django development environment for windows that can be run
> from a USB thumb drive.
>
> I have just finished a very rough first draft of the tutorial, and I
> am interested in community feedback.
>
> Over the next few weeks I hope to write additional tutorial chapters.
>
> If you get a chance, check it out and drop me an email telling me what
> you think.
>
> -cjlesh


--~--~-~--~~~---~--~~
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: Instant Django

2007-07-23 Thread Cam McVey

On 7/23/07, cjl <[EMAIL PROTECTED]> wrote:
> Over the last few weeks I put up a little website called Instant
> Django:
>
> http://www.instantdjango.com


I looked at this earlier today. Excellent work! As a windows user, I
really appreciate your efforts here and I'm going to install a copy
onto my flash drive.

Regards,
Cam


-- 
Cam McVey

--~--~-~--~~~---~--~~
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: instant django

2006-05-07 Thread Eric Walstad

On Saturday 06 May 2006 11:39, ross.lazarusatgmail.com wrote:
> Eric: feel free to "clean up" my script, but maybe take a closer look
> first :-) It does use the csv module for csv - I think I even tested it
> once - but I mostly deal with tab delimited files.

Heh, yeah.  I should keep my mouth shut until I do more studying.  I see you 
are using the csv module's dict reader.  I was thinking that it might do what 
your fguess,and maybe others, do.

Sorry.  I wish I had time to "clean up" (aka, spend a little time playing 
with) your code.  It does look interesting and fun.  But, my wife, daughter 
and work have other plans for my time...

Best,

Eric.

--~--~-~--~~~---~--~~
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: instant django

2006-05-07 Thread julián

ross.lazarusatgmail.com wrote:
> related to my work, but I'm interested to see if there are people
> willing to work on it as a django utility. All suggestions welcomed.
>
Quite interesting for me.
Solicited suggestion (or random thougth) follows.

I have something similar in my some-day-perhaps projects queue. I
thought rather to use a 2 steps approach.
First step is a django application that generates django applications
(it's better than a script to allow anybody to install and test it, and
you have a GUI for free).
Second step is part of the generated application: run a shell script
that create the environment, sync the database, load test data...

It will work like this:

 * The app will allow to upload one or more text files (CSV mainly)
 * File names inspire model names. Field names came from fist line
header.
 * Within a simple wizard UI you can choose the relationship between
models (just a bunch of select boxes with model and field names, KISS
philosophy)
 * Choose app name, and press "generate"
 * You get a tar.gz with python code, ready to un-gzip-tar anywhere,
run a shell script that setup the environment, create database, syncdb
and load test data
 * Test data will be loaded with python code like
MyClassOne(field1="aaa", field2="bbb",
field3=MyClassTwo(field1="ccc")).save()
 * The generated app run like any other, python manage.py runserver...

The app will store uploaded files with some other information (custom
templates, media files...) just to allow later modifications and app
regeneration.

I've take a glance at your script, it seems your approach is more
auto-contained but the target is the same, i.e. to generate easy apps
fast, isn'it?

Difficult to explain in a foreign language. Next time I'll try to
express myself in python.


--~--~-~--~~~---~--~~
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: instant django

2006-05-06 Thread ross.lazarusatgmail.com

Eric: feel free to "clean up" my script, but maybe take a closer look
first :-) It does use the csv module for csv - I think I even tested it
once - but I mostly deal with tab delimited files.

I wonder if you're looking at complexity related to wanting an iterator
for either csv or generic delimited files and to the challenge of
sniffing file types and field types. My plans for this script are
related to my work, but I'm interested to see if there are people
willing to work on it as a django utility. All suggestions welcomed.


--~--~-~--~~~---~--~~
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: instant django

2006-05-06 Thread Eric Walstad

On Saturday 06 May 2006 09:50, [EMAIL PROTECTED] wrote:
> Anyone interested in a django project generator I just hacked up?  Take
> a look at
> http://ross.lazarus.googlepages.com/dJingle.py
>
> It's a python program that loads enough django to create a complete
> project - it takes a delimited file path as the CL parameter, reads the
> header, sniffs column lengths, bangs out a complete sqlite django
> project and app, loads all the data (!) and starts the built-in server.
> Kind of scary. Needs a full 0.95+ django install and sqlite to work of
> course, but py2exe does beckon...
>
> sqlite only so there's no requirement for any backend configuration.
> Seems to work ok on windows if everything's there. The fugly hack I'm
> using to start the built in server and spawn a webbrowser to the new,
> shiny admin interface doesn't work right on linux yet.
>
> Needs lots of work, but the proof of concept is definitely there. If
> anyone else wants to help me with this, please get in touch.

Hey Ross,

I just gave your script a cursory glance.  It looks interesting.  I wonder if 
you considered using the Python csv module.  I think it does a lot of the 
csv/tab drudgery that you are doing near the top of your script.  If it meets 
your needs, it might clean up your script a bit.

Have fun,

Eric.

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