question about userprofile

2014-10-07 Thread Lorenzo Bernardi
Hello, I'd like to emphasize that it is probably a newbie question but I don't know what are the keyword I should use for googling. So any information would be helpful. I'm trying to add a userprofile to my django app. The idea is to use a sign-in system so that the user depending on who

Model to create forms

2015-01-05 Thread Lorenzo Bernardi
Hello All, I'm rather new to django and also web and database stuff and so I might not use the correct term. i need to write an application which is a log book for experiments. The purpose is to store information about various experiments on different experiment to keep a trace and compu

Re: Model to create forms

2015-01-08 Thread Lorenzo Bernardi
Hello, 1) there is no other approach (like creating a model on the fly, that is not writing in models.py. But it looks against the way django works) and any idea is welcomed. Generally I've found that creating a real model to store the data is easiest in the long run and usually involves les

Re: Model to create forms

2015-01-08 Thread Lorenzo Bernardi
Hello, this is what _relational_ databases are built for. if you have two tables, one for the description of the experiment (one record per experiment), and another for the statistics (one record per data sample, with a foreign key to the experiment record); then fetching the description of the

Re: Model to create forms

2015-01-09 Thread Lorenzo Bernardi
On 01/09/2015 10:39 AM, Timothy W. Cook wrote: I think you are looking for a way to provide an abstraction like this http://django-forms-builder.readthedocs.org/en/latest/ yes it looks like I'll have to do something like that. Or see if the data collected from the form can be put in a model. Th

template or javascript

2016-10-10 Thread Lorenzo Bernardi
Hello, I'm making a website with bootstrap and I use some menu items (in fact nav bars) and I was wondering what is the best practice to make a menu item highlighted when I am on the page connected with this menu item. I mean in bootstrap the nav bar has a to highlight the fact that I'm on

interaction between two django app

2017-01-24 Thread Lorenzo Bernardi
Hello, I don't know what is the best approach for the communication between two django applications. We have a website using django and django-cms. We have another application, the "seminar" app for managing some informations like seminars, news, people profiles They have both their

Questions about session

2016-01-26 Thread Lorenzo Bernardi
Hello, I'm writing an app which needs authentication and I was wondering if the information about the user should be put in request.session. My app deals with the access to certain equipments and every user has a different set of equipment it can sees. Should I put the list of equipment in

Re: Questions about session

2016-01-27 Thread Lorenzo Bernardi
Hello, I answered a very similar question to this a few days ago: https://groups.google.com/forum/#!msg/django-users/L3pUwDYs6jw/bSYVs81tEwAJ thanks for the link. I agree with you for the fact that updating sess

Re: Questions about session

2016-01-27 Thread Lorenzo Bernardi
Hello, If you wish to keep some data always visible specially i the base template, then why not make the base template a single page app and then through ajax lode other pages? I thought of using ajax but I'm not very familiar with it. But I didn't think of making the base page a single app