Re: audit trail functionality in database model

2017-01-21 Thread Fred Stluka
Enrico, I've done this in the past.  I didn't use Django directly for the audit tables.  Instead I defined DB triggers on each primary table that inserted a row of audit values into the audit table.  I can send you sample trigger code that works in Oracle and

Re: audit trail functionality in database model

2017-01-21 Thread Mike Dewhirst
You could have a look at Marty Alchin's Pro Django (not really for beginners but ...) on page 263 where he shows how to do almost exactly what you describe. If you got that book it would accelerate your progress in Django anyway. The only downside is it was published in 2008 and Django has

Unclear Debug Message (Bug?) When Invalid Url in Extended Template

2017-01-21 Thread Connor Boyle
I've noticed that when I extend a template that references an invalid url name, in debug mode, the error message doesn't highlight the erroneous line in the parent template, but rather shows a section of the child template. For example if "base.html" is just: {% block content %}{% endblock %}

Re: dear django users & fans.. i really need ur help ok

2017-01-21 Thread José Florencio de Queiroz Neto
Dear friend, First of all, welcome to the Django community. I recommend you to complete the Django tutorial (https://docs.djangoproject.com/en/1.10/intro/tutorial01/). If you have time, buy and complete the book Django Unleashed (https://django-unleashed.com/). Good luck, Florencio Em sábado,

dear django users & fans.. i really need ur help ok

2017-01-21 Thread Joshua Harmony Chinonso
My name is Joshua. I am a developer. I do most of my programming using vb.net (visual studio). Until my new roommate introduced me to an entire new language - python and it's web framework - django. I love the framework frankly speaking OK. Friends,am so new to django..I decided to write my

audit trail functionality in database model

2017-01-21 Thread enrico baranski
Hi all Django users, I'm quite new to Django and currently experimenting with the database model. Defining fields appears to be quite intuitive and is well described in the documentation. However, I am looking into audit trail functionalities. What that means to me. I have two tables, one is

[help] Django allauth - registration using facebook/google , otp varification

2017-01-21 Thread bharatgodam
Hello everyone, I am new to django. i want to use social authentication in my app. i am using python - 3.6.0 django - 1.10.5 django allauth - latest i want custom registration using providers facebook and google. the scenario is user visits registration page. provided the links - register using

Django and timezones ... how to initialize a field to now() in the in clients time zone?

2017-01-21 Thread Bernd Wechner
I have a model with this field: date_time = models.DateTimeField(default=timezone.now) if I look at the generic create form, it inializes the date_time field with now in UTC, not in local time. Now I appreciate there are two things at play here: 1. the desired UX is to see now in my time