Re: django 1.4 : gunicorn can't find static files. settings option

2012-05-15 Thread huseyin yilmaz
For development, you could add this to main urls.py like this.
(r'^static/(?P.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_ROOT, 'show_indexes':True}),

But for production use your web server to serve static files.

At least this is how I solved it. I hope that helps.

On May 16, 5:56 am, Bolang  wrote:
> Hi,
> I just started to using django 1.4 with gunicorn 0.14.3
> With ./manage.py runserver , i can start django properly and django can
> find my files in static directory.
> Then i use gunicorn and then gunicorn can't find my files in static
> directory.
>
> I have tried these combination
> gunicorn myproject.wsgi:application --settings myproject.settings
> gunicorn myproject.wsgi:application --settings /absolute/path/to/settings.py
> ./manage.py run_gunicorn --settings=myproject.settings
>
> All of the commands can start django, but can't find my files in static
> directory
>
> I also found this issuehttps://github.com/benoitc/gunicorn/issues/322
> But, i can't find the solution from that page.
>
> Any kind of help will be appreciated
>
> 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: Process Related Object when Saving

2012-05-15 Thread ghachey
Hi again;

Looking at the source code I realised that form.save_m2m() must be
called.

def save_related(self, request, form, formsets, change):

form.save_m2m()
for formset in formsets:
self.save_formset(request, form, formset, change=change)

if not change:
# Generate and send report only if creating for first time
(insert)
parent_obj = form.instance
generate_pdf(parent_obj)

I think the above does what I wanted; so far so good anyway.

--
GH

On May 16, 3:55 pm, ghachey  wrote:
> Hi;
>
> I am trying to generate a printable report when saving objects for the
> first time. This is easy enough except I can't easily access related
> objects by overriding save() as they are not saved yet, nor are they
> available within the save() method.
>
> The new ModelAdmin.save_related() in Django 1.4 method seems to have
> been created for just my need. The docs say: "Here you can do any pre-
> or post-save operations for objects related to the parent. Note that
> at this point the parent object and its form have already been saved."
> From what I read this seems perfect for my use case.
>
> I tried overriding the method as follows:
>
> def save_related(self, request, form, formsets, change):
>
>         if not change:
>             # Generate and send report only if creating for first time
>             parent_obj = form.instance
>             import pdb; pdb.set_trace();
>
> 1) At that point when I look into the database I don't see the saved
> parent object? This seems to contradict the docs.
> 2) I can access cleaned data from the formsets, but is there an easy
> way to simply get the related instances as I would with
> parent.child_set.all(). This would make my life much easier as I have
> written the code already to print a LaTeX report from any Django model
> (by looping _meta.fields approach).
>
> I would appreciate any help.
>
> --
> GH

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



Process Related Object when Saving

2012-05-15 Thread ghachey
Hi;

I am trying to generate a printable report when saving objects for the
first time. This is easy enough except I can't easily access related
objects by overriding save() as they are not saved yet, nor are they
available within the save() method.

The new ModelAdmin.save_related() in Django 1.4 method seems to have
been created for just my need. The docs say: "Here you can do any pre-
or post-save operations for objects related to the parent. Note that
at this point the parent object and its form have already been saved."
>From what I read this seems perfect for my use case.

I tried overriding the method as follows:

def save_related(self, request, form, formsets, change):

if not change:
# Generate and send report only if creating for first time
parent_obj = form.instance
import pdb; pdb.set_trace();

1) At that point when I look into the database I don't see the saved
parent object? This seems to contradict the docs.
2) I can access cleaned data from the formsets, but is there an easy
way to simply get the related instances as I would with
parent.child_set.all(). This would make my life much easier as I have
written the code already to print a LaTeX report from any Django model
(by looping _meta.fields approach).

I would appreciate any help.

--
GH

-- 
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: how to layout a "big" project in django 1.4 - best practices ?

2012-05-15 Thread Phang Mulianto
Hi..

For the app, i like to use loose couple method from project dir so i can
reuse and plug my app in other project easily.

I learn it from a book call practical django apps.

And i want ask about settings.py,  if we make the settings become a folder
and put dev.py, prod.py,  any step to make manage.py know which one to
load. Seems there is no info about it in the blog.

Btw i stil using django 1.3

Thanks for the share
On May 16, 2012 6:13 AM, "Michael Palumbo" 
wrote:

> Hi,
>
> I have found lots of posts on how organizing a kinda big project with
> Django =<1.3 but I was wondering what could be the best option with Django
> 1.4 since the default layout has changed.
>
> I have found just this post on the internet talking about structuring a
> django 1.4 project:
> http://www.deploydjango.com/django_project_structure/index.html
> What do you think?
>
> Please feel free to share your points of views and/or explain how you
> handle it.
>
> Thanks
>
>  --
> 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/-/7G089jM6W6gJ.
> 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: Required True to Generic Relations

2012-05-15 Thread Guevara
Solution:
http://pastebin.com/011WsfzD
Regards.

On 15 maio, 23:43, Guevara  wrote:
> Hi all!
>
> I need a required true in Generic Relations.
> Have this code:
>
> # Models
> class Client(Person):
>     addresses = GenericRelation(Address)
>
> class Address(models.Model):
>    # others fields
>     content_type = models.ForeignKey(ContentType)
>     object_id = models.PositiveIntegerField()
>     content_object = generic.GenericForeignKey('content_type',
> 'object_id')
>
> I need create a client with an address in the form.
> The DOC ignore this 
> question.https://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#gener...
>
> Regards.

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



django 1.4 : gunicorn can't find static files. settings option

2012-05-15 Thread Bolang

Hi,
I just started to using django 1.4 with gunicorn 0.14.3
With ./manage.py runserver , i can start django properly and django can 
find my files in static directory.
Then i use gunicorn and then gunicorn can't find my files in static 
directory.


I have tried these combination
gunicorn myproject.wsgi:application --settings myproject.settings
gunicorn myproject.wsgi:application --settings /absolute/path/to/settings.py
./manage.py run_gunicorn --settings=myproject.settings

All of the commands can start django, but can't find my files in static 
directory


I also found this issue https://github.com/benoitc/gunicorn/issues/322
But, i can't find the solution from that page.

Any kind of help will be appreciated

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.



Required True to Generic Relations

2012-05-15 Thread Guevara
Hi all!

I need a required true in Generic Relations.
Have this code:

# Models
class Client(Person):
addresses = GenericRelation(Address)

class Address(models.Model):
   # others fields
content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField()
content_object = generic.GenericForeignKey('content_type',
'object_id')

I need create a client with an address in the form.
The DOC ignore this question.
https://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#generic-relations

Regards.

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



Can't locate 'media' directory

2012-05-15 Thread django-user59
Hi,

I attempted to add 'media' directory to the root of my project and placed a 
css file and some ajax javascript. The server runtime is unable to locate 
it. Can someone help?

I have the following in settings.py

MEDIA_ROOT = os.path.join(ROOT_PATH, 'media')
MEDIA_URL = 'http://127.0.0.1:8000/media/'

The console error I get is:

C:\dev\Projects\ajax_tut\ajax_tut>python ../manage.py runserver
Validating models...
0 errors found
Django version 1.4, using settings 'ajax_tut.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[15/May/2012 19:11:12] "GET / HTTP/1.1" 200 613
[15/May/2012 19:11:12] "GET /media/style.css HTTP/1.1" 404 2312
[15/May/2012 19:11:12] "GET /media/jquery-1.2.6.min.js HTTP/1.1" 404 2342
[15/May/2012 19:11:28] "GET / HTTP/1.1" 200 613
[15/May/2012 19:11:28] "GET /media/style.css HTTP/1.1" 404 2312
[15/May/2012 19:11:28] "GET /media/jquery-1.2.6.min.js HTTP/1.1" 404 2342

Where do I place this directory and what do I set in settings.py and which 
directory do I launch the server? Once again, any help would be much 
appreciated.

Thanks,


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



How do I install the module

2012-05-15 Thread django-user59
Hi,

I attempted to download and use one of the sources for examples - the 
"bashoneliners" project from: http://code.google.com/p/bashoneliners/

However, it complains that django_openid_aith is not found. I downloaded 
the django_openid_auth module from the 
location https://launchpad.net/django-openid-auth/+download and extracted 
the files and created a directory under the original location for django at 
the same level as django-1.4. Couple of questions:

1) How does python manage.py know where to look for the new module.
2) How do I check that the version of openid-auth is right for me.

C:\dev\django-examples\bashoneliners>python manage.py runserver
Error: No module named django_openid_auth

Thanks very much 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/-/1ZCkvA8Uot8J.
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: Use Django to implement my GUI!

2012-05-15 Thread Eugène Ngontang
Hi Jani!

Now you can understand what i meant, but I'm not just try to mec things
complicated.

I'm not talking here about my technical implementation, but i'm describing
the needs/contraints, and my app architecture to you.

-  The remote clients are at the heart of the software system, since data
stored in the database are destined to them (the server push each
information to the corresponding host)
- When a client starts, it trys to establish a connection with the server,
and if succeed, it retrieves its informations from the server. The server
then send back informations conerning the host executing the client (the
way server retrieves informations from the data base manager doesn't matter
here, it's a technical purpose)
- When a task state changes, it has to notify the server by sending a
packet through the network. The GUI (web browser) has then to display the
new state.
- When a user of the software wants to create a new task on a host, it uses
the GUI for the purpose, and the information has to be sent to the remote
corresponding client/host for processing.

Tell in my place, what logic would you adopt. I would like idea from you
guys in this case, before go on a first definitive choice.

I can see web sockets solves so much problems for developpers, and i'm
still looking if it could help achieve correctly what I want to. The
problem of IE < 10 for the instance is not so important.

Now also, can you try to advise me the best way for serving file using
python-Django (apache, unicorn, ..)?

Thanks again.

2012/5/15 Jani Tiainen 

> Hi,
>
> Now it starts to make "sense".
>
> I just wonder why are you trying to build something so extremely
> complicated?
>
> What is the rationale behind to have additional middleware layer between
> web ui and the server backend?
>
> Wouldn't it be sufficient to have architecture like:
>
> Browser <-> django middleware <-> remote backend
>
> Communication between django middle ware and remote backend should be
> built on top of some messaging system, like celery + rabbitmq which gives
> you quite standard asyncronous communication between django middleware and
> remote backend. Of course you might need to write some adapters on remote
> side but that's part of the job.
>
> Only real problem is that if you need to push changes to browser side.
> There doesn't exists any really good ways to do that. HTML5 was supposed to
> bring websockets to overcome the problem. One big problem is that only from
> IE series only IE 10 supports it. All others, FF, Chrome, Safari has had it
> for a good while.
>
> There exists also alternative workarounds like Comet, BOSH, push and few
> others.
>
> So let
> 15.5.2012 2:18, Eugčne Ngontang kirjoitti:
>
>> Hi Jani!
>>
>> I haven't seen the last statements of your post, whre you say I'm not
>> really clear and that i'm building a non-http GUI using Django.
>>
>>
>> OK let's stay on the rendering issue only, and specify things simply.
>> This is a simple description of the architecture I want to set up :
>>
>> - A Client (not a user interface). Client here means a module which is
>> installed in a remote computer and communicate with the server via socket.
>>
>> - A server listening from several remote client (Here i'm not talking
>> yet about http request), and receive informatons from them. In fact
>> client must be doing actions and send informations about their actions
>> to the server. In the oder hand data to be processed by each client is
>> pushed/dispatched by the server.
>>
>> - And admin (not Django Admin, but admin in the sens of my app),
>> destined to be the module allowing use of the application. Then the
>> Admin module is part of the server and will proviede a GUI for
>> manipulating data in the data base. It's in this GUI that users of the
>> application will enter their request, by filling a form or clicking a
>> link for exemple. And data from the GUI could be stored in the data
>> base, while being send to the remote clients (not to be displayed by the
>> client, but to be processed). In the same way, informations comming from
>> those clients to the server have to be diplayed in the GUI.
>>
>> With a graphical GUI, The server could have a reference to an object
>> representing my GUI, and it will be done.
>> But I choose a web GUI for view and administration. It's where Django
>> comes.
>>
>> And my problem is to make my server being running a network thread,
>> receiving data from the GUI(web browser) and sending informations update
>> to the GUI (for web page content).
>>
>> This is really my issue. If all the actions of my server depended on my
>> GUI request (http request), I could do what I like behind when handling
>> a http request, but while managing http:8080 connexions, the application
>> is running another process/thread on another TCP/UDP port.
>>
>> And yes I want a web GUI.
>>
>> Is why I'm looking the best way to achieve that. We can exclude Django
>> web server, as it will not be used in production for 

Re: Can I override get_object() of a generic view?

2012-05-15 Thread Kurtis Mullins
Hey,

I'm not really sure what you're trying to do here. You're using a
CreateView (which is built for creating new objects) and overriding the
get_object(self, queryset=None) method (found in SingleObjectMixin --
https://github.com/django/django/blob/master/django/views/generic/detail.py)
to, I'm assuming, dynamically set a Model and/or Queryset?

If you can get away with this (not saying it's impossible -- just not
putting a ton of thought into it at the moment), you may have better luck
giving it a shot in __init__().

I'm not sure on your use-case but looks pretty interesting none-the-less!
Good luck!

On Tue, May 15, 2012 at 4:53 PM, Jon Paugh  wrote:

> Hello.
>
> *How do I override get_object() from a subclass of CreateView? Is there
> something I'm missing?*
>
> I'm trying to override *get_object()* to provide a simple behavior.
> However, my *get_object()* is never called. Instead, Django complains
> that I didn't set self.model properly.
>
> I opened the Python shell with *./manage.py shell *and* *looked at the *
> Create.__mro__* field to make check the method resolution order, and
> everything looked in order. Is something wrong here?
>
> Thanks,
> Jon
>
> -- Here's my class
>
> class Create(CreateView):
>   template_name='forms/ajax.html'
>
>   def get_object(self):
> #raise Exception('Your face!')
>
> if 'model' in self.kwargs:
>   self.model = self.kwargs['model']
> elif 'queryset' in self.kwargs:
>   self.queryset = self.kwargs['queryset']
>
> return super(Create, self).get_object(queryset)
>
> -- And here's the mro.
>
> Create.__mro__ = (dj.views.ajax.Create,
>  django.views.generic.edit.CreateView,
>  django.views.generic.detail.SingleObjectTemplateResponseMixin,
>  django.views.generic.base.TemplateResponseMixin,
>  django.views.generic.edit.BaseCreateView,
>  django.views.generic.edit.ModelFormMixin,
>  django.views.generic.edit.FormMixin,
>  django.views.generic.detail.SingleObjectMixin,
>  django.views.generic.edit.ProcessFormView,
>  django.views.generic.base.View,
>  object)
>
> --
> 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/-/VjMAqWbA3dMJ.
> 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: Django AJAX forms and views

2012-05-15 Thread Kurtis Mullins
I'll try to help out a bit.

The first problem I see is in your Javascript. I believe your JQuery
selector is supposed to be the field's ID -- so, for example,
$("#csrfmiddlewaretoken").
Next, in your view -- I don't see where you're actually returning any data.
You should use Firebug or the Chrome Console to see what the actual
response is that you're getting from the server when you perform the AJAX
request.

Give those a shot and us know if you still need any help. Good luck!

On Tue, May 15, 2012 at 7:00 PM, Joel Khan  wrote:

> I have a form that is used to add an item where 2 dropdowns are populated
> using different database than the database where the form will be
> submitted. I would like to add AJAX to the drop downs where selecting one
> item in the first drop down will auto populate data in the 2nd drop down
> using AJAX. The issue is that I am using the same view for the form to
> populate the data and its not working even though I m using the is.ajax()
> call.
>
> Here is my AJAX code:
> function get_data(){ // alert('test'); new Ajax.Request('/abc/abc/add', {
> method: 'POST', parameters: $H({'type':$('id_data').getValue()},
> {'csrfmiddlewaretoken':$( "csrfmiddlewaretoken" ).getValue()}), onSuccess:
> function(transport) { var e = $('id_def') if(transport.responseText)
> e.update(transport.responseText) } }); // end new Ajax.Request //alert($(
> "csrfmiddlewaretoken" ).getValue()); }
> Here is my view code:
>
> if request.is_ajax(): #if request.is_ajax() cur =
> connections['data'].cursor() #auto_type =
> Auto.objects.filter(type=request.POST.get('type', '')) abctype =
> request.POST.get('type', '') SQL = 'SELECT uuid FROM abc_abc where uid =
> %s', abctype cur.execute(SQL) auto_type =cur.fetchone()
>
> cur = connections['data'].cursor() SQL = 'SELECT uuid, name FROM abc_abc
> where parent_id = %s', auto_type cur.execute(SQL) colors = cur.fetchall()
> return render_to_response('abc/add_abc.html', { 'colors' : colors, },
> context_instance=RequestContext(request))
>
> Is there anything else that I m missing? Please let me know if you would
> like me to add some more things from the code.Please help!!
>
> Just to clearify i m using  this example from the web.
> http://bradmontgomery.net/blog/a-simple-django-example-with-ajax/
> >
>
> --
> 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: sweat-equity

2012-05-15 Thread Mike Dewhirst

Marcin

Some changes to increase coherence and a new Project Bootstrap page to 
prompt incorporation of the project.


https://github.com/mdewhirst/sweat-equity/wiki/_pages

I will take it to my lawyer before starting and I'll post the changes then.

Thanks Marcin

Mike

On 15/05/2012 10:41pm, Mike Dewhirst wrote:

On 15/05/2012 6:23pm, Marcin Tustin wrote:
You will want to have a lawyer advise you on your agreements. 
Although your drafting is pretty tight, it could be a bit tighter, 


I'd like to strike a decent balance. My own lawyer is a tad aggressive 
and to be honest I wouldn't sign anything he wrote. He makes you feel 
like you are putting on manacles. He is brilliant at licensing but 
must be worried about people finding loopholes in his contracts.


My approach is different. I want an equity agreement which assumes 
good intentions and delivers a valuable partnership. In the end I want 
golden handcuffs not manacles.


and there are certain legal issues that arise, such as how a 
"project" can own anything (such as copyrights). 


You are correct. This came from my own situation where currently my 
company "owns" the project. However, I can't expect anyone to invest 
in my company when the project is the real focus. In due course I 
expect to incorporate a new company which in effect will be the 
project. This is probably common enough to need addressing. I will 
develop and include a clause which makes that clear.



You'll likely want a jurisdiction and choice-of-law clause as well.


Right again. I need that for my own agreement so I'll add one.

Thanks Marcin

Mike



On Tue, May 15, 2012 at 1:40 AM, Mike Dewhirst > wrote:


This is off-topic except for people starting un(der)-funded Django
projects.

I have written some guidelines for stakeholders and developers
plus an equity-in-lieu-of-salary agreement.

The guidelines come from my own experience in projects. Apologies
to Scrum and eXtreme purists but I need to start easy.

https://github.com/mdewhirst/sweat-equity/wiki/_pages

I would really appreciate some constructive criticism, suggestions
etc before I try and use it for real.

You may find it useful for your own project. The idea is that a
venture capitalist will be more confident to invest if you have a
dev team locked in and the project is already kicking goals.

Thanks for any feedback.

Mike



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




--
Marcin Tustin
Tel: 07773 787 105

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



Django AJAX forms and views

2012-05-15 Thread Joel Khan
I have a form that is used to add an item where 2 dropdowns are populated
using different database than the database where the form will be
submitted. I would like to add AJAX to the drop downs where selecting one
item in the first drop down will auto populate data in the 2nd drop down
using AJAX. The issue is that I am using the same view for the form to
populate the data and its not working even though I m using the is.ajax()
call.

Here is my AJAX code:
function get_data(){ // alert('test'); new Ajax.Request('/abc/abc/add', {
method: 'POST', parameters: $H({'type':$('id_data').getValue()},
{'csrfmiddlewaretoken':$( "csrfmiddlewaretoken" ).getValue()}), onSuccess:
function(transport) { var e = $('id_def') if(transport.responseText)
e.update(transport.responseText) } }); // end new Ajax.Request //alert($(
"csrfmiddlewaretoken" ).getValue()); }
Here is my view code:

if request.is_ajax(): #if request.is_ajax() cur =
connections['data'].cursor() #auto_type =
Auto.objects.filter(type=request.POST.get('type', '')) abctype =
request.POST.get('type', '') SQL = 'SELECT uuid FROM abc_abc where uid =
%s', abctype cur.execute(SQL) auto_type =cur.fetchone()

cur = connections['data'].cursor() SQL = 'SELECT uuid, name FROM abc_abc
where parent_id = %s', auto_type cur.execute(SQL) colors = cur.fetchall()
return render_to_response('abc/add_abc.html', { 'colors' : colors, },
context_instance=RequestContext(request))

Is there anything else that I m missing? Please let me know if you would
like me to add some more things from the code.Please help!!

Just to clearify i m using  this example from the web.
http://bradmontgomery.net/blog/a-simple-django-example-with-ajax/
>

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



Inline formset for django project

2012-05-15 Thread William Ibarra Rodriguez
H! i need a way to use a inlineformset in my app, anyone knows how to
use the inline tabular o stack formset of the admin site in an app??

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



how to layout a "big" project in django 1.4 - best practices ?

2012-05-15 Thread Michael Palumbo
Hi,

I have found lots of posts on how organizing a kinda big project with 
Django =<1.3 but I was wondering what could be the best option with Django 
1.4 since the default layout has changed.

I have found just this post on the internet talking about structuring a 
django 1.4 project: 
http://www.deploydjango.com/django_project_structure/index.html
What do you think?

Please feel free to share your points of views and/or explain how you 
handle it.

Thanks

-- 
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/-/7G089jM6W6gJ.
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: Django virtualenv, pythonpath issues

2012-05-15 Thread Bill Freeman
To deploy with WSGI you probably want to use Apache with modwsgi.
There are other ways, but this is common.

modwsgi must be build against the python you want to use, and it
should have preferably been built after being configured with
--enable-shared.  That is the only python that apache will use.  If
the installed apache/modwsgi combination if for a python other than
the one that you want, you can't use it.  You have several options,
depending on how "yours" the server is.

  You can try to run your project with the available python
  You can replace the system modwsgi with one that is to your liking.
  You can add a separate apache with a suitable modwsgi and let the
main apache proxy to it

Note that you can't typically replace the system python (what you get
when the root user types "python") without breaking some system
management scripts.

Either of the second two options begins with building a python of the
right version.  You will first have to install "development" versions
of several of the system libraries (these packages typically just have
the .h files).  Then in the ./configure step specify --enable-shared
and, to keep your python separate if need be, something like
--prefix=/opt/python2.7 .

Build apache second (unless you are allowed to replace it's modwsgi),
since its files will be needed to build modwsgi.  (It is possible that
the current apache has enough stuff for modwsgi's build to work, but
if it is a distro apache, you don't want it changing out from under
yuo when someone does and update.)

Finally, build modwsgi telling where to find your python and your install.

Remake your virtual environment against your new python.

Use the WSGIPythonHome directive in your apache config to tell modwsgi
how to set the PYTHONHOME environment variable for its pythons, which
should identify your virtual environment (set it to the directory
containing your ve's lib and bin directories).  This allows for the
best match between the paths seen under modwsgi and those seen under
the development server.  You can do some extra fixups in your .wsgi
file.

Bill

On 5/15/12, Otávio Augusto Soares  wrote:
>
>
> I'm trying to deploy a django app with virtualenv but I'm not a linux
> expert user.
>
> It's on a shared host. If I type python I got the python 2.4 console. If a
> type python2.7 I got the 2.7 console.
>
> I want to use the 2.7.
>
>1. I installed virtualenv with setuptools in my private .site-packages.
>2. I created my env using python 2.7: .site-packages/virtualenv
>--no-site-packages -p python2.7 env
>3. I activated my env and installed the packages I need.
>4. I configured (tried to) my .wsgi to use the env
>
> I've been 2 days in step 4. The server has some pre installed modules,
> which are on sys.path. For example, it has django installed, but I want to
> use the module installed in my virtualenv.
>
> I read several wsgi documentation and I came to this:
>
> import sys, os, site
>
> sys.stdout = sys.stderr
>
> os.environ['PYTHON_EGG_CACHE'] =
> '/home/bruddennautica/apps_wsgi/.python-eggs'
> os.environ['DJANGO_SETTINGS_MODULE'] = "brudden.settings"
>
> sys.path.append('/home/bruddennautica/apps_wsgi')
> sys.path.append('/home/bruddennautica/apps_wsgi/env/lib/python2.7/site-packages')
>
> activate_this = '/home/bruddennautica/apps_wsgi/env/bin/activate_this.py'
> execfile(activate_this, dict(__file__=activate_this))
>
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()
>
> With this conf, I got a django error which shows me some things. The django
> error isn't important, it's caused because the django version is not equal
> to the one I installed in my virtualenv, the python version either.
>
> PRINT: http://dl.dropbox.com/u/9290581/error.png
>
> It's possible to see the python path entries, most of them not from
> virtualenv. The first one is:
> /home/bruddennautica/apps_wsgi/env/lib/python2.4/site-packages. However
> this folder doesn't exists. Apparently it's added by activate_this.py in
> line 22:
>
> site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3],
> 'site-packages')
>
> Anyone can help me?
>
> Thanks
>
> --
> 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/-/ETGErWaZyMoJ.
> 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: Store base64 data in database with imagefield ?

2012-05-15 Thread Hutch
are you sure this is actually a good idea?

in almost all cases serving the image via the actual web server, whose job 
it is to serve images, is the best idea.

either way, you wouldn't use an image field to store base64 data. that's 
for references to actual files in a filesystem.

first you'd need to convert the image to base64. then store that in a 
textfield. keep in mind there's going to be size limits with that.

i'd read:
https://docs.djangoproject.com/en/1.4/topics/http/file-uploads/ if you're 
dealing with uploads from a client's browser
otherwise just standard file objects will work
and then
http://docs.python.org/library/base64.html



re: nikhil, i'm not sure how jquery or any of that is relevant,

On Tuesday, May 15, 2012 7:55:05 AM UTC-4, Bussiere wrote:
>
> Does anyone tried to store only Base64 info in databse of an image 
> instead of a file with django image field ? 
>
> Do you have any idea how to do it ? 
>
> Or some hints to give me ? 
>
> regards and thanks 
> Bussiere 
>
>
>
>

-- 
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/-/8vn8tqb-nrwJ.
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: Help - Which IDE is best to use.

2012-05-15 Thread Ali Mesdaq
You make a really good point about starting with Vim. I personally started
with Vim and used it exclusively for years and feel all developers need to
be at least proficient with it. But just as you should start with Vim you
probably also should move on once your intermediate to advanced in
development. To me going back to Vim from Komodo is like going back to the
stone age. Just as we are always looking for the best web technologies to
develop on that make our lives easier and solutions better we should also
do the same with our development environments.

Thanks,
Ali Mesdaq
Security Researcher
Work:  +1(408) 321-7779  |  Fax:  +1 (408) 321-9818
Email:  ali.mes...@fireeye.com

Next Generation Threat Protection
http://www.FireEye.com 


On 5/15/12 3:16 AM, "Karl Sutt"  wrote:

>
>
>
>I use Vim, for everything involving writing -- coding, producing
>papers/articles/reports, editing existing code and documents. It is not
>an IDE, but a text editor, and it is absolutely excellent. Once you learn
>Vim, you'll never want to use anything else (this
> is the case for me, at least). The learning curve is rather steep, but
>after you get used to the different modes, moving around and editing text
>efficiently, you start to see and appreciate the power of the keyboard.
>
>The downside is that it does not come with documentation built in, or the
>code-checking and all that fancy stuff, like the bigger counterparts
>(Eclipse, Aptana, pyCharm etc), but I personally don't need it.
>The upside is that you are not tied to a specific IDE for a specific
>language/framework. Vim lets you edit code and text efficiently,
>regardless of what language/framework/task you are working with.
>
>
>Obviously, my goal is not to say Vim (another example is GNU Emacs) is
>the best editor ever, but to let people know of tools that have been
>around since the beginning of first operating systems. They have been
>perfected over the past 20 years by professionals,
> people who wrote the very operating systems you use today.
>
>
>For a beginner programmer, my suggestion is to always start with the
>simplest tools possible, and not let one IDE do everything for you,
>without you understanding the process. The downside is that you'll have
>to put in a lot more effort to get going and
> you don't get the fancy add-ons. But the upside (in my opinion, anyway)
>is that you gain a deeper understanding of how these things fit together,
>giving you a better insight into whatever you're working on. Don't be
>afraid to get your hands dirty :-)
>
>
>Karl Sutt
>
>
>On Tue, May 15, 2012 at 10:51 AM, cougar cougar
> wrote:
>
>ulipad , free  and build with wxpython
>
>
>2012/5/14 Sanjay M 
>
>I am new to Django, and I was confused in choosing a IDE between Eclipse
>and aptana studio 3 to edit source code. Kindly suggest me a good one.
>
>
>Thank you in advance,
>Regards,
>Sanjay M
>
>
>
>
>
>-- 
>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/-/2LIdVrSuFpQJ
>.
>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
>.
>
>
>
>
>
>
>
>
>-- 
>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.



Can I override get_object() of a generic view?

2012-05-15 Thread Jon Paugh
Hello.

*How do I override get_object() from a subclass of CreateView? Is there 
something I'm missing?*

I'm trying to override *get_object()* to provide a simple behavior. 
However, my *get_object()* is never called. Instead, Django complains that 
I didn't set self.model properly. 

I opened the Python shell with *./manage.py shell *and* *looked at the *
Create.__mro__* field to make check the method resolution order, and 
everything looked in order. Is something wrong here?

Thanks,
Jon

-- Here's my class

class Create(CreateView):
  template_name='forms/ajax.html'

  def get_object(self):
#raise Exception('Your face!')

if 'model' in self.kwargs:
  self.model = self.kwargs['model']
elif 'queryset' in self.kwargs:
  self.queryset = self.kwargs['queryset']

return super(Create, self).get_object(queryset)

-- And here's the mro. 

Create.__mro__ = (dj.views.ajax.Create,
 django.views.generic.edit.CreateView,
 django.views.generic.detail.SingleObjectTemplateResponseMixin,
 django.views.generic.base.TemplateResponseMixin,
 django.views.generic.edit.BaseCreateView,
 django.views.generic.edit.ModelFormMixin,
 django.views.generic.edit.FormMixin,
 django.views.generic.detail.SingleObjectMixin,
 django.views.generic.edit.ProcessFormView,
 django.views.generic.base.View,
 object)

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



Django virtualenv, pythonpath issues

2012-05-15 Thread Otávio Augusto Soares


I'm trying to deploy a django app with virtualenv but I'm not a linux 
expert user.

It's on a shared host. If I type python I got the python 2.4 console. If a 
type python2.7 I got the 2.7 console.

I want to use the 2.7.

   1. I installed virtualenv with setuptools in my private .site-packages.
   2. I created my env using python 2.7: .site-packages/virtualenv 
   --no-site-packages -p python2.7 env
   3. I activated my env and installed the packages I need.
   4. I configured (tried to) my .wsgi to use the env

I've been 2 days in step 4. The server has some pre installed modules, 
which are on sys.path. For example, it has django installed, but I want to 
use the module installed in my virtualenv.

I read several wsgi documentation and I came to this:

import sys, os, site

sys.stdout = sys.stderr

os.environ['PYTHON_EGG_CACHE'] = '/home/bruddennautica/apps_wsgi/.python-eggs'
os.environ['DJANGO_SETTINGS_MODULE'] = "brudden.settings"

sys.path.append('/home/bruddennautica/apps_wsgi')
sys.path.append('/home/bruddennautica/apps_wsgi/env/lib/python2.7/site-packages')

activate_this = '/home/bruddennautica/apps_wsgi/env/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

With this conf, I got a django error which shows me some things. The django 
error isn't important, it's caused because the django version is not equal 
to the one I installed in my virtualenv, the python version either.

PRINT: http://dl.dropbox.com/u/9290581/error.png

It's possible to see the python path entries, most of them not from 
virtualenv. The first one is: 
/home/bruddennautica/apps_wsgi/env/lib/python2.4/site-packages. However 
this folder doesn't exists. Apparently it's added by activate_this.py in 
line 22:

site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 
'site-packages')

Anyone can help me?

Thanks

-- 
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/-/ETGErWaZyMoJ.
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: Help - Which IDE is best to use.

2012-05-15 Thread knowledge_seeker
For people used to using Vim in Unix, there is an Eclipse plug-in called 
Vwrapper.

- knowledge_seeker

On Tuesday, May 15, 2012 3:16:00 AM UTC-7, Karl Sutt wrote:
>
> I use Vim, for everything involving writing -- coding, producing 
> papers/articles/reports, editing existing code and documents. It is not an 
> IDE, but a text editor, and it is absolutely excellent. Once you learn Vim, 
> you'll never want to use anything else (this is the case for me, at least). 
> The learning curve is rather steep, but after you get used to the different 
> modes, moving around and editing text efficiently, you start to see and 
> appreciate the power of the keyboard.
>
> The downside is that it does not come with documentation built in, or the 
> code-checking and all that fancy stuff, like the bigger counterparts 
> (Eclipse, Aptana, pyCharm etc), but I personally don't need it.
> The upside is that you are not tied to a specific IDE for a specific 
> language/framework. Vim lets you edit code and text efficiently, regardless 
> of what language/framework/task you are working with.
>
> Obviously, my goal is not to say Vim (another example is GNU Emacs) is the 
> best editor ever, but to let people know of tools that have been around 
> since the beginning of first operating systems. They have been perfected 
> over the past 20 years by professionals, people who wrote the very 
> operating systems you use today.
>
> For a beginner programmer, my suggestion is to always start with the 
> simplest tools possible, and not let one IDE do everything for you, without 
> you understanding the process. The downside is that you'll have to put in a 
> lot more effort to get going and you don't get the fancy add-ons. But the 
> upside (in my opinion, anyway) is that you gain a deeper understanding of 
> how these things fit together, giving you a better insight into whatever 
> you're working on. Don't be afraid to get your hands dirty :-)
>
> Karl Sutt
>
>
> On Tue, May 15, 2012 at 10:51 AM, cougar cougar wrote:
>
>> ulipad , free  and build with wxpython
>>
>>
>> 2012/5/14 Sanjay M 
>>
>>> I am new to Django, and I was confused in choosing a IDE between Eclipse 
>>> and aptana studio 3 to edit source code. Kindly suggest me a good one. 
>>>
>>> Thank you in advance,
>>> Regards,
>>> Sanjay M
>>>
>>>
>>>  -- 
>>> 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/-/2LIdVrSuFpQJ.
>>> 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.
>>
>
>
On Tuesday, May 15, 2012 3:16:00 AM UTC-7, Karl Sutt wrote:
>
> I use Vim, for everything involving writing -- coding, producing 
> papers/articles/reports, editing existing code and documents. It is not an 
> IDE, but a text editor, and it is absolutely excellent. Once you learn Vim, 
> you'll never want to use anything else (this is the case for me, at least). 
> The learning curve is rather steep, but after you get used to the different 
> modes, moving around and editing text efficiently, you start to see and 
> appreciate the power of the keyboard.
>
> The downside is that it does not come with documentation built in, or the 
> code-checking and all that fancy stuff, like the bigger counterparts 
> (Eclipse, Aptana, pyCharm etc), but I personally don't need it.
> The upside is that you are not tied to a specific IDE for a specific 
> language/framework. Vim lets you edit code and text efficiently, regardless 
> of what language/framework/task you are working with.
>
> Obviously, my goal is not to say Vim (another example is GNU Emacs) is the 
> best editor ever, but to let people know of tools that have been around 
> since the beginning of first operating systems. They have been perfected 
> over the past 20 years by professionals, people who wrote the very 
> operating systems you use today.
>
> For a beginner programmer, my suggestion is to always start with the 
> simplest tools possible, and not let one IDE do everything for you, without 
> you understanding the process. The downside is that you'll have to put in a 
> lot more effort to get going and you don't get the fancy add-ons. But the 
> upside (in my opinion, anyway) is that you gain a deeper understanding of 
> how these things fit together, giving you a better insight into whatever 
> you're workin

Re: Help.......!!

2012-05-15 Thread yati sagade
Hi
As mentioned earlier, please note that this list is meant to have Django
related discussions. And Django != Python unlike Ruby(on Rails). You may
want to ask your question in a place like stackoverflow.com.

Cheers :)
On Tue, May 15, 2012 at 11:40 PM, Tanveer Ali Sha wrote:

> Actually i wanna deploy front end user interface with django for network
> interface projectpls help me to get this
>
>
> On Tue, May 15, 2012 at 1:41 AM, Dennis Lee Bieber 
> wrote:
>
>> On Mon, 14 May 2012 20:30:33 +0530, Tanveer Ali Sha
>>  declaimed the following in
>> gmane.comp.python.django.user:
>>
>> >
>> > Am working on project which is based on Django n Sqlite3..Am new to
>> > Django but am strong in Python concept ...pls help me to build code
>> for
>> > those which I have mentioned in last mailPlease
>>
>> Nothing you asked for is specific to Django... You are asking
>> operating system utility questions...
>>
>>Let me put it this way.
>>
>>Without using Python/Django/SQLite/whatever -- how would you obtain
>> network interface information on whatever computer you need it for? When
>> you can answer that -- look in the Python standard library for some
>> package that supports that operation. (In the case of Windows, you may
>> need the Win32 extension package).
>> --
>>Wulfraed Dennis Lee Bieber AF6VN
>>wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>>
>> --
>> 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.
>



-- 
Yati Sagade 

Twitter: @yati_itay 

Organizing member of TEDx EasternMetropolitanBypass
http://www.ted.com/tedx/events/4933
https://www.facebook.com/pages/TEDx-EasternMetropolitanBypass/337763226244869

-- 
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: How to

2012-05-15 Thread Bill Freeman
Which platform?

I mostly do Linux.  If you don't then the instructions for distribute
and pip on pypi may need modification (e.g.; if you don't have curl).

Assuming the python you wish to use is already installed, and the old
easy_install isn't, you need distribute in order to install pip, see:

   http://pypi.python.org/pypi/distribute

Scroll to "Installation Instructions".  Note that if you don't have
curl, you can use the provided "distribute_setup.py" link to download
it with your browser.  Unless you are installing in a private, rather
than system wide, python, the running of distribute_setup.py must be
done with administrator priveleges, e.g., on *nix:

   sudo python distribute_setup.py

You may, if you want to install for a specific python that isn't your
default, want to replace "python" in the line above with the full path
to the specific python you want to use.

Similarly, on:

   http://pypi.python.org/pypi/pip

search in the page for "get-pip.py", and do the same dance, using
something like sudo where needed.

At this point (and possibly requiring something like sudo) you can do:

   pip install virtualenv

Actually makeing a virtualenv once you have the tool is a separate
question, which you did not ask.

Bill

On 5/15/12, Sanjay M  wrote:
> I want to create a virtualenv pip, but I don't know how to Install
> virtualenv by running pip install virtualenv? Can anyone explain how to
> setup a virtualenv?
>
> Thanks in advance,
>
> -Regards,
> Sanjay M
>
> --
> 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/-/ImAJ5q4jrw4J.
> 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: Help - Which IDE is best to use.

2012-05-15 Thread Matthew Lai
I use PyCharm, it's a very good IDE, you can download and try first.

On Monday, May 14, 2012, Sanjay M wrote:

> I am new to Django, and I was confused in choosing a IDE between Eclipse
> and aptana studio 3 to edit source code. Kindly suggest me a good one.
>
> Thank you in advance,
> Regards,
> Sanjay M
>
>
>  --
> 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/-/2LIdVrSuFpQJ.
> To post to this group, send email to 
> django-users@googlegroups.com 'django-users@googlegroups.com');>
> .
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com  'django-users%2bunsubscr...@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: Help.......!!

2012-05-15 Thread Tanveer Ali Sha
Actually i wanna deploy front end user interface with django for network
interface projectpls help me to get this

On Tue, May 15, 2012 at 1:41 AM, Dennis Lee Bieber wrote:

> On Mon, 14 May 2012 20:30:33 +0530, Tanveer Ali Sha
>  declaimed the following in
> gmane.comp.python.django.user:
>
> >
> > Am working on project which is based on Django n Sqlite3..Am new to
> > Django but am strong in Python concept ...pls help me to build code
> for
> > those which I have mentioned in last mailPlease
>
> Nothing you asked for is specific to Django... You are asking
> operating system utility questions...
>
>Let me put it this way.
>
>Without using Python/Django/SQLite/whatever -- how would you obtain
> network interface information on whatever computer you need it for? When
> you can answer that -- look in the Python standard library for some
> package that supports that operation. (In the case of Windows, you may
> need the Win32 extension package).
> --
>Wulfraed Dennis Lee Bieber AF6VN
>wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>
> --
> 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: How to

2012-05-15 Thread 马博文
   1. install python if you don't have one;
   2. download easy_install, and install it;
   3. install pip through easy_install;
   4. install virtualenv through pip, by using "pip install virtualenv; pip
   install virtualenvwrapper "
   5. mkdir ~/.virtualenv ,in .bash_profile “export
   WORKON_HOME=$HOME/.virtualenv”
   6. source
   /Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh
   7. source ~/.bash_profile

After that, i think virtualenv is doable.

regards,

Bowen

2012/5/16 Sanjay M 

> I want to create a virtualenv pip, but I don't know how to Install
> virtualenv by running pip install virtualenv? Can anyone explain how to
> setup a virtualenv?
>
> Thanks in advance
>
> -Regards,
> Sanjay M
>
> --
> 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/-/ImAJ5q4jrw4J.
> 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: Distributing Django apps

2012-05-15 Thread Eugenio Minardi
I usually keep the configuration files and the statics in a separate
process (manual in case of small number of deploys)

Eugenio
Il giorno 15/mag/2012 13:32, "Steve Kilbane" 
ha scritto:

> I had a look at fagungis, but it didn't seem to be addressing the
> issue. I didn't give much detail before, so that's not a surprise. :-)
>
> So:
>
> Stage 1: person X develops an open source Django app.
>
> Stage 2: person X makes the app sources available somewhere (say,
> github).
>
> Stage 3: person Y retrieves the app sources from that location, and
> configures according to their needs.
>
> Stage 4: person Y deploys their instance of the app to their own
> server.
>
> Fagungis looked to be aimed at accomplishing stages 3 and 4, but it's
> stage 2 I need some guidance on. Just as a case in point: is it
> standard practice to upload settings.py, given that it contains the
> secret key and local database configurations?
>
> Thanks,
>
> steve
>
> On Apr 23, 1:19 pm, Eugenio Minardi  wrote:
> > Hi,
> >
> > You can have a look athttp://pypi.python.org/pypi/django-fagungis/
> >
> > -- Eugenio
> >
> > On Mon, Apr 23, 2012 at 2:00 PM, Steve Kilbane
> > wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi all,
> >
> > > I'm new to Python. I'm in the process of developing an open-source
> > > app. Is there a guide for packaging up and distributing Django apps?
> > > Or is it just a matter of copying the relevant files?
> >
> > > steve
> >
> > > --
> > > 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.
>
>

-- 
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: Database Error at /admin/coltrane/entry/add/

2012-05-15 Thread Furbee
Have you checked your database to see that the field actually exists. If
you've added excerpt_html since you ran python manage.py syncdb you won't
have the field in the table. You would either need to use South to include
it, add it by hand to the table, or delete the table and run python
manage.py syncdb to have it recreated including this field.

Furbee

On Tue, May 15, 2012 at 8:57 AM, Gethin Llyn ab Alwyn wrote:

> Hello all!
>
> I'm following James Bennett's book Practical Django Projects, and I've got
> stuck at page 65 Chapter 4. On that page, there is an instruction to add an
> entry through the models created and added to admin interface under
> "Entries". I can populate the fields through the add link, but when it
> comes to saving an entry, this is the error I get:
> http://dpaste.com/hold/748531/
>
> This is the traceback of that error: http://dpaste.com/hold/748536/
>
> These are the admin.py http://dpaste.com/hold/748537/
>  models.py http://dpaste.com/hold/748538/
>   and settings.py  http://dpaste.com/hold/748529/
>
> I'm wondering where I went wrong, I've googled the error but I can't find
> anything specific. I'm sorry if it's a dumb question!
>
> Thanks
>
> Geth
>
>
>
> --
> 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.



How to

2012-05-15 Thread Sanjay M
I want to create a virtualenv pip, but I don't know how to Install 
virtualenv by running pip install virtualenv? Can anyone explain how to 
setup a virtualenv? 

Thanks in advance,

-Regards,
Sanjay M

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



Database Error at /admin/coltrane/entry/add/

2012-05-15 Thread Gethin Llyn ab Alwyn
Hello all!

I'm following James Bennett's book Practical Django Projects, and I've got
stuck at page 65 Chapter 4. On that page, there is an instruction to add an
entry through the models created and added to admin interface under
"Entries". I can populate the fields through the add link, but when it
comes to saving an entry, this is the error I get:
http://dpaste.com/hold/748531/

This is the traceback of that error: http://dpaste.com/hold/748536/

These are the admin.py http://dpaste.com/hold/748537/
 models.py http://dpaste.com/hold/748538/
  and settings.py  http://dpaste.com/hold/748529/

I'm wondering where I went wrong, I've googled the error but I can't find
anything specific. I'm sorry if it's a dumb question!

Thanks

Geth

-- 
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: Middleware order

2012-05-15 Thread Furbee
I don't know, but the revision middleware smells like it could be the
culprit. It is the last module in processing the request, and the first one
processing the response back up the chain. Maybe it is returning the old
data. Just a stab in the dark.

Furbee

On Tue, May 15, 2012 at 8:23 AM, David  wrote:

> Hi
>
> This is how my middleware is currently ordered:
>
> 'django.middleware.cache.UpdateCacheMiddleware',
> 'django.middleware.gzip.GZipMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'django.middleware.transaction.TransactionMiddleware',
> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
> 'django.middleware.cache.FetchFromCacheMiddleware',
> 'debug_toolbar.middleware.DebugToolbarMiddleware',
> 'reversion.middleware.RevisionMiddleware',
>
> My problem for example is this. I have a form editting an object. If I
> submit/save the object it is saved successfully, however when redirecting
> back to that edit object form the old data persists. I suspect this is down
> to the order of my middleware.
>
> Have I gone wrong somewhere?
>
> Thank you
>
> --
> 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/-/jkFCQ_SsvtoJ.
> 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.



Middleware order

2012-05-15 Thread David
Hi

This is how my middleware is currently ordered:

'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.gzip.GZipMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
'reversion.middleware.RevisionMiddleware',

My problem for example is this. I have a form editting an object. If I 
submit/save the object it is saved successfully, however when redirecting 
back to that edit object form the old data persists. I suspect this is down 
to the order of my middleware.

Have I gone wrong somewhere?

Thank you

-- 
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/-/jkFCQ_SsvtoJ.
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: Tree hierarchy with prefetch_related()?

2012-05-15 Thread Carsten Fuchs

Dear Russell,

thank you very much for your reply, with all the background info and 
details! It was very helpful!


:-D

Best regards,
Carsten



Am 15.05.2012 01:45, schrieb Russell Keith-Magee:

On Tue, May 15, 2012 at 1:20 AM, Carsten Fuchs  wrote:

Dear Django group,

I've never worked with hierarchic database models before, and would be very
grateful for your advice:

In my application I need a hierarchy of objects, e.g.


class Account(models.Model):
parent = models.ForeignKey('self', null=True, blank=True)
name   = models.CharField(max_length=60, blank=True)


In our application, there are only few instances of Account (about 150,
never changing much). So they would easily all fit into memory at once, and
we (possibly) have to traverse the entire hierarchy multiple times for each
view anyway.


My research and reading so far revealed that for modelling trees, usually
 django-mptt or django-treebeard are suggested.

Would you still recommend them even for trees with small number of instances
as outlined above?

Compared to mptt, the above model looks appealingly lightweight and simple
to me, and my original plan was, for each view request, to iterate once over
Account.objects.all() in order to assemble the tree "manually" as python
objects in memory (with a reference to the related Account instance at each
node), then use that for all further processing.

Does that sound like good Django practice?


The answer, as with all interesting questions, is "It Depends" :-)

The issue with hierarchical data in a database is always the cost of
querying and traversal. The simple approach that you've described
works fine -- but requires either O(N^2) queries to retrieve an N-deep
subtree, or requires in-view processing after retrieving the entire
tree. The benefit of MPTT and other tree-strategies is that they can
cut the number of queries for an arbitrary subtree down to something
closer to O(1).

However, the catch with all O(N) calculations is that it depends on
the size of N, and the number of times you're going to perform the
calculation. If, as you say, know you you will only have 150 items in
your tree, and this isn't going to change, and your site isn't going
to be under extreme load (so a little extra view processing won't
matter *too* much), the benefit of using MPTT (or a similar strategy)
may well be overwhelmed by the engineering cost. You may well be
better served using a simpler database model, and maybe looking into
caching specific subtrees as a way to mitigate the extra load you'll
be putting on the web server.


Then, doing further research, I found prefetch_related()
(https://docs.djangoproject.com/en/dev/ref/models/querysets/#prefetch-related)

Well, I have read this over and over again, but... is

Account.objects.all().prefetch_related('parent')

of any help here?


Not if you use it like that :-)

If you're operating on 'parent', you should be looking at
select_related(), not prefetch_related(). prefetch_related() works on
the "N" end of a 1-N relation (so,
Account.objects.prefetch_related('account_set') would make more
sense).

select_related returns a single row, but does a join over the 1 end of
a FK relationship so the single related object can be pre-populated.
This allows you to populate 2 objects with a single query (which,
assuming you have a database that does the join efficiently, should be
faster than 2 queries).

prefetch_related performs 2 queries -- one to retrieve the original
query, and one to retrieve the set of related objects; the results of
the second query are then used to populate the N objects related to
the objects retrieved by the first query.

That said -- if you're retrieving Account.objects.all(), and account
is related to self, then you've already retrieved everything. Adding
select_related or prefetch_related just means you'll be retrieving the
same objects twice (either through a join, or with a second query).
In this case you'd be better served by doing a single query for all
accounts, then building an in-memory index (a dict of pk->object), and
using that for subsequent lookups for tree traversal.

Yours,
Russ Magee %-)



--
   Cafu - the open-source Game and Graphics Engine
for multiplayer, cross-platform, real-time 3D Action
  Learn more at http://www.cafu.de

--
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: RedirectView with query_string = True and urlencoded unicode string

2012-05-15 Thread German Larrain M.
Andrew,

What bothers me is that the redirection setup works perfectly for any value
of "anything" or querystring; it only fails for this specific case.

How is that possible?

Thanks again

On Mon, May 14, 2012 at 7:10 PM, Andrew Bruce  wrote:

> You have passed 'anything' as a keyword argument that will get passed into
> your view. Unfortunately, you can't access it in your inline constructor
> call. Try subclassing RedirectView in views.py of your app.
>
> class SubRedirectView(RedirectView):
>
> query_string = True
>
> def get_redirect_url(self, **kwargs):
> return '/tmovil/planes/%s' % self.kwargs.get('anything', None)
>
> ~Drew
>
>
>
> On Mon, May 14, 2012 at 2:30 PM, Sławek Ehlert  wrote:
>
>>  As the error states:
>> You don't have a format argument in your '/tmovil/planes/%(anything)s'
>> string.
>>
>> Cheers
>>
>> Dnia 14.05.2012 23:19, Germán napisał(a):
>>
>> Hi. Please excuse my ignorance in this affairs.
>>
>>  For an specific 
>> URI,
>> I have the following error
>>
>> Traceback (most recent call last):
>>
>>
>>
>> File 
>> "/usr/local/lib/python2.6/**dist-packages/django/core/**handlers/base.py",
>> line 111, in get_response
>>response = callback(request, *callback_args, **callback_kwargs)
>>
>>   File 
>> "/usr/local/lib/python2.6/**dist-packages/django/views/**generic/base.py",
>> line 47, in view
>>return self.dispatch(request, *args, **kwargs)
>>
>>   File 
>> "/usr/local/lib/python2.6/**dist-packages/django/views/**generic/base.py",
>> line 68, in dispatch
>>return handler(request, *args, **kwargs)
>>
>>   File 
>> "/usr/local/lib/python2.6/**dist-packages/django/views/**generic/base.py",
>> line 151, in get
>>url = self.get_redirect_url(kwargs)
>>
>>   File 
>> "/usr/local/lib/python2.6/**dist-packages/django/views/**generic/base.py",
>> line 146, in get_redirect_url
>>return url % kwargs
>>
>>  TypeError: not enough arguments for format string
>>
>>
>>  The version I use is 1.3.1, and the urls.py line determining the
>> redirection is
>>
>>
>> (r'^planes/((?P.*))', 
>> RedirectView.as_view(url='/tmovil/planes/%(anything)s', query_string=True)),
>>
>>
>>  Is it possible the bug reported in ticket 
>> 16842is cause for this error? 
>> If not, should I file a bug?
>>
>>  Thanks
>>
>> On Saturday, August 13, 2011 12:47:30 AM UTC-4, Karen Tracey wrote:
>>>
>>> On Thu, Aug 11, 2011 at 10:48 AM, Slafs  wrote:
>>>
 Should i report a ticket?

>>>
>>> Yes please, that's a bug in Django.
>>>
>>> Karen
>>>  --
>>> http://tracey.org/kmt/
>>>
>>>  --
>> 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/-/SebYILZBuMAJ.
>> 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.
>>
>
>  --
> 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.
>



-- 
Germán Larraín M.

-- 
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: Store base64 data in database with imagefield ?

2012-05-15 Thread Frank Stüss
Hi,
maybe you could use http://djangosnippets.org/snippets/1669/

Greetings

Am Dienstag, den 15.05.2012, 17:36 +0530 schrieb Nikhil Verma:
> Hi 
> 
> I had similar situation where a textfield (which was made a markup
> editor by applying css and all) was given where people come in write
> anything and discuss about their topics; you can imagine like a forum.
> So i made some regular expressions to allow videos to show in an
> iframe and image to open up in a fancy box.
> Your case is similar to my case where image has to be shown in a fancy
> box when a user clicks on that.
> 
> 
> So i had to use jquery like this:-
> 
> Step 1) Write the importing scripts line in base.html
> 
> Step 2) Textfield which i was showing  on templates put a class and
> then call this jquery. Luckily that solved my problem
> 
> $(document).ready(function(){
> $("a.fancybox").fancybox({type:'image'});
> });
>  
> 
> Hope that helps you.
> 
> On Tue, May 15, 2012 at 5:25 PM, bussiere bussiere
>  wrote:
> Does anyone tried to store only Base64 info in databse of an
> image
> instead of a file with django image field ?
> 
> Do you have any idea how to do it ?
> 
> Or some hints to give me ?
> 
> regards and thanks
> Bussiere
> 
> 
> 
> "Les nouvelles technologies offrent pleins de nouvelles
> possibilités,
> pleins de possibilités d'erreurs surtout en fait."
> insurance.aes256 : http://goo.gl/gHyAY
> -BEGIN PGP PUBLIC KEY BLOCK-
> Version: GnuPG v1.2.1 (MingW32) - WinPT 0.7.96rc1
> 
> mQGiBE9sjdsRBADsY+DaDgj+pDuGLNVL6Dc+ghCxaEBK
> +9nwBvKPGIUocz13V42P
> 5Jn/NJ9zRgZNdg5XbhohN2ltas8Nr09rrRQXbBk8zjCg/Qr0a4LmfA3j128SwCfZ
> aTe5zlo/WSSuGv6kWGe/KZrLmiQoZRTDbZzqWyZxuJRkcpgsZc
> +jYRXJHwCgualT
> LpC23Ja3plM6J6noFaqAlMUEAKZGDadSS/BW4gckw9XqSHRex7/XyWU4sqVQlhMy
> 5DEIba7H8cU6grww
> +p/cYa3OCocv5Mycf6MbWDCPrtsG0X08u8PgEaE29BsLIgSm
> JF6r8y4Rgwj5xyCMTaxql82S+tZHyScpAoQ0a+xlTwxMZMuwK9p6b7oipXHL
> +UPN
> sDfkBACoYLS4PQPFotqWI96j83NNLwEumUzA6Rqyas8w6Xwr51quA65y/0nBmMmp
> l58tKN7eyc5+bIpRX5bGG6ktCUHnfzk9uvnG7peilWzYT6
> +AJ3gbBgMGLBPByJBN
> NH
> +nLjzsh4PzIxuSHLMiK5FkDNE2B95kaahIg42SQPT80LyvDLQlYnVzc2llcmVf
> cHJpdmF0ZSA8YnVzc2llcmVAZ21haWwuY29tPohZBBMRAgAZBQJPbI3bBAsHAwID
> FQIDAxYCAQIeAQIXgAAKCRAYpzZWoPP7b0h0AJ4n9feBF2FH4JUGhLU3XL3eIrOX
> 9gCfZbN4JHYl/nRLL4uHrceRUk1M9Pm5Ac0ET2yN3hAHAK5MypLMT50yklt1n/pQ
> MjrFXuvM9IQvVyQemHMUBqKqxPTVMJLn86mR5mTLMqs
> +WVAqei8GTsQeSSvHyIbk
> 8RvYrKY7aK2RVZUV1dHQ6PII0w3BI5C0L9GM/UyIq0VRXTW6zjp9hS/xgn5SrQad
> VIdGQKFVJa9h5/AzgjseARMQRkTQA/xX5/WmHxXaXUPhGxCeFsoqs53UFz1rkHYx
> mus2WiD0gHbJ58DiMlVmupeNumi4e9wa
> +mYuW4qGwjzsQn9ZFNdoiUFzQrqZa6o+
> Son
> +yZpGe/H9VidrWR5LhwD7AAMGBv9bhswvwpQ23X0kGItv7/jHVr/RJui7FAXY
> mOM4WAoUv/5ttPHf8OifWmeUDPlzm4txvR5a7t4hhVDehek1J7FEVvfG
> +ffcHiPP
> kkFaUv2EgrXziozt/Vkr2nngsKO5FpRJe9GSqn68uZirhwbkHSKX6LPNFTWSYR3E
> fefnsCaP82OJDBFGFMg2aMsz9QL85bg58fgHU972kLTePXUVAh3gaxb6qpjwZt2b
> yrCGJ/rnmIc/IWH8TJtHI5Yf3Abx2vlFTtzRH0CwVXuO0msjcfRS8NSm/ih5
> 0ssElxKU6IhGBBgRAgAGBQJPbI3eAAoJEBinNlag8/tvoBEAn2Yqu0UFC5OSjD1Y
> JQ00FFjNVestAJ0XctcbmhKaFuQ46SccW8C2JDG/xA==
> =+VZi
> -END PGP PUBLIC KEY BLOCK-
> 
> --
> 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.
> 
> 
> 
> 
> -- 
> Regards
> Nikhil Verma
> +91-958-273-3156
> 
> 
> 
> -- 
> 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.

-- 
Armaturen und Fittings Stüss e.K.
Frank Stüss + Inhaber
Tel. +49+6187-5019 + FAX. +49+6187-91725
Kilianstädter Straße 25 + D-61137 Schöneck
email frank.stu...@stuess.de 
Sitz Schöneck, HRA5340, Amtsgericht Hanau
USt.-ID: DE252310440 


Fördermitglied der Wirtschaftsjunioren 
Hanau-Gelnhausen-Schlüchtern
Umfassende Infos: http://www.wj-hanau.de
Senator #68128


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-u

Re: syncdb not creating columns in postgresql database

2012-05-15 Thread Michael Ackerman
Thanks for all the advice, I appreciate it.

On Tue, May 15, 2012 at 3:22 AM, doniyor  wrote:

> sorry for bad advice.. i thought i could work,,
>
> Am Dienstag, 15. Mai 2012 08:52:35 UTC+2 schrieb lawgon:
>
>> On Mon, 2012-05-14 at 09:06 -0700, doniyor wrote:
>> > delete your app from INSTALLED_APPS and syncdb, AND list it again in
>> > INSTALLED_APPS and syncdb again..
>> >
>> > if it doesnot work, do this:
>> >
>> > delete your db, then syncdb, then list your app in INSTALLED_APPS and
>> > syncdb again.
>>
>> this is bad advice. Syncdb will not give effect to changes within a
>> model. You need to carry out the change manually, or use a migration
>> tool like south.
>> --
>> regards
>> Kenneth Gonsalves
>>
>>
>>  --
> 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/-/EGUFvATrjO8J.
>
> 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: Pass data from html to views.

2012-05-15 Thread voss
Hi Am, thank you so much for the explanation. It is very helpful! And thank 
you for the idea of using ajax for my problem. I used dajax and it is 
working nicely!
 

On Tuesday, May 15, 2012 6:37:12 AM UTC-5, doniyor wrote:
>
> ajax is not that different from dajax.. actually almost same logic.. but 
> look, i try to explain how it should work.. 
>
> your index.html
>
>  type="hidden"/>click me
>
> and your ajaxfunction in the head of this index.html is this. 
>
> function ajaxfunction(){
> wanted_value = $("input[name='wanted_value']").val();
>  $.ajax({
> url: "/ajax/",
> type: "POST",
> data: {value_key: wanted_value}
>  }).complete(function(){
> alert('ajax worked yihuu!');
> });
> }
>
> and what it does is: it sends the data to /ajax/ url, and you catch it in 
> your urls and forward it to your views.. then process the data and you are 
> lucky.. 
>
>
>  
>
> Am Montag, 14. Mai 2012 15:19:06 UTC+2 schrieb voss:
>>
>> Hi Am, this sounds like a good idea, and I think it may work in my case 
>> (with dajax). Thank you!
>>
>> I have a question, though. I know that with dajax, the data is passed to 
>> the ajax views in ajax.py, and the result is then sent back to the same 
>> html page. But how exactly does your method work? (I have no experience in 
>> ajax.)
>> For example, how do you call an ajax function and how do you link it to 
>> views.py? 
>>
>>
>> On Saturday, May 12, 2012 12:16:45 AM UTC-5, doniyor wrote:
>>>
>>> just after your for loop, you can call ajax function which takes the 
>>> values of your newly created lists and submits this further to your view. 
>>> you dont need to load the whole page and the data will silently go to your 
>>> view. 
>>>
>>>
>>>
>>> Am Freitag, 11. Mai 2012 23:37:08 UTC+2 schrieb voss:

 Hello,

 I have a list that is created dynamically, and the code looks like:

 
 ...
 ...
 for (i=0; i>>
>>>

-- 
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/-/-faOVRd0D_cJ.
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: sweat-equity

2012-05-15 Thread Mike Dewhirst

On 15/05/2012 6:23pm, Marcin Tustin wrote:
You will want to have a lawyer advise you on your agreements. Although 
your drafting is pretty tight, it could be a bit tighter, 


I'd like to strike a decent balance. My own lawyer is a tad aggressive 
and to be honest I wouldn't sign anything he wrote. He makes you feel 
like you are putting on manacles. He is brilliant at licensing but must 
be worried about people finding loopholes in his contracts.


My approach is different. I want an equity agreement which assumes good 
intentions and delivers a valuable partnership. In the end I want golden 
handcuffs not manacles.


and there are certain legal issues that arise, such as how a "project" 
can own anything (such as copyrights). 


You are correct. This came from my own situation where currently my 
company "owns" the project. However, I can't expect anyone to invest in 
my company when the project is the real focus. In due course I expect to 
incorporate a new company which in effect will be the project. This is 
probably common enough to need addressing. I will develop and include a 
clause which makes that clear.



You'll likely want a jurisdiction and choice-of-law clause as well.


Right again. I need that for my own agreement so I'll add one.

Thanks Marcin

Mike



On Tue, May 15, 2012 at 1:40 AM, Mike Dewhirst > wrote:


This is off-topic except for people starting un(der)-funded Django
projects.

I have written some guidelines for stakeholders and developers
plus an equity-in-lieu-of-salary agreement.

The guidelines come from my own experience in projects. Apologies
to Scrum and eXtreme purists but I need to start easy.

https://github.com/mdewhirst/sweat-equity/wiki/_pages

I would really appreciate some constructive criticism, suggestions
etc before I try and use it for real.

You may find it useful for your own project. The idea is that a
venture capitalist will be more confident to invest if you have a
dev team locked in and the project is already kicking goals.

Thanks for any feedback.

Mike



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




--
Marcin Tustin
Tel: 07773 787 105

--
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: Store base64 data in database with imagefield ?

2012-05-15 Thread Nikhil Verma
Hi

I had similar situation where a textfield (which was made a markup editor
by applying css and all) was given where people come in write anything and
discuss about their topics; you can imagine like a forum.
So i made some regular expressions to allow videos to show in an iframe and
image to open up in a fancy box.
Your case is similar to my case where image has to be shown in a fancy box
when a user clicks on that.


So i had to use jquery like this:-

Step 1) Write the importing scripts line in base.html

Step 2) Textfield which i was showing  on templates put a class and then
call this jquery. Luckily that solved my problem

$(document).ready(function(){
$("a.fancybox").fancybox({type:'image'});
});
 

Hope that helps you.

On Tue, May 15, 2012 at 5:25 PM, bussiere bussiere wrote:

> Does anyone tried to store only Base64 info in databse of an image
> instead of a file with django image field ?
>
> Do you have any idea how to do it ?
>
> Or some hints to give me ?
>
> regards and thanks
> Bussiere
>
>
>
> "Les nouvelles technologies offrent pleins de nouvelles possibilités,
> pleins de possibilités d'erreurs surtout en fait."
> insurance.aes256 : http://goo.gl/gHyAY
> -BEGIN PGP PUBLIC KEY BLOCK-
> Version: GnuPG v1.2.1 (MingW32) - WinPT 0.7.96rc1
>
> mQGiBE9sjdsRBADsY+DaDgj+pDuGLNVL6Dc+ghCxaEBK+9nwBvKPGIUocz13V42P
> 5Jn/NJ9zRgZNdg5XbhohN2ltas8Nr09rrRQXbBk8zjCg/Qr0a4LmfA3j128SwCfZ
> aTe5zlo/WSSuGv6kWGe/KZrLmiQoZRTDbZzqWyZxuJRkcpgsZc+jYRXJHwCgualT
> LpC23Ja3plM6J6noFaqAlMUEAKZGDadSS/BW4gckw9XqSHRex7/XyWU4sqVQlhMy
> 5DEIba7H8cU6grww+p/cYa3OCocv5Mycf6MbWDCPrtsG0X08u8PgEaE29BsLIgSm
> JF6r8y4Rgwj5xyCMTaxql82S+tZHyScpAoQ0a+xlTwxMZMuwK9p6b7oipXHL+UPN
> sDfkBACoYLS4PQPFotqWI96j83NNLwEumUzA6Rqyas8w6Xwr51quA65y/0nBmMmp
> l58tKN7eyc5+bIpRX5bGG6ktCUHnfzk9uvnG7peilWzYT6+AJ3gbBgMGLBPByJBN
> NH+nLjzsh4PzIxuSHLMiK5FkDNE2B95kaahIg42SQPT80LyvDLQlYnVzc2llcmVf
> cHJpdmF0ZSA8YnVzc2llcmVAZ21haWwuY29tPohZBBMRAgAZBQJPbI3bBAsHAwID
> FQIDAxYCAQIeAQIXgAAKCRAYpzZWoPP7b0h0AJ4n9feBF2FH4JUGhLU3XL3eIrOX
> 9gCfZbN4JHYl/nRLL4uHrceRUk1M9Pm5Ac0ET2yN3hAHAK5MypLMT50yklt1n/pQ
> MjrFXuvM9IQvVyQemHMUBqKqxPTVMJLn86mR5mTLMqs+WVAqei8GTsQeSSvHyIbk
> 8RvYrKY7aK2RVZUV1dHQ6PII0w3BI5C0L9GM/UyIq0VRXTW6zjp9hS/xgn5SrQad
> VIdGQKFVJa9h5/AzgjseARMQRkTQA/xX5/WmHxXaXUPhGxCeFsoqs53UFz1rkHYx
> mus2WiD0gHbJ58DiMlVmupeNumi4e9wa+mYuW4qGwjzsQn9ZFNdoiUFzQrqZa6o+
> Son+yZpGe/H9VidrWR5LhwD7AAMGBv9bhswvwpQ23X0kGItv7/jHVr/RJui7FAXY
> mOM4WAoUv/5ttPHf8OifWmeUDPlzm4txvR5a7t4hhVDehek1J7FEVvfG+ffcHiPP
> kkFaUv2EgrXziozt/Vkr2nngsKO5FpRJe9GSqn68uZirhwbkHSKX6LPNFTWSYR3E
> fefnsCaP82OJDBFGFMg2aMsz9QL85bg58fgHU972kLTePXUVAh3gaxb6qpjwZt2b
> yrCGJ/rnmIc/IWH8TJtHI5Yf3Abx2vlFTtzRH0CwVXuO0msjcfRS8NSm/ih5
> 0ssElxKU6IhGBBgRAgAGBQJPbI3eAAoJEBinNlag8/tvoBEAn2Yqu0UFC5OSjD1Y
> JQ00FFjNVestAJ0XctcbmhKaFuQ46SccW8C2JDG/xA==
> =+VZi
> -END PGP PUBLIC KEY BLOCK-
>
> --
> 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.
>
>


-- 
Regards
Nikhil Verma
+91-958-273-3156

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



Store base64 data in database with imagefield ?

2012-05-15 Thread bussiere bussiere
Does anyone tried to store only Base64 info in databse of an image
instead of a file with django image field ?

Do you have any idea how to do it ?

Or some hints to give me ?

regards and thanks
Bussiere



"Les nouvelles technologies offrent pleins de nouvelles possibilités,
pleins de possibilités d'erreurs surtout en fait."
insurance.aes256 : http://goo.gl/gHyAY
-BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.2.1 (MingW32) - WinPT 0.7.96rc1

mQGiBE9sjdsRBADsY+DaDgj+pDuGLNVL6Dc+ghCxaEBK+9nwBvKPGIUocz13V42P
5Jn/NJ9zRgZNdg5XbhohN2ltas8Nr09rrRQXbBk8zjCg/Qr0a4LmfA3j128SwCfZ
aTe5zlo/WSSuGv6kWGe/KZrLmiQoZRTDbZzqWyZxuJRkcpgsZc+jYRXJHwCgualT
LpC23Ja3plM6J6noFaqAlMUEAKZGDadSS/BW4gckw9XqSHRex7/XyWU4sqVQlhMy
5DEIba7H8cU6grww+p/cYa3OCocv5Mycf6MbWDCPrtsG0X08u8PgEaE29BsLIgSm
JF6r8y4Rgwj5xyCMTaxql82S+tZHyScpAoQ0a+xlTwxMZMuwK9p6b7oipXHL+UPN
sDfkBACoYLS4PQPFotqWI96j83NNLwEumUzA6Rqyas8w6Xwr51quA65y/0nBmMmp
l58tKN7eyc5+bIpRX5bGG6ktCUHnfzk9uvnG7peilWzYT6+AJ3gbBgMGLBPByJBN
NH+nLjzsh4PzIxuSHLMiK5FkDNE2B95kaahIg42SQPT80LyvDLQlYnVzc2llcmVf
cHJpdmF0ZSA8YnVzc2llcmVAZ21haWwuY29tPohZBBMRAgAZBQJPbI3bBAsHAwID
FQIDAxYCAQIeAQIXgAAKCRAYpzZWoPP7b0h0AJ4n9feBF2FH4JUGhLU3XL3eIrOX
9gCfZbN4JHYl/nRLL4uHrceRUk1M9Pm5Ac0ET2yN3hAHAK5MypLMT50yklt1n/pQ
MjrFXuvM9IQvVyQemHMUBqKqxPTVMJLn86mR5mTLMqs+WVAqei8GTsQeSSvHyIbk
8RvYrKY7aK2RVZUV1dHQ6PII0w3BI5C0L9GM/UyIq0VRXTW6zjp9hS/xgn5SrQad
VIdGQKFVJa9h5/AzgjseARMQRkTQA/xX5/WmHxXaXUPhGxCeFsoqs53UFz1rkHYx
mus2WiD0gHbJ58DiMlVmupeNumi4e9wa+mYuW4qGwjzsQn9ZFNdoiUFzQrqZa6o+
Son+yZpGe/H9VidrWR5LhwD7AAMGBv9bhswvwpQ23X0kGItv7/jHVr/RJui7FAXY
mOM4WAoUv/5ttPHf8OifWmeUDPlzm4txvR5a7t4hhVDehek1J7FEVvfG+ffcHiPP
kkFaUv2EgrXziozt/Vkr2nngsKO5FpRJe9GSqn68uZirhwbkHSKX6LPNFTWSYR3E
fefnsCaP82OJDBFGFMg2aMsz9QL85bg58fgHU972kLTePXUVAh3gaxb6qpjwZt2b
yrCGJ/rnmIc/IWH8TJtHI5Yf3Abx2vlFTtzRH0CwVXuO0msjcfRS8NSm/ih5
0ssElxKU6IhGBBgRAgAGBQJPbI3eAAoJEBinNlag8/tvoBEAn2Yqu0UFC5OSjD1Y
JQ00FFjNVestAJ0XctcbmhKaFuQ46SccW8C2JDG/xA==
=+VZi
-END PGP PUBLIC KEY BLOCK-

-- 
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: Pass data from html to views.

2012-05-15 Thread doniyor
ajax is not that different from dajax.. actually almost same logic.. but 
look, i try to explain how it should work.. 

your index.html

click me

and your ajaxfunction in the head of this index.html is this. 

function ajaxfunction(){
wanted_value = $("input[name='wanted_value']").val();
 $.ajax({
url: "/ajax/",
type: "POST",
data: {value_key: wanted_value}
 }).complete(function(){
alert('ajax worked yihuu!');
});
}

and what it does is: it sends the data to /ajax/ url, and you catch it in 
your urls and forward it to your views.. then process the data and you are 
lucky.. 


 

Am Montag, 14. Mai 2012 15:19:06 UTC+2 schrieb voss:
>
> Hi Am, this sounds like a good idea, and I think it may work in my case 
> (with dajax). Thank you!
>
> I have a question, though. I know that with dajax, the data is passed to 
> the ajax views in ajax.py, and the result is then sent back to the same 
> html page. But how exactly does your method work? (I have no experience in 
> ajax.)
> For example, how do you call an ajax function and how do you link it to 
> views.py? 
>
>
> On Saturday, May 12, 2012 12:16:45 AM UTC-5, doniyor wrote:
>>
>> just after your for loop, you can call ajax function which takes the 
>> values of your newly created lists and submits this further to your view. 
>> you dont need to load the whole page and the data will silently go to your 
>> view. 
>>
>>
>>
>> Am Freitag, 11. Mai 2012 23:37:08 UTC+2 schrieb voss:
>>>
>>> Hello,
>>>
>>> I have a list that is created dynamically, and the code looks like:
>>>
>>> 
>>> ...
>>> ...
>>> for (i=0; i>>  {
>>>   dojo.create("li", {innerHTML: array[i]}, 
>>> dojo.byId("test"));
>>>  {
>>> 
>>>
>>> 
>>> 
>>> 
>>>
>>> How to pass the list values (i.e.,array[]) to views for further work?
>>>
>>> Thanks!  
>>
>>

-- 
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/-/sUM1WT6axzAJ.
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: Distributing Django apps

2012-05-15 Thread Steve Kilbane
I had a look at fagungis, but it didn't seem to be addressing the
issue. I didn't give much detail before, so that's not a surprise. :-)

So:

Stage 1: person X develops an open source Django app.

Stage 2: person X makes the app sources available somewhere (say,
github).

Stage 3: person Y retrieves the app sources from that location, and
configures according to their needs.

Stage 4: person Y deploys their instance of the app to their own
server.

Fagungis looked to be aimed at accomplishing stages 3 and 4, but it's
stage 2 I need some guidance on. Just as a case in point: is it
standard practice to upload settings.py, given that it contains the
secret key and local database configurations?

Thanks,

steve

On Apr 23, 1:19 pm, Eugenio Minardi  wrote:
> Hi,
>
> You can have a look athttp://pypi.python.org/pypi/django-fagungis/
>
> -- Eugenio
>
> On Mon, Apr 23, 2012 at 2:00 PM, Steve Kilbane
> wrote:
>
>
>
>
>
>
>
> > Hi all,
>
> > I'm new to Python. I'm in the process of developing an open-source
> > app. Is there a guide for packaging up and distributing Django apps?
> > Or is it just a matter of copying the relevant files?
>
> > steve
>
> > --
> > 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: syncdb not creating columns in postgresql database

2012-05-15 Thread doniyor
sorry for bad advice.. i thought i could work,, 

Am Dienstag, 15. Mai 2012 08:52:35 UTC+2 schrieb lawgon:
>
> On Mon, 2012-05-14 at 09:06 -0700, doniyor wrote: 
> > delete your app from INSTALLED_APPS and syncdb, AND list it again in 
> > INSTALLED_APPS and syncdb again.. 
> > 
> > if it doesnot work, do this: 
> > 
> > delete your db, then syncdb, then list your app in INSTALLED_APPS and 
> > syncdb again. 
>
> this is bad advice. Syncdb will not give effect to changes within a 
> model. You need to carry out the change manually, or use a migration 
> tool like south. 
> -- 
> regards 
> Kenneth Gonsalves 
>
>
>

-- 
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/-/EGUFvATrjO8J.
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: configure FileZilla upload destination!!

2012-05-15 Thread doniyor
okay thanks, but what about just pulling from repo instead of using ftp ? 
is it also a solution for this? 



Am Dienstag, 15. Mai 2012 10:53:32 UTC+2 schrieb @timkofu:
>
> You would configure the FTP daemon to allow that, yes. I use rsync or scp 
> and make sure the user I'm SSH-ing as has RW permissions on the desired 
> folder.
>
>
> On Tue, May 15, 2012 at 9:00 AM, doniyor wrote:
>
>> Hi Nik, thanks for help, but look, is it possible to configure the 
>> httpd.conf or anything which is responsible for upcoming files so that all 
>> files which i upload thru filezilla comes directly to that new folder i 
>> created for my djangoproject code to live? or do i have to copy files 
>> everytime from the folder which gets the uploaded files thru filezilla to 
>> my django folder? 
>>
>> thanks 
>>
>> Am Dienstag, 15. Mai 2012 03:30:10 UTC+2 schrieb Nikolas Stevenson-Molnar:
>>
>>> You'll get used to the Linux folder structure ;) 
>>>
>>> As for your problem, it sounds like your FTP user doesn't have 
>>> filesystem permissions to the folder you're trying to upload to. I would 
>>> change either owner or group for the folder. 
>>>
>>> _Nik 
>>>
>>> On 5/14/2012 6:19 PM, doniyor wrote: 
>>> > hi there, finally i got my djangoproject running on apache server 
>>> > after 3 days of thinking and googling.. i should say, linux folder 
>>> > hierarchie is sometimes not really intuitive to grasp.. 
>>> > 
>>> > my last problem though: i created a folder outside of the docroot and 
>>> > now all files are there. so good so far. but, when i try to upload 
>>> > some file thru filezilla, it says 550 could change to folder or 
>>> > something like this.. 
>>> > 
>>> > is it possible to confiure it so that i can directly upload the site 
>>> > and apache finds it? 
>>> > 
>>> > thanks 
>>> > -- 
>>> > 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/-/**uyCjvXLiZ8UJ.
>>> >  
>>>
>>> > To post to this group, send email to django-users@googlegroups.com. 
>>> > To unsubscribe from this group, send email to 
>>> > django-users+unsubscribe@**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 view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/1ViET_nP-qgJ.
>>
>> 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 view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Skn0cOAAkrEJ.
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: Help - Which IDE is best to use.

2012-05-15 Thread Karl Sutt
I use Vim, for everything involving writing -- coding, producing
papers/articles/reports, editing existing code and documents. It is not an
IDE, but a text editor, and it is absolutely excellent. Once you learn Vim,
you'll never want to use anything else (this is the case for me, at least).
The learning curve is rather steep, but after you get used to the different
modes, moving around and editing text efficiently, you start to see and
appreciate the power of the keyboard.

The downside is that it does not come with documentation built in, or the
code-checking and all that fancy stuff, like the bigger counterparts
(Eclipse, Aptana, pyCharm etc), but I personally don't need it.
The upside is that you are not tied to a specific IDE for a specific
language/framework. Vim lets you edit code and text efficiently, regardless
of what language/framework/task you are working with.

Obviously, my goal is not to say Vim (another example is GNU Emacs) is the
best editor ever, but to let people know of tools that have been around
since the beginning of first operating systems. They have been perfected
over the past 20 years by professionals, people who wrote the very
operating systems you use today.

For a beginner programmer, my suggestion is to always start with the
simplest tools possible, and not let one IDE do everything for you, without
you understanding the process. The downside is that you'll have to put in a
lot more effort to get going and you don't get the fancy add-ons. But the
upside (in my opinion, anyway) is that you gain a deeper understanding of
how these things fit together, giving you a better insight into whatever
you're working on. Don't be afraid to get your hands dirty :-)

Karl Sutt


On Tue, May 15, 2012 at 10:51 AM, cougar cougar wrote:

> ulipad , free  and build with wxpython
>
>
> 2012/5/14 Sanjay M 
>
>> I am new to Django, and I was confused in choosing a IDE between Eclipse
>> and aptana studio 3 to edit source code. Kindly suggest me a good one.
>>
>> Thank you in advance,
>> Regards,
>> Sanjay M
>>
>>
>>  --
>> 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/-/2LIdVrSuFpQJ.
>> 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.
>

-- 
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: Help - Which IDE is best to use.

2012-05-15 Thread cougar cougar
ulipad , free  and build with wxpython

2012/5/14 Sanjay M 

> I am new to Django, and I was confused in choosing a IDE between Eclipse
> and aptana studio 3 to edit source code. Kindly suggest me a good one.
>
> Thank you in advance,
> Regards,
> Sanjay M
>
>
>  --
> 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/-/2LIdVrSuFpQJ.
> 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: Help - Which IDE is best to use.

2012-05-15 Thread cougar cougar
Pycharm

2012/5/14 Sanjay M 

> I am new to Django, and I was confused in choosing a IDE between Eclipse
> and aptana studio 3 to edit source code. Kindly suggest me a good one.
>
> Thank you in advance,
> Regards,
> Sanjay M
>
>
>  --
> 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/-/2LIdVrSuFpQJ.
> 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: How to get the Exception Type

2012-05-15 Thread bruno desthuilliers
On May 15, 1:29 am, LJ  wrote:
> I am trying to add exception handling to my application.
> I have been reading the documentation on Django 
> Exceptions:https://docs.djangoproject.com/en/dev/ref/exceptions/
> I also found the list of Exceptions (both Django and Python).
> But for testing purposes, I need a way to handle all exceptions and to
> log the exception types:
>
> try:
>    addresses = Address.objects.all()
> except Exception:
>   logger.debug(Exception.Type)

try:
   addresses = Address.objects.all()
except Exception, e:
  # cheap
  logger.debug("got %s" % type(e))
  # better since you'll have the whole traceback
  logger.exception("oops : %s" % e)
  raise # IMPORTANT

-- 
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: How to get the Exception Type

2012-05-15 Thread bruno desthuilliers
On May 15, 2:31 am, Nikolas Stevenson-Molnar 
wrote:
> You could also log the whole stack trace using the traceback 
> module:http://docs.python.org/library/traceback.html

Or just use logging.exception, that takes care of all the gory details
in a single and simple call:

try:
   foo = bar.baaz()
except Exception, e: # 'exception as e' won't work with older python
versions
   logger.exception("oops")
   raise # if you don't handle the exception, let it propagate, 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: configure FileZilla upload destination!!

2012-05-15 Thread Timothy Makobu
You would configure the FTP daemon to allow that, yes. I use rsync or scp
and make sure the user I'm SSH-ing as has RW permissions on the desired
folder.


On Tue, May 15, 2012 at 9:00 AM, doniyor  wrote:

> Hi Nik, thanks for help, but look, is it possible to configure the
> httpd.conf or anything which is responsible for upcoming files so that all
> files which i upload thru filezilla comes directly to that new folder i
> created for my djangoproject code to live? or do i have to copy files
> everytime from the folder which gets the uploaded files thru filezilla to
> my django folder?
>
> thanks
>
> Am Dienstag, 15. Mai 2012 03:30:10 UTC+2 schrieb Nikolas Stevenson-Molnar:
>
>> You'll get used to the Linux folder structure ;)
>>
>> As for your problem, it sounds like your FTP user doesn't have
>> filesystem permissions to the folder you're trying to upload to. I would
>> change either owner or group for the folder.
>>
>> _Nik
>>
>> On 5/14/2012 6:19 PM, doniyor wrote:
>> > hi there, finally i got my djangoproject running on apache server
>> > after 3 days of thinking and googling.. i should say, linux folder
>> > hierarchie is sometimes not really intuitive to grasp..
>> >
>> > my last problem though: i created a folder outside of the docroot and
>> > now all files are there. so good so far. but, when i try to upload
>> > some file thru filezilla, it says 550 could change to folder or
>> > something like this..
>> >
>> > is it possible to confiure it so that i can directly upload the site
>> > and apache finds it?
>> >
>> > thanks
>> > --
>> > 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/-/**uyCjvXLiZ8UJ.
>>
>> > To post to this group, send email to django-users@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > django-users+unsubscribe@**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 view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/1ViET_nP-qgJ.
>
> 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: syncdb not creating columns in postgresql database

2012-05-15 Thread Timothy Makobu
You might want to look into using  South http://south.aeracode.org/

At first i thought it was cool, then I needed to alter a table with
important data on it, and that's when I saw it's usefulness.


On Tue, May 15, 2012 at 9:52 AM, kenneth gonsalves
wrote:

> On Mon, 2012-05-14 at 09:06 -0700, doniyor wrote:
> > delete your app from INSTALLED_APPS and syncdb, AND list it again in
> > INSTALLED_APPS and syncdb again..
> >
> > if it doesnot work, do this:
> >
> > delete your db, then syncdb, then list your app in INSTALLED_APPS and
> > syncdb again.
>
> this is bad advice. Syncdb will not give effect to changes within a
> model. You need to carry out the change manually, or use a migration
> tool like south.
> --
> 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: Help - Which IDE is best to use.

2012-05-15 Thread Timothy Makobu
PyCharm. Spend the $$, its worth it.


On Tue, May 15, 2012 at 10:13 AM, Phang Mulianto wrote:

> Again?
>
> Well i just use a simple text editor
> On May 15, 2012 2:53 PM, "Harold.Miao"  wrote:
>
>> it is not a free sw
>>
>> 2012/5/15 Ezequiel Bertti 
>>
>>> 10x pycharm...
>>>
>>> the best one...
>>>
>>> the only one made to work with python and django...
>>>
>>>
>>> On Tue, May 15, 2012 at 12:28 AM, Rivsen  wrote:
>>>
 Maybe you can try Sublime Text 2. It's a good IDE or Editor.

 2012/5/15 Harold.Miao 

 maybe  eclipse+pydev  is good  IDE
>
>
> 2012/5/15 doniyor 
>
>> @Aaron: you are more than right,
>>
>>
>>
>> Am Montag, 14. Mai 2012 19:44:35 UTC+2 schrieb Aaron C. de Bruyn:
>>
>>> Try here:
>>>
>>> https://code.djangoproject.**com/wiki/DjangoResources#**
>>> IntegratedDevelopmentEnvironme**nts
>>>
>>> But keep in mind, a good carpenter can work with a $5 hammer or a
>>> $50
>>> hammer.  The tools don't make the developer.  (Although they can
>>> make
>>> the job of a good developer easier.)
>>>
>>> -A
>>>
>>> On Mon, May 14, 2012 at 10:39 AM, Sandro Dutra 
>>> wrote:
>>> > Again... Please search before create one more of this messages
>>> about "What's
>>> > IDE is best?". The best IDE is the IDE you fell confortable using.
>>> There 666
>>> > topics about this here, search...
>>> >
>>> >
>>> > 2012/5/14 Eneldo Serrata 
>>> >>
>>> >> Aptana or Eclipse with PyDev Plugin
>>> >> http://pydev.org/
>>> >>
>>> >> El 14/05/2012, a las 11:56, Sanjay M escribió:
>>> >>
>>> >> I am new to Django, and I was confused in choosing a IDE between
>>> Eclipse
>>> >> and aptana studio 3 to edit source code. Kindly suggest me a good
>>> one.
>>> >>
>>> >> Thank you in advance,
>>> >> Regards,
>>> >> Sanjay M
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> 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/-/**2LIdVrSuFpQJ.
>>>
>>> >> To post to this group, send email to
>>> django-users@googlegroups.com.
>>> >> To unsubscribe from this group, send email to
>>> >> django-users+unsubscribe@**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+unsubscribe@**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+unsubscribe@**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 view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/IBuwOYUQasQJ.
>>
>> 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.
>>
>
>
>
> --
>
> Best Regards,
> Harold Miao
>
>
>  --
> 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

Re: sweat-equity

2012-05-15 Thread Marcin Tustin
You will want to have a lawyer advise you on your agreements. Although your
drafting is pretty tight, it could be a bit tighter, and there are certain
legal issues that arise, such as how a "project" can own anything (such as
copyrights). You'll likely want a jurisdiction and choice-of-law clause as
well.

On Tue, May 15, 2012 at 1:40 AM, Mike Dewhirst wrote:

> This is off-topic except for people starting un(der)-funded Django
> projects.
>
> I have written some guidelines for stakeholders and developers plus an
> equity-in-lieu-of-salary agreement.
>
> The guidelines come from my own experience in projects. Apologies to Scrum
> and eXtreme purists but I need to start easy.
>
>
> https://github.com/mdewhirst/**sweat-equity/wiki/_pages
>
> I would really appreciate some constructive criticism, suggestions etc
> before I try and use it for real.
>
> You may find it useful for your own project. The idea is that a venture
> capitalist will be more confident to invest if you have a dev team locked
> in and the project is already kicking goals.
>
> Thanks for any feedback.
>
> Mike
>
>
>
> --
> 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+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en
> .
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Help - Which IDE is best to use.

2012-05-15 Thread Phang Mulianto
Again?

Well i just use a simple text editor
On May 15, 2012 2:53 PM, "Harold.Miao"  wrote:

> it is not a free sw
>
> 2012/5/15 Ezequiel Bertti 
>
>> 10x pycharm...
>>
>> the best one...
>>
>> the only one made to work with python and django...
>>
>>
>> On Tue, May 15, 2012 at 12:28 AM, Rivsen  wrote:
>>
>>> Maybe you can try Sublime Text 2. It's a good IDE or Editor.
>>>
>>> 2012/5/15 Harold.Miao 
>>>
>>> maybe  eclipse+pydev  is good  IDE


 2012/5/15 doniyor 

> @Aaron: you are more than right,
>
>
>
> Am Montag, 14. Mai 2012 19:44:35 UTC+2 schrieb Aaron C. de Bruyn:
>
>> Try here:
>>
>> https://code.djangoproject.**com/wiki/DjangoResources#**
>> IntegratedDevelopmentEnvironme**nts
>>
>> But keep in mind, a good carpenter can work with a $5 hammer or a $50
>> hammer.  The tools don't make the developer.  (Although they can make
>> the job of a good developer easier.)
>>
>> -A
>>
>> On Mon, May 14, 2012 at 10:39 AM, Sandro Dutra 
>> wrote:
>> > Again... Please search before create one more of this messages
>> about "What's
>> > IDE is best?". The best IDE is the IDE you fell confortable using.
>> There 666
>> > topics about this here, search...
>> >
>> >
>> > 2012/5/14 Eneldo Serrata 
>> >>
>> >> Aptana or Eclipse with PyDev Plugin
>> >> http://pydev.org/
>> >>
>> >> El 14/05/2012, a las 11:56, Sanjay M escribió:
>> >>
>> >> I am new to Django, and I was confused in choosing a IDE between
>> Eclipse
>> >> and aptana studio 3 to edit source code. Kindly suggest me a good
>> one.
>> >>
>> >> Thank you in advance,
>> >> Regards,
>> >> Sanjay M
>> >>
>> >>
>> >>
>> >> --
>> >> 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/-/**2LIdVrSuFpQJ.
>>
>> >> To post to this group, send email to django-users@googlegroups.com.
>>
>> >> To unsubscribe from this group, send email to
>> >> django-users+unsubscribe@**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+unsubscribe@**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+unsubscribe@**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 view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/IBuwOYUQasQJ.
>
> 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.
>



 --

 Best Regards,
 Harold Miao


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