Re: python django fields and row calculation

2018-06-11 Thread ijazz jazz
In short, a model's manager is an object through which Django models perform ... (For row-level functionality – i.e., functions that act on a single instance of a model object ... This has a single method, title_count() , which does the calculation. Best Python Training in Chennai

Re: Django Produces Python?

2018-06-11 Thread ijazz jazz
Django was born in a newsroom, and it's designed to handle that . With a simple command, Djangoautomatically generates a Python API based . Best Python Training in Chennai --

Re: Python / Django slow ? Deciding my next technological stack

2018-06-11 Thread ijazz jazz
he appropriate tech stack is crucial for a successful web application. ... Ruby (Ruby on Rails); Python(Django, Flask, Pylons); PHP (Laravel); Java Needless to say, removing all bugs requires a lot of time and slows down development.

Python Training in Chennai

2018-06-11 Thread ijazz jazz
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. Here are the major topics we cover under this Python course

Re: Interfaz administrativa, login con SSH

2018-06-11 Thread Frank Mascarell
Gracias por vuestras recomendaciones de seguridad, muy interesantes. Después de recapacitar con todo esto, me planteo lo siguiente; si estamos desarrollando una tienda online, donde la base de datos se encuentra en un host remoto, y los administradores de la tienda deben entrar en ella

Redirect causing Error in Safari

2018-06-11 Thread Dario Heinisch
Hey Guys, Hope you all are doing well. I have encountered a weird bug and I am not sure which components fault it is, I assume something in settings.py. I have moved from Heroku to my own Debian-Server with my Django Channels App. When I access my App over my computer with chrome everything

using modals for forms....

2018-06-11 Thread Alexander Joseph
I've tried every tutorial on how to use modals with forms in django and have basically got nowhere. The latest one I tried is this one https://dmorgan.info/posts/django-views-bootstrap-modals/ I seem to be running into the same problem with them though, which is I'm not sure where to put the

Re: Passing Django Template Vars to JS

2018-06-11 Thread Melvyn Sopacua
On maandag 11 juni 2018 20:11:36 CEST Simon Connah wrote: > I like the idea of the custom attribute. I'll do that then. The common way is to use a data- attribute[1]. -- Melvyn Sopacua [1] https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/ Use_data_attributes -- You received

Re: Passing Django Template Vars to JS

2018-06-11 Thread Simon Connah
Hi Vijay, Thank you very much for the reply and sorry for the late reply. You are completely right about not having multiple elements with the same ID. I completely forgot that an ID was meant to be unique on a page. I'll change it to a class. I like the idea of the custom attribute. I'll do

Re: Trouble with sqlite

2018-06-11 Thread Daniel Hepper
The SQLite file does not contain any Python code, it contains the database. It is stored in a binary format which you can't look at with a text editor. You will need a special program to look at the contents of this file, a quick Google search brings up https://sqlitebrowser.org/ Hope that

Trouble with sqlite

2018-06-11 Thread Mickey Mouse
I am beginner with Django and I'm using PyCharm IDE. I was watching a tutorial following along when I noticed my sqlite file that comes with Django had a question mark next to it (the guy in the video didnt have that). So I clicked it and it prompted me to associate my sqlite file with a

Re: Need to Add One Or More Fields in Signup

2018-06-11 Thread Dan Nepejchal
Hi, I think you must define your own user model, with inherit from django user model... class User(AbstractUser): bio = models.TextField(max_length=500, blank=True) location = models.CharField(max_length=30, blank=True) birth_date = models. DateField(null=True, blank=True) and settings:

Need to Add One Or More Fields in Signup

2018-06-11 Thread Pravin Yadav
Hello, I want to add the one or more fields in User Models/Table. Kindly let me know about this module. My code below:- def register(request): if request.method == 'POST': first_name = request.POST['first_name'] last_name = request.POST['last_name'] email = request.POST['email'] password =

Reusable Code like Helper OR Component.

2018-06-11 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

Re: Problem with get_absolute_url() in admin

2018-06-11 Thread Joakim Hove
Thank you; my main problem was with the sites model - and the default value for SITE_ID == 1. I had no intention of hardcoding the URL. On Mon, Jun 11, 2018 at 12:58 AM Anthony Anonde wrote: > the example.com is am example django give for Site. Which means there is > a way for you to manage

Re: Redirecting django app webpages through celery task

2018-06-11 Thread Jason
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", then you can trigger a client side redirect. 2. when using celery, pass in only the data it's needed, such as a db record ID, and do all your retrievals inside

Redirecting django app webpages through celery task

2018-06-11 Thread Mohammed Noor
Hello guys, I need to create a django application that takes a repository url, builds the code located in the url location and runs a few tests. If the tests are successfull, it tags the code and then sends an email to the user notifying the same. Because the building process takes a long time,

Re: Interfaz administrativa, login con SSH

2018-06-11 Thread Vijay Khemlani
"Vijay, thanks for the help, but the authentication of two factors seems quite uncomfortable, considering that an administrator can enter every day, several times a day, having to depend on a mobile device for each login. " Session cookies last for 2 weeks by default in Django, regardless of the

Re: How to execute a python(selenium) script on clicking run button in the template view. Django

2018-06-11 Thread Julio Biason
Hi Dimple, Your `url` is invalid. Views are exposed to the world via urls; in that, you define which URL will call which view. If you're running Django on your machine, your URL should probably start with 'http://localhost:8000/the/url/for/your/view' -- although the `http` can be omitted, in

How to execute a python(selenium) script on clicking run button in the template view. Django

2018-06-11 Thread Dimple Mathew
*Once i select options in the drop-down, the scripts should be executed.* *Index.html* US BANK BOKF COMMERCE BANK MICHIAS TD BANK WELSFARGO BOA

Django + Webpack + Heroku. Error reading /app/webpack-stats.json. Are you sure webpack has generated the file and the path is correct?

2018-06-11 Thread Audi Quattro 1992
Hello! I have some issue with my project Django+Webpack. I spend a lot of time to correct my path STATS_FILE with webpack.config.js, but nothing help me. My project work locally perfect, but when i want to open him on Heroku or AWS i have this issue: "Error reading /app/webpack-stats.json. Are