Re: New to Django (stuck at the end of the tutorial)

2016-04-29 Thread Mie Rex
I just did another try with a different version of Django which is same version of Django used in the book I am reading. It turns out where the project(mysite) saved has no effect on it. I think it's how Django suppose to behave. Perhaps you are not working with the same version of Django as

Display image instead of text in related-widget-wrapper of FK picker in admin interface.

2016-04-29 Thread Patrik Mjartan
How would one go about changing this: into something where instead of 1, 2 there are pictures that correspond to those objects. The class itself is very simple: Note that I

Re: Add id to url after login user

2016-04-29 Thread Dariusz Mysior
Sory I thought that You are from Poland like I :) Hmm I try Your code but there is comment name 'request' is not defined W dniu piątek, 29 kwietnia 2016 09:36:30 UTC+2 użytkownik Dariusz Mysior napisał: > > I use FormView do login user, but I don't know how I should add his ID > number to

Re: Is it good idea to transition from MS Access to a webapp? And if so, is Django a good tool to do it?

2016-04-29 Thread Fred Stluka
Patrik, Yes, Django can be used for that.  The "ORM" features and the "templates" and "views" of Django make it very easy to do a "CRUD" app for a users to create/ retrieve/update/delete data in any RDBMS.  There are some built-in security features

Re: Sorry about this post

2016-04-29 Thread m1chael
. On Fri, Apr 29, 2016 at 1:22 PM, Gary Roach wrote: > I'm sorry that I am tying up everything with this message but am having > problems with one of my mailing list accounts and need to trouble shoot. > None of my posts are showing up. > > If anyone sees this just

Sorry about this post

2016-04-29 Thread Gary Roach
I'm sorry that I am tying up everything with this message but am having problems with one of my mailing list accounts and need to trouble shoot. None of my posts are showing up. If anyone sees this just add something simple and return it to me. I really appreciate your help. Gary R -- You

Is it good idea to transition from MS Access to a webapp? And if so, is Django a good tool to do it?

2016-04-29 Thread Patrik Mjartan
Hi, I work for a very small company that I developed an application for, all using MS Access (it has back-end MS Access db - although this is planned to change to some more robust RDBMS, and a front-end app built in MS Access). Currently this app is used to calculate the exact wages of some

Re: Add id to url after login user

2016-04-29 Thread Michal Petrucha
On Fri, Apr 29, 2016 at 07:18:28AM -0700, Dariusz Mysior wrote: > Hej ja po angielsku słabo piszę, chciałem się nauczyć Class Based View i na > tym zrobić system rejestracji, masz pomysł jak to dalej zrobić? Chciałbym > wyciagnąć pk i dodać do adresu succes_url... Heh, Michal, nie Michał. (-: O 

Re: Add id to url after login user

2016-04-29 Thread Dariusz Mysior
Hej ja po angielsku słabo piszę, chciałem się nauczyć Class Based View i na tym zrobić system rejestracji, masz pomysł jak to dalej zrobić? Chciałbym wyciagnąć pk i dodać do adresu succes_url... W dniu piątek, 29 kwietnia 2016 09:36:30 UTC+2 użytkownik Dariusz Mysior napisał: > > I use

Re: Add id to url after login user

2016-04-29 Thread Michal Petrucha
On Fri, Apr 29, 2016 at 01:12:23AM -0700, Dariusz Mysior wrote: > Hi I try learn Django, and I want do authenticated system in CBV. My nxt > try is that I wright it like below but in url adrees instead of id number I > have "None" :/ > > success_url = '/users/profile/'+ str(MysiteUser.pk)

Re: Add id to url after login user

2016-04-29 Thread Dariusz Mysior
Hi I try learn Django, and I want do authenticated system in CBV. My nxt try is that I wright it like below but in url adrees instead of id number I have "None" :/ success_url = '/users/profile/'+ str(MysiteUser.pk) W dniu piątek, 29 kwietnia 2016 09:36:30 UTC+2 użytkownik Dariusz Mysior

Re: Add id to url after login user

2016-04-29 Thread Michal Petrucha
On Fri, Apr 29, 2016 at 12:36:30AM -0700, Dariusz Mysior wrote: > I use FormView do login user, but I don't know how I should add his ID > number to success url that when he will log in adres will be > users/profile/id > > urls.py > > from users.views import RegisterView, LoginView,

Add id to url after login user

2016-04-29 Thread Dariusz Mysior
I use FormView do login user, but I don't know how I should add his ID number to success url that when he will log in adres will be users/profile/id urls.py from users.views import RegisterView, LoginView, ProfileView urlpatterns = [ url(r'^register/$', RegisterView.as_view(),

Django docs confusing about timestamps and timezones

2016-04-29 Thread Torsten Bronger
Hallöchen! On , it says: For instance, use utcfromtimestamp() instead of fromtimestamp() – and don’t forget to set tzinfo to utc. But isn't it more senseful to say fromtimestamp(time.time(),