How to create a a drop-down menu from the logged in username

2019-09-09 Thread Sandip Nath
Am new to Django. Am trying to build a car rental web site. After logging in the home page navbar at the top is showing the "hello " as expected. But I want a drop-down menu from that welcome message which will contain the user edit profile option, his/her bookings and a logout options. I have c

Re: How to create a a drop-down menu from the logged in username

2019-09-09 Thread Gil Obradors
Combination of Backend ( django view , for manage data) Template ( bootstrap nav dropdown menus, for example ) El dl., 9 de set. 2019, 10:29, Sandip Nath va escriure: > Am new to Django. Am trying to build a car rental web site. After logging > in the home page navbar at the top is showing

Re: How to create a a drop-down menu from the logged in username

2019-09-09 Thread Tosin Ayoola
I feel bootstrap can handle that On Sep 9, 2019 09:28, "Sandip Nath" wrote: > Am new to Django. Am trying to build a car rental web site. After logging > in the home page navbar at the top is showing the "hello " as > expected. But I want a drop-down menu from that welcome message which will > c

Re: Python +django

2019-09-09 Thread selim atmaca
You should learn python basics first but dont dive deep, just the basics. Then There is a nice django video series on youtube. Search for corey schafer django. There are 17 videos in that series. If I was starting django today, definetly I would start it with that video series. 8 Eyl 2019 Pzr 21:2

Re: How to create a a drop-down menu from the logged in username

2019-09-09 Thread Mugabi Timothy
you can use the above list dropdown but use the templating engine in django On Mon, Sep 9, 2019 at 12:00 PM Mugabi Timothy wrote: > >> https://example.com"; id="dropdown01" data-toggle="dropdown" >> aria-haspopup="true" aria-expanded="false">welcome >> {{request.user.us

Error installing Django

2019-09-09 Thread Milind Chilakwad
I am trying to install Django 2.1 and above but everytiime I get an Error 13 - Which says "I do not have permission to a file *.txt.gz". I am unable to proceed. Any suggetions? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fro

Re: Python +django

2019-09-09 Thread o1bigtenor
On Mon, Sep 9, 2019 at 6:33 AM selim atmaca wrote: > > You should learn python basics first but dont dive deep, just the basics. Then > There is a nice django video series on youtube. Search for corey schafer > django. There are 17 videos in that series. If I was starting django today, > definet

Re: Python +django

2019-09-09 Thread Hani Fanous
Must admit I agree. With text you can at least try things out as you go and attempt to debug problems. With video this is almost impossible. Hani > On Sep 9, 2019, at 7:57 AM, o1bigtenor wrote: > >> On Mon, Sep 9, 2019 at 6:33 AM selim atmaca wrote: >> >> You should learn python basics first

Re: Error installing Django

2019-09-09 Thread achyuth n s
Hello Try installing using sudo in Linux based machines or in admin mode in Windows. Hope it helps. On Mon, 9 Sep 2019, 17:03 Milind Chilakwad, wrote: > I am trying to install Django 2.1 and above but everytiime I get an Error > 13 - Which says "I do not have permission to a file *.txt.gz". I a

Re: Python +django

2019-09-09 Thread o1bigtenor
On Mon, Sep 9, 2019 at 7:57 AM Hani Fanous wrote: > > Must admit I agree. With text you can at least try things out as you go and > attempt to debug problems. With video this is almost impossible. > Agreed - - - I find most webinars could be condensed to perhaps 2 to 5 pages of text - - - - and I

Django Project Template

2019-09-09 Thread 'dtdave' via Django users
I have been using Django-cookiecutter to create my projects. I have then decided that there was too much that I either didn't need or had alternatives in particular having a single settings file using django-configurations. The first project building from scratch worked fine so I decided to cre

Django user permission edit in custom dashboard

2019-09-09 Thread Santosh Rana Magar
Hello Everyone, How to achieve django admin site( below picture) user permission field in custom dashboard [image: h0H8Q.png] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Re: Django + Python new tool creation

2019-09-09 Thread Gil Obradors
Welcome, one suggestion: -Paste code direct to email or with paste tools. Not attaching files Welcome Missatge de Raakesh Vanaraj del dia dl., 9 de set. 2019 a les 18:39: > Good day, > > I'm new to Django and a very new beginner, I've to create a tool for my > with Django so I've create one

Re: Django + Python new tool creation

2019-09-09 Thread Raakesh Vanaraj
Thanks for the suggestion. As per your request please find below the codes. index.html InterSut https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"; rel="stylesheet"> Home Contact About Create Meeti

Re: Django + Python new tool creation

2019-09-09 Thread Gil Obradors
Very nice frontend! I understand you want to develop the backend with Django. For this, you need to know what model of data you need. Do you know? Have you take a look to this tutorial? https://docs.djangoproject.com/en/2.2/intro/tutorial01/ Very recommended to start to play with a simple backen

Get authorization and list users in auth via http request

2019-09-09 Thread Ezequias Rocha
Hi everyone Could someone tell me if Django encourages the community to implement auth/user authentication and user creation via http requests? I would like to *create *new users and *get users list* via a simple POST/GET http requests. Have someone did it here? Sincerely Ezequias -- You re

Django ORM

2019-09-09 Thread Amit Samanta
Hi, Please help i have models [image: Capture.JPG] here there will be env under which there will be deployment to many component and also i component multiple times now i want a output like (env name - (component (recent updated in detail table) deploy_dtls according to the recent compon

Upgrade Django 1.11 to 2.2 - Checking forward compatibility automatically

2019-09-09 Thread amarshall
Hi, I'm looking for a way to test my code automatically for Django 2.2 compatibility when I make changes in my Django 1.11 environment so that when I do upgrade I will not have any issues. Is there a way to do this automatically? Similar to what Pylint does for checking python3 compatibil

Re: Upgrade Django 1.11 to 2.2 - Checking forward compatibility automatically

2019-09-09 Thread Gerardo Palazuelos Guerrero
Hi, Do you have tests for your code? https://www.obeythetestinggoat.com/ to read the book online. --- Gerardo Palazuelos Enviado desde mi iPhone El 9 sep 2019, a la(s) 13:16, amarshall escribió: > Hi, > >I'm looking for a way to test my code automatically for Django 2.2 > compatibility

Re: Django ORM

2019-09-09 Thread Gio__127 TV
Sorry I am a beginner > Il giorno 9 set 2019, alle ore 21:04, Amit Samanta > ha scritto: > > Hi, > > Please help > i have models > > > > > here > > there will be env under which there will be deployment to many component and > also i component multiple times > > now i want a output lik

Re: Get authorization and list users in auth via http request

2019-09-09 Thread Gabriel Araya Garcia
...and why you don't use the Django admin app ? El lun., 9 sept. 2019 a las 15:00, Ezequias Rocha () escribió: > Hi everyone > > Could someone tell me if Django encourages the community to implement > auth/user authentication and user creation via http requests? > > I would like to *create *new

Relation between different database?

2019-09-09 Thread ANi
Hi, I have my asset table in local db which need to reference to the employee view from another database. But I realized that Django might not allow relations across databases, right? so does it means that I can only store the employee key as string in the asset table? or other way to achiev

Re: migrate error

2019-09-09 Thread Sipum
Show the code where u have used datetime.datetime. Whenever u are asking something, its better to show code where the error is arised. So it will be easy for others to find the error otherwise no one will answer ur question bro. On Tue, 10 Sep, 2019, 8:14 AM Pradeep Singh, wrote: > I didnot ge

Re: migrate error

2019-09-09 Thread Pradeep Singh
from django.db import models from django import forms from django.core import validators from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from django.utils import timezone fro

Re: Relation between different database?

2019-09-09 Thread N'BE SORO
Hello. Give me one example Le mar. 10 sept. 2019 à 03:54, ANi a écrit : > Hi, > > I have my asset table in local db which need to reference to the employee > view from another database. > But I realized that Django might not allow relations across databases, > right? > > so does it means that I

Re: Relation between different database?

2019-09-09 Thread ANi
my real situation as an example. *local database* AssetModel(id, employee, name, barcode, location, value) *remote database* EmployeeView(id, name, department) I am thinking to set employee in AssetModel as an ForeignKey which references to EmployeeView. but it seems to be not allowed -- You

Re: Query into Django ORM

2019-09-09 Thread N'BE SORO
Hello please send your models example and. Le jeu. 5 sept. 2019 à 14:56, Amit Samanta a écrit : > Hi, > > I am facing a challenge please help me. > > [image: Query.PNG] > > > output: > > [image: output.PNG] > > Here one env_name can have many comp name and one env with one comp_name > there will

Re: Postgre sql problem

2019-09-09 Thread N'BE SORO
Hello. Install *psycopg2 binary version* Le ven. 6 sept. 2019 à 22:06, Thomas Lockhart a écrit : > You need the python-devel package installed for the version of python you > are running. > > - Tom > > On Sep 6, 2019, at 12:49 PM, Elmaco7 wrote: > > *Hello, I'm trying to use Postresql with my d

Re: Relation between different database?

2019-09-09 Thread N'BE SORO
Ok you can add an additional column my_id and you give him the unique property = True Le mar. 10 sept. 2019 à 06:00, ANi a écrit : > my real situation as an example. > > *local database* > AssetModel(id, employee, name, barcode, location, value) > > *remote database* > EmployeeView(id, name, dep

Re: Query into Django ORM

2019-09-09 Thread Ronit Mishra
Hi Amit, Excuse me for my straight forwardness, but this not a challenge. From what I can see is, you want someone to write you the complete code for your models. You didn't even write a single line of code, and you're expecting someone to write the whole damn thing for you. Unless you're willing

Re: Relation between different database?

2019-09-09 Thread ANi
the key point is about the relation in* different databases*, if it is possible to have relations, then I don't need to write additional code to access data from the remote one. ANi於 2019年9月10日星期二 UTC+8上午11時54分28秒寫道: > > Hi, > > I have my asset table in local db which need to reference to the e

Re: 404 error

2019-09-09 Thread ANi
The fastest way to know why is to read your error messages. arpit Dubey於 2019年9月7日星期六 UTC+8下午11時38分38秒寫道: > > I have followed all the steps for creating our first app polls but it is > showing the error of 404 > could you please help me to finding it out why it is happening there after > co

Re: migrate error

2019-09-09 Thread ANi
Another piece of advice, please prettify your code or take a screenshot, not just paste it directly. It is not easy to read to you as well, right? what had you done in this migration? Was the original value in that column a datetime and you want to change it into another data format? Prad