Get the Parameter Value From URL

2018-06-12 Thread Pravin Yadav
Hello, I want to get the parameter value from url in djago template. i'm using the django 2.0.6 and python 3.6.1. *base.html:- * {{ request.GET.get('videorandom_id') }} *My url: http://127.0.0.1:8000/watch/videos/4626634807531689 * *Error

Re: Python Training in Chennai

2018-06-12 Thread C. Kirby
Please stop spamming long dead threads just to put link to your training course On Tuesday, June 12, 2018 at 12:14:42 AM UTC-4, ijazz jazz wrote: > > we are focused on imparting a One-to-One Python Training in Chennai, our > trainees get to acquire a lot from the course. Our Fast-Track Python

Re: Redirecting django app webpages through celery task

2018-06-12 Thread Mohammed Noor
But isn't request a multi object type dictionary? What's the problem with passing a dictionary as a parameter. On Mon, Jun 11, 2018 at 7:40 PM, Jason wrote: > 1, you can't. you can expose an URL and view for your client-side app to > request for task state. if response of state is "SUCCESS",

Re: Python Training in Chennai

2018-06-12 Thread subhani shaik
ok.. how to create multiple routes in single form. On Tue, Jun 12, 2018 at 12:55 PM, C. Kirby wrote: > Please stop spamming long dead threads just to put link to your training > course > > On Tuesday, June 12, 2018 at 12:14:42 AM UTC-4, ijazz jazz wrote: >> >> we are focused on imparting a

Re: saving django session data for anonymous user

2018-06-12 Thread Melvyn Sopacua
On dinsdag 12 juni 2018 12:01:32 CEST Siddharth Srivastava wrote: > so the scenario is that whenever anonymous > user check out and mapped data against that session id is purged. Is there > any mechanism to save anonymous user session data even after user logs in. > kindly provide easy possible

Re: Interfaz administrativa, login con SSH

2018-06-12 Thread Vijay Khemlani
La máxima seguridad (razonable) sería conectarse a una VPN y que el admin de Django solo acepte logins desde dentro de la VPN, pero para el 99% de los casos suena innecesario. Para abrir un navegador dentro del servidor mismo tendrías que tener instalado todo ambiente de escritorio en el servidor

Re: Reusable Code like Helper OR Component.

2018-06-12 Thread 'Anthony Flury' via Django users
Reusable components are exactly what separate apps are for; Give your resuable code a nice API - whether it adds new field types, new models, new templates etc, and then put that all in an app. Writing an entirely reusable app takes a lot of skill and thought in my experience; extra fields,

Re: saving django session data for anonymous user

2018-06-12 Thread 'Anthony Flury' via Django users
The only way I can think of is when your user goes to log in - check if their session id is already recorded. When they login - I assume that they get an new Session Id - and remap the data from their old session id to their new session Id. Would that work ? On 12/06/18 11:01, Siddharth

I wrote a very basic Django app - Looking for a mentor

2018-06-12 Thread Carlo Ascani
Hi all, I wrote a simple Django 2.0 app I would like to distribute. I am a frontend developer, so my Python code could be a bit meh, that is why I am looking for someone you would like to mentor me and helo releasing a good quality codebase. The app does one simple thing: it crawls the sass

Re: Login with pre-set credentials.

2018-06-12 Thread Mike Dewhirst
On 12/06/2018 5:56 PM, kimeualexis wrote: Hello, guys! Am working on a student's portal with users: Admin, Staff & Student. I want the admin to be able to register Students & Staff with a password. After being registered, the students will be able to login with the pre-set password and can

Re: Newbie : Best data archive strategy

2018-06-12 Thread mickael . barbo
Thanks Matthew for your response. I looked at Reversion. If I understand correctly what it did, it duplicate each transaction on internal database ? Le mardi 12 juin 2018 20:01:02 UTC+2, Matthew Pava a écrit : > > I think what you’re really looking for is an audit log. There are some > Django

RE: Newbie : Best data archive strategy

2018-06-12 Thread Matthew Pava
Hi Mickael, It saves a copy of each record every time a record is changed. But it is saved in a separate table, so it doesn’t change your model’s table. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of mickael.ba...@gmail.com Sent: Tuesday, June 12, 2018

Re: Newbie : Best data archive strategy

2018-06-12 Thread Gerardo Palazuelos Guerrero
Hi Mickael, When I read Archive, in my mind is a different thing, not the same as audit. So, for one moment, think about situation/scenario you are working on. Archive is to manage data purge from my transactional tables; this means I want to "delete" data (that has not more value) or I want to

Re: Newbie : Best data archive strategy

2018-06-12 Thread Mickael Barbo
Ok, so "audit log" is like a "snapshot". I think it's too much for what I need. To clarify my needs, I have a data that once "used/read", it's no more needed. I just want to keep it "archived", in an other place to get access to it if I want to add some function (statistics, etc...). So,

Re: Reusable Code like Helper OR Component.

2018-06-12 Thread Pravin Yadav
Hello, I have created the websites in Python 3.6 and Django 2.0.6. I have created separate the header.html, footer.html, index.html & base.html. I want to create the reusable code like Helper OR Component. I have no idea about this how to create the helper or component. if any one know abut this

RE: Newbie : Best data archive strategy

2018-06-12 Thread Matthew Pava
I think what you’re really looking for is an audit log. There are some Django packages available that do that automatically. You might find this one quite helpful, called Django Reversion: https://github.com/etianen/django-reversion From: django-users@googlegroups.com

Re: Generating server-side off-line HTML of Django pages ...

2018-06-12 Thread Bernd Wechner
On Monday, 4 June 2018 16:00:09 UTC+10, Bernd Wechner wrote: > > Say I have a page on my Django website (because I do) that I would like to > take a snapshot of on an automated basis on the server itself with a > crontab say. I imagine writing a small python script that I could run, that >

Login with pre-set credentials.

2018-06-12 Thread kimeualexis
Hello, guys! Am working on a student's portal with users: Admin, Staff & Student. I want the admin to be able to register Students & Staff with a password. After being registered, the students will be able to login with the pre-set password and can later change it. How do I achieve this

Re: Python Training in Chennai

2018-06-12 Thread Ben Indangasy
Cost? On Tue, 12 Jun 2018, 07:15 ijazz jazz, wrote: > we are focused on imparting a One-to-One Python Training in Chennai, our > trainees get to acquire a lot from the course. Our Fast-Track Python > Training in Chennai also ensures that they learn the most within the least > possible time.

saving django session data for anonymous user

2018-06-12 Thread Siddharth Srivastava
Hi , i was writing small ecommerce application in django framework. so i was trying to implement add to cart functionality like that if user is anonymous user then selected products should be mapped to it's session id which is act. cart id in models. so the scenario is that whenever anonymous

Re: Django Produces Python?

2018-06-12 Thread Mario R. Osorio
I've tried multiple managed hosting and they all have limitations that will eventually go against your expansion needs. The best example I can think of is the fact that in most of these services you cannot compile, and some of python's libraries do require compiling. I favor Virtual Private

Newbie : Best data archive strategy

2018-06-12 Thread mickael . barbo
Hi, I'd like to archive some data. I came with this idea : class DataModel(models.Model): xxx class DataModelArchive(DataModel): pass The DataModelArchive database created has only "a pointer" to DataModel. I saw a post indicating that I'll have to first create an AbstractDataModel and