Re: Django Login/Session Not Sticking
I do have the same issue with django admin, and definitely no custom js there. any other ideas??? Am Freitag, 6. Juni 2014 13:50:31 UTC+2 schrieb Juergen Schackmann: > > none of my js is fiddling with sessions/cookies. but there are numerous > third party js packages included (for ads etc). so any of those could do > strange things, this would also explain why it broke all of a sudden. could > you provide more details on the underlying issue that you had. this would > help me to search for the issue. > > Am Freitag, 6. Juni 2014 06:32:30 UTC+2 schrieb somecallitblues: >> >> I know this may sound silly but is there some kind of JavaScript code >> that may be messing things up? Had a similar issue before and it was >> related to JavaScript stupidity. >> On 05/06/2014 10:39 pm, "Juergen Schackmann" >> wrote: >> >>> - all app servers are running the same code with same settings. >>> - DNS load balancing was never used >>> - just did a htop, no unexpected or old processes >>> >>> Am Donnerstag, 5. Juni 2014 11:37:30 UTC+2 schrieb Erik Cederstrand: >>>> >>>> Den 04/06/2014 kl. 13.55 skrev Juergen Schackmann < >>>> juergen.s...@gmail.com>: >>>> >>>> > The production site is served via a load balancer and 8 application >>>> servers. Even stranger: if I test the same code (with the same settings) >>>> on >>>> a test server, that is not load balanced and basically has not traffic, >>>> everything is working fine. >>>> >>>> Are you sure all app servers are running the same code? Same >>>> settings.py? DNS load balancing you forgot about? Maybe you have some >>>> lingering app server processes that were never shut down? Check the start >>>> date of all WSGI processes to be sure. >>>> >>>> Erik >>>> >>>> >>>> PS: You may have sweaty palms, but please don't triple post the same >>>> question to the list. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to django-users...@googlegroups.com. >>> To post to this group, send email to django...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/django-users. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/593d1369-a6a2-4457-b911-952bb0576877%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/django-users/593d1369-a6a2-4457-b911-952bb0576877%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/46433dff-8688-4132-9e3b-9fc3ee3c21d5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Django Login/Session Not Sticking
none of my js is fiddling with sessions/cookies. but there are numerous third party js packages included (for ads etc). so any of those could do strange things, this would also explain why it broke all of a sudden. could you provide more details on the underlying issue that you had. this would help me to search for the issue. Am Freitag, 6. Juni 2014 06:32:30 UTC+2 schrieb somecallitblues: > > I know this may sound silly but is there some kind of JavaScript code that > may be messing things up? Had a similar issue before and it was related to > JavaScript stupidity. > On 05/06/2014 10:39 pm, "Juergen Schackmann" > wrote: > >> - all app servers are running the same code with same settings. >> - DNS load balancing was never used >> - just did a htop, no unexpected or old processes >> >> Am Donnerstag, 5. Juni 2014 11:37:30 UTC+2 schrieb Erik Cederstrand: >>> >>> Den 04/06/2014 kl. 13.55 skrev Juergen Schackmann < >>> juergen.s...@gmail.com>: >>> >>> > The production site is served via a load balancer and 8 application >>> servers. Even stranger: if I test the same code (with the same settings) on >>> a test server, that is not load balanced and basically has not traffic, >>> everything is working fine. >>> >>> Are you sure all app servers are running the same code? Same >>> settings.py? DNS load balancing you forgot about? Maybe you have some >>> lingering app server processes that were never shut down? Check the start >>> date of all WSGI processes to be sure. >>> >>> Erik >>> >>> >>> PS: You may have sweaty palms, but please don't triple post the same >>> question to the list. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users...@googlegroups.com . >> To post to this group, send email to django...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/593d1369-a6a2-4457-b911-952bb0576877%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/593d1369-a6a2-4457-b911-952bb0576877%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9a1d0dee-87b9-43ef-a614-a08c30c35cad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Django Login/Session Not Sticking
- all app servers are running the same code with same settings. - DNS load balancing was never used - just did a htop, no unexpected or old processes Am Donnerstag, 5. Juni 2014 11:37:30 UTC+2 schrieb Erik Cederstrand: > > Den 04/06/2014 kl. 13.55 skrev Juergen Schackmann >: > > > The production site is served via a load balancer and 8 application > servers. Even stranger: if I test the same code (with the same settings) on > a test server, that is not load balanced and basically has not traffic, > everything is working fine. > > Are you sure all app servers are running the same code? Same settings.py? > DNS load balancing you forgot about? Maybe you have some lingering app > server processes that were never shut down? Check the start date of all > WSGI processes to be sure. > > Erik > > > PS: You may have sweaty palms, but please don't triple post the same > question to the list. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/593d1369-a6a2-4457-b911-952bb0576877%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Django Login/Session Not Sticking
*PLEASE HELP: I am not sure if this is a bug or caused by my code. But this is a serious issue for my production site.* To get some more debug information, I have created this Middleware: from django.conf import settings class SessionDebugMiddleware(object): def process_response(self, request, response): session = request.session user = getattr(request, 'user', None) if user: user=user.id session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME, None) response['X-Meta-Requ'] = '{0},{1},{2},{3}'.format(session_key, session.get('_auth_user_id'), session.get('_auth_user_backend','---'), user) return response If I hit the refresh button 10 times, 8 times I will get this header: X-Meta-Requ:igv0xshezhdxh50kks9x00r0l67mx0sk,None,---,None 2 times I will get this header: X-Meta-Requ:igv0xshezhdxh50kks9x00r0l67mx0sk,330619,django.contrib.auth.backends.ModelBackend,330619 It seems be be random and does not follow any logic. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/13b90bb8-7497-4a49-82e5-0a478ca1d1de%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Django Login/Session Not Sticking
*PLEASE HELP: I am not sure if this is a bug or caused by my code. But this is a serious issue for my production site.* To get some more debug information, I have created this Middleware: from django.conf import settings class SessionDebugMiddleware(object): def process_response(self, request, response): session = request.session user = request.user session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME, None) x_meta_requ = '{0},{1},{2},{3}'.format(session_key, session.get('_auth_user_id'), session.get('_auth_user_backend','---'), user.id) response['X-Meta-Requ'] = '{0},{1},{2},{3}'.format(session_key, session.get('_auth_user_id'), session.get('_auth_user_backend','---'), user.id) return response If I hit the refresh button 10 times, 8 times I will get this header: X-Meta-Requ:igv0xshezhdxh50kks9x00r0l67mx0sk,None,---,None 2 times I will get this header: X-Meta-Requ:igv0xshezhdxh50kks9x00r0l67mx0sk,330619,django.contrib.auth.backends.ModelBackend,330619 It seems be be random and does not follow any logic. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bafd1074-ebab-4f3f-bf7d-5c8c7dd8a4eb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Django Login/Session Not Sticking
*PLEASE HELP: I am not sure if this is a bug or caused by my code. But this is a serious issue for my production site.* To get some more debug information, I have created this Middleware: from django.conf import settings class SessionDebugMiddleware(object): def process_response(self, request, response): session = request.session user = request.user session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME, None) x_meta_requ = '{0},{1},{2},{3}'.format(session_key, session.get('_auth_user_id'), session.get('_auth_user_backend','---'), user.id) response['X-Meta-Requ'] = '{0},{1},{2},{3}'.format(session_key, session.get('_auth_user_id'), session.get('_auth_user_backend','---'), user.id) return response If I hit the refresh button 10 times, 8 times I will get this header: igv0xshezhdxh50kks9x00r0l67mx0sk,None,---,None 2 times I will get this header: X-Meta-Requ:igv0xshezhdxh50kks9x00r0l67mx0sk,330619,django.contrib.auth.backends.ModelBackend,330619 It seems be be random and does not follow any logic. Am Mittwoch, 4. Juni 2014 13:55:38 UTC+2 schrieb Juergen Schackmann: > > Hi all, > this question refers to this previous question: > https://groups.google.com/forum/#!topic/django-users/8IXEvfU72S4. > However, it seems like the problem is slightly different, I decided to open > a new question: > > After my site has been up and running for a while in production, I > suddenly have a problem with my users loging into it. > >1. I have protected certain views/pages with the login_required >decorator and I am also using the django admin. >2. When an anonymous user hits any of these pages, he is redirected to >the login page. >3. When this anonymous user adds its credentials, the POST request is >successful and he is redirected to the inital page. At the same time, the >user gets a new sessionid (as expected) >4. However, now the results get very unreliable. When pressing reload >or when navigating to other pages (that require a login), either of the 2 >outcomes might happen: > > >- a) The user is identified and the page is displayed correctly >- b) The user is redirect to the login page. > > I have checked the content of the session via the shell, and nothing is > changing there. > > The production site is served via a load balancer and 8 application > servers. Even stranger: if I test the same code (with the same settings) on > a test server, that is not load balanced and basically has not traffic, > everything is working fine. > > I am running Django 1.6 on Ubuntu with Apache and mod_wsgi in daemon mode > behind SSL and I am using the Session database backend. I am using > django-allauth.account for account management/login. My Session settings > are like this: > > SESSION_COOKIE_HTTPONLY = True > SESSION_COOKIE_AGE = 60*60*24 > SESSION_COOKIE_SECURE = True > > So I have the following questions/ideas? > > 1. Can this be related to loadbalancing in anyway? My understanding was > that Django does not need sticky sessions, when the DB session backend is > used. > > 2. Can this be related to a threading issue? > > 3. Can this be related to high load? > > 4. Can this be related to a decoding issue: > https://github.com/django/django/blob/master/django/contrib/sessions/backends/base.py#L83. > > However, I have not found any log entries that refer to "Session data > corrupted". > > Any other hints are welcome. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1fcd32ac-8252-4370-ab13-118924d845f7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: URLs: mymodel_id vs object_id vs pk ....
I am not aware of any best practices for wording here, though my general recommendaton would the wording should be identical to the attribute name of the model, e.d. 'id', 'slug' or whatever. I would not add the "mymodel" prefix as long as it becomes clear from the context to which model it belongs to. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/27c1ef21-12a1-4ad7-8552-ce9747e9b819%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: django-loses-currently-logged-in-user
I have opend another question for this issue: https://groups.google.com/forum/#!topic/django-users/MBcu77WFCMw Am Dienstag, 3. Juni 2014 14:28:52 UTC+2 schrieb Juergen Schackmann: > > Hi all, > > I have a issue, with users not being able to log into my site anymore > (after it worked fine for months). > > Please find details here: > https://stackoverflow.com/questions/24015143/django-loses-currently-logged-in-user > > Any help is highly appreciated. > > Regards, > Juergen > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/24cc19fd-8102-4ca3-b04f-f050e262aa1d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Django Login/Session Not Sticking
Hi all, this question refers to this previous question: https://groups.google.com/forum/#!topic/django-users/8IXEvfU72S4. However, it seems like the problem is slightly different, I decided to open a new question: After my site has been up and running for a while in production, I suddenly have a problem with my users loging into it. 1. I have protected certain views/pages with the login_required decorator and I am also using the django admin. 2. When an anonymous user hits any of these pages, he is redirected to the login page. 3. When this anonymous user adds its credentials, the POST request is successful and he is redirected to the inital page. At the same time, the user gets a new sessionid (as expected) 4. However, now the results get very unreliable. When pressing reload or when navigating to other pages (that require a login), either of the 2 outcomes might happen: - a) The user is identified and the page is displayed correctly - b) The user is redirect to the login page. I have checked the content of the session via the shell, and nothing is changing there. The production site is served via a load balancer and 8 application servers. Even stranger: if I test the same code (with the same settings) on a test server, that is not load balanced and basically has not traffic, everything is working fine. I am running Django 1.6 on Ubuntu with Apache and mod_wsgi in daemon mode behind SSL and I am using the Session database backend. I am using django-allauth.account for account management/login. My Session settings are like this: SESSION_COOKIE_HTTPONLY = True SESSION_COOKIE_AGE = 60*60*24 SESSION_COOKIE_SECURE = True So I have the following questions/ideas? 1. Can this be related to loadbalancing in anyway? My understanding was that Django does not need sticky sessions, when the DB session backend is used. 2. Can this be related to a threading issue? 3. Can this be related to high load? 4. Can this be related to a decoding issue: https://github.com/django/django/blob/master/django/contrib/sessions/backends/base.py#L83. However, I have not found any log entries that refer to "Session data corrupted". Any other hints are welcome. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2f55c407-a3b2-4a4e-a709-c4bf73669a59%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
django-loses-currently-logged-in-user
Hi all, I have a issue, with users not being able to log into my site anymore (after it worked fine for months). Please find details here: https://stackoverflow.com/questions/24015143/django-loses-currently-logged-in-user Any help is highly appreciated. Regards, Juergen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/387973ea-a654-42e5-bf23-7d492332c129%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: "Dynamyc" modells
hi guys, django-dynamo https://bitbucket.org/schacki/django-dynamo will let users create models dynamically on the fly through the admin. maybe this helps. regards, juergen Am Dienstag, 13. März 2012 08:48:03 UTC+1 schrieb airween: > > hi, > > On Mon, Mar 12, 2012 at 09:51:43PM -0400, Dennis Lee Bieber wrote: > > On Mon, 12 Mar 2012 22:14:27 +0100, Ervin Hegedüs > > declaimed the following in gmane.comp.python.django.user: > > > > > > > Some promotion has few millions of records, different promotions have > > > different format of codes, ... And general: I'm looking for an ultimate > > > solution, and may be the next time every ListRecord will have different > > > columns. > > > > > Strangely, your "ultimate solution" might mean implementing a > DBMS > > AS the application, rather than just USING a DBMS... > > > > That is: maintaining a data dictionary which contains "promotion > > format", "promotion field", "field type", (maybe field position too, > > along with fields to identify constraints on the valid values); > [...] > > yes, it's absolutely true. > > But :), I'm so far from there I implement full of these. > > > It's no problem, I'm just looking for a good solution, first it > could be enough to implement all() method (and filter()), and > there is an important invariant: in my (all) cases, the different > ListItems has an intersect of columns, I mean there are a few > columns, which exists in all ListItems object. > > > Any idea? > > > Thanks: > > > a. > > > -- > I � UTF-8 > > -- 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/-/NonOheQhNWUJ. 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: Class-Based Generic Views (CreateView) - field exclusions and defaults
you made my day, working exactly like expected. :-) thanks a lot -- 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/-/RUSugDsY9K0J. 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: Class-Based Generic Views (CreateView) - field exclusions and defaults
I am trying to do the same as described in previous example: I have a model with a foreign key field to User and in the view I want to populate the the field from request.user. And when doing it exactly the way as Russ proposed, I get the described error. -- 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/-/_YvDz1bT9SkJ. 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: Class-Based Generic Views (CreateView) - field exclusions and defaults
can really no one help? i am really stuck here at the moment -- 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/-/RYLQqxJE7HYJ. 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: A demo of django-inlinetrans and django-inplaceedit
> > > >> 2. If I do not want to send field by field, but possibly a set of fields >> back to the to the server, like the row of a table. Would that be feasible? >> > > Now this is not implemented, and I think it is not trivial. But you can > try it > i am afraid my js skills are too limited for that :-( > > 3. How would you create a new field on the page/ new object in the model? >> > > I'm sorry I don't understand this > let me explain with an example: i have an recipe model and i have ingredients that have a foreign key to recipe. on the web page i display the recipe plus all its ingredients. and with inplaceedit i can edit all those ingredients, which is great. but how would i enable the user to add a new ingredient? -- 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/-/Ie3c77e-ynEJ. 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: A demo of django-inlinetrans and django-inplaceedit
Hi, this looks really great. I have 3 questions for which I would highly appreciate the answers: 1. What is the best way to include some form magic, i.e. sending the changes not directly to the model but to a form that does some verification and also return the form error messages? 2. If I do not want to send field by field, but possibly a set of fields back to the to the server, like the row of a table. Would that be feasible? 3. How would you create a new field on the page/ new object in the model? Keep up the great work Juergen -- 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/-/rR9BqMnZhEsJ. 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: Class-Based Generic Views (CreateView) - field exclusions and defaults
if is use this code, as proposed by russ: def form_valid(self, form): self.object.user = ... (something meaningful.. e.g., self.request.user) return super(CreateCampaignView, self).form_valid(form) i get the error 'NoneType' object has no attribute 'user'. and actually, by looking at the source code, that is exactly what is supposed to happen in a create view: self.object is set to None, as you can see in BaseCreateView def post(self, request, *args, **kwargs): self.object = None return super(BaseCreateView, self).post(request, *args, **kwargs) am i the only one having this problem? any help is highly appreciated. thanks juergen -- 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/-/QD32CnKdQmsJ. 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: Pyjamas in Django
hi, i have played around with it, and it seemed ok for me. but actually never put anything into production, since my project did not move forward. regards -- 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/-/2stzIPhNliwJ. 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.
Aw: Re: can django be used in destop application?
if you still want to go down the "use django for desktop application" road, you might want to have a look at pyjamas to build your frontend: pyjs.org -- 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/-/u3zaVxjSLoMJ. 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.
ANN: django-dynamo
Hi all, I have been thinking about dynamic models in Django for a while now. And inspired by https://code.djangoproject.com/wiki/DynamicModels and Will Hardy's https://github.com/willhardy/dynamic-models, I have created Dynamo, to let users and admins create and maintain their models dynamically at runtime. It is certainly not perfect yet, but I hope it is of some use for the community. The code can be found at https://bitbucket.org/schacki/django-dynamo and the docs at http://django-dynamo.readthedocs.org/en/latest/ Any feedback and contributions are highly appreciated. Regards, Juergen -- 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/-/jbCSSxHB_msJ. 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.
Aw: Re: Problem With Templatetags
have you added the application that holds your template tag to settings.py? -- 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/-/pgqWMXKi-UsJ. 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.
Aw: Re: any recipes for 'live' updating a site with model changes
I will publish a new app to maintain models dynamically at runtime on the weekend -- 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/-/eWnQvLa89CYJ. 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.
Aw: Re: Fieldsets in Admin Inline
thanks a lot for googling this link (somehow google decided to hide it from me :-) ) it works for me! just one word warning with the link: the code as described does not work for me, since the parent Admin refers to field in its fieldsets attribute that refer to the child and this raises the error: ImproperlyConfigured at ... MetaModelAdmin.fieldsets[2][1]['fields']' refers to field 'type' that is missing from the form after removing the specific field and only leave it in the fieldsets of the Inline, everything is working fine -- 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/-/v7lPtjDhtuUJ. 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.
Fieldsets in Admin Inline
Hi all, is there a way to define fieldsets in the Inline? If could not find anything in the docs, but to me the idea sounds quite reasonable; so I am wondering if I just dont find it?!?!?! Thanks Juergen -- 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/-/uhgw2O6uyPsJ. 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.
Aw: Django: forms and custom templates
I am also not sure, what exactly you are looking for, but what about this: https://docs.djangoproject.com/en/1.3/topics/forms/#customizing-the-form-template so you will have complete control of your html code??? -- 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/-/aGMTBWPe0wEJ. 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.
Aw: Re: Setting up EC2 for Django
maybe http://www.turnkeylinux.org/ and especially http://www.turnkeylinux.org/django will do the heavy lifting for you although I fully agree with the other replies, and I am not sure if you do yourself a favour using turnkeylinux just as a blackbox :-) -- 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/-/MAWiQzkLK1sJ. 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.
Aw: Different urlpatterns for different subdomains
maybe that helps: https://github.com/jezdez/django-hosts -- 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/-/dUDV20f2CsUJ. 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.
Aw: Virtualized Django app image for dev replication?
Hi ydjango, from personal experience, Virtualbox is really easy to use and setup and quite lightweight. If you use e.g. this image http://www.turnkeylinux.org/django, you will be ready to go very fast. Regards, Juergen -- 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 programatically define Site in Admin
Hi all, I do have various models with ForeignKey(Site). These models should be managed through Admin. However, I would like to determine the current site based on the URL (which basically means it needs to be defined in the view based on the request object). However, he current default behaviour of admin is that it displays the site field and lets the user choose the site. My requirements are: 1. The user will only ever see objects for the current site (derived from the URL following a certain logic) 2. The user will NOT see the site field (since it is not relevant for him) 3. The user will NOT be able to choose a site when updating or adding objects, but the site will be assigned in the background programmatically My solutions so far are: 1. I adapted queryset() to filter on the current site ==> so I think that box is ticked 2. I adapted the fields attribute ==> so this works for the list view, but not in the detail view (change view) and not in the add view 3. I have no clue how to get that one. Any help is highly appreciated. Thanks a lot schacki -- 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: Versioned database content
see here http://djangopackages.com/grids/g/versioning/ ore there is also a interesting chapter on versioning on page 263 here: http://books.google.com/books?id=lJwOcsZq5g4C&printsec=frontcover&dq=django+pro&hl=de&ei=TdA-TdSyH4GA4Aat1fGwCg&sa=X&oi=book_result&ct=book-thumbnail&resnum=1&ved=0CCwQ6wEwAA#v=onepage&q&f=false please share your results -- 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: Versioned database content
why do you want to create the dual tables, instead of only having one table with a current tag that holds the old version and the current ones? and then handle access to those via different managers? have you also had a look at the available versioning apps? -- 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.