Re: Can I remove the django source dir after install?

2009-12-30 Thread Yusuf Mohsinally
Thanks. I will be keeping it on the dev machine. I wanted to remove it
from the prod machine.





On Wed, Dec 30, 2009 at 7:51 PM, Jirka Vejrazka
 wrote:
>> - download the tar file
>> - extract to a dir c:\django-1.1.1
>> - run "python setup.py install"
>>
>> Can I now delete the c:\django-1.1.1 dir? (it seems like all the
>> necessary files have been copied over to the python site library dir.
>> Or, is there something that I may still need in the c:\django-1.1.1
>> dir?
>
> Yes, you can safely do that. You can also keep it as reading the
> source files is a great way to learn a few tricks and techniques and
> it's a bit easier than digging in python's site-packages :)
>
>  Cheers
>
>    Jirka
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>
>

--

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




Re: SQL transaction style in django?

2009-12-19 Thread Yusuf Mohsinally
Thanks! The blog post was very very helpful.

In your experience, would it be better to use the
"@transaction.commit_on_success" decorator for the functions that need
it, or turn on transaction middleware for the whole app?

Thanks




On Sat, Dec 19, 2009 at 10:34 AM, Christophe Pettus  wrote:
>
> On Dec 18, 2009, at 9:58 PM, yummy_droid wrote:
>> I read that we can overwrite the save() for any model to do something
>> before/after its save. But my issue is, how can I be sure that what i
>> save + what the model needs to save happen as a transaction, so if
>> either fails, the whole thing fails.
>
> Django has a reasonably complete set of transaction control
> functionality.  The official documentation is at:
>
>        http://docs.djangoproject.com/en/dev/topics/db/transactions/
>
> I also wrote a blog entry about it:
>
>        
> http://thebuild.com/blog/2009/11/07/django-postgresql-and-transaction-management/
>
> (The blog entry is with regards to PostgreSQL, but it's pretty
> generally applicable.)
>
> None of it involved overriding .save(), I'm pleased to report.
>
> --
> -- Christophe Pettus
>    ...@thebuild.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-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>
>

--

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




Re: Help: Should I use Admin site for everything?

2009-12-17 Thread Yusuf Mohsinally
thanks. is there a way for me to easily include the different things
from the admin site, like "history", form field widgets (date picker),
etc. in my own app?





On Thu, Dec 17, 2009 at 12:50 AM, Ales Zoulek  wrote:
> It realy depends on the level of customisation you'll need.
> From my experience there are always new and new feature requests and it
> forces you to hack default admin more and more. And in one point you'll see
> that creating own app would be easier.
> And don't forget that admin is supposed to be used by "trusted
> users". http://www.djangobook.com/en/1.0/chapter17/
> That may not been always the case in bigger systems.
> Regards,
> Ales
> --
> Ales Zoulek
> Jabber: ales.zou...@gmail.com
> --
>
>
> On Wed, Dec 16, 2009 at 12:25 PM, yummy_droid  wrote:
>>
>> Hi,
>>
>> I want to create a inventory management site, which will be used by
>> employees. All will need logins to work in the site. I was wondering
>> if its good practice to create a whole site based within the supplied
>> Admin site in django?
>>
>> I really like to look and helper items in the admin site, (e.g. date/
>> time picker for date/time fields, "save/save and continue/save and add
>> another" buttons, etc.). I tried using the django forms module and it
>> didn't have any date-time pickers, etc.
>>
>> I may need to add some specific things to tailor some pages for
>> specific things, but mostly, it will just deal with data entry into
>> the models.
>>
>> The main thing I forsee is creating custom reports/graphs. Is there a
>> way to add pages to the Admin interface so that there a standard menu
>> list of all possible things (adding items, dashboard link, searching,
>> etc) that we want to specify when someone logs in?
>>
>> Thanks,
>>
>> Yusuf
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

--

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