sary changes
> in schema)
>
>
>
> On Sun, Apr 21, 2019 at 11:00 AM Gourav Chawla <
> gauravchawla.chawla...@gmail.com> wrote:
>
>> First of all, use appropriate model fields for linking objects. For
>> example users should be a foreign key to your(or Django'
First of all, use appropriate model fields for linking objects. For example
users should be a foreign key to your(or Django's) user table.
Then whenever you want to show data on any interface to any user, just filter
content/rows by user department.
Something like:
T1.objects.filter(user=curre
See, if this
helps: https://stackoverflow.com/questions/8614947/jquery-and-django-csrf-token
On Tuesday, November 7, 2017 at 10:25:47 PM UTC+5:30, Tony King wrote:
>
>
> Hi,
>
> I thought I'd finally understood this but it seems I have not and I've
> spent far too much time trying to do it mysel
It isn't clear what are you looking for but if you need instructions on
creating registration, login, logout views then this[1] is a good place to
start. Also, look into another chapter where the author talks about using
django-registration package to remove the hassle of building your own
regi
Glad, you worked it out. You can use them whenever you want. Function based
views require you to write more code but give you more clarity on what's
happening. On the other hand CBV help you keep the codebase cleaner.
At the end of the day, it's you who has to decide what to use.
--
You receiv
You can create another url, view, template to do that.
Just create a url like : team/id
For the above url create a view, say, teams_under_region which accepts the
'id'. Based on that id you can then query your database for teams where
region_member=id. This is just the approach you would follow
You can have a look at Django registrations app[1] for inspiration. Also,
look at the default Django admin login. All of it is there, you just have
to search a little more and you'll get it.
[1]: https://github.com/macropin/django-registration
On Monday, October 2, 2017 at 4:55:14 PM UTC+5:30,
On Thursday, September 28, 2017 at 11:02:58 AM UTC+5:30, Mike Dewhirst
wrote:
>
> I need to write an online training application - except I don't know a
> lot about online training.
>
Please, have a look at OpenEdx[1]. It is also a LMS like Moodle written
using Django.
[1]: https://open.edx
8 matches
Mail list logo