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 created 
edit profile and logout features but they are separately shown. How can I bring 
them under the drop-down menu in the "hello  welcome message?
Please give a detailed explanation.

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1a839db3-af01-401b-8f76-a487da4843c8%40googlegroups.com.


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 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 created edit profile and logout features but they are
> separately shown. How can I bring them under the drop-down menu in the
> "hello  welcome message?
> Please give a detailed explanation.
>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1a839db3-af01-401b-8f76-a487da4843c8%40googlegroups.com
> .
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK-JoTSmis40%3DUYsCEZaK-DFg%2BGLPCc3aSk_mA2x9kW0dBFhyQ%40mail.gmail.com.


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
> contain the user edit profile option, his/her bookings and a logout
> options. I have created edit profile and logout features but they are
> separately shown. How can I bring them under the drop-down menu in the
> "hello  welcome message?
> Please give a detailed explanation.
>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/1a839db3-af01-401b-8f76-a487da4843c8%40googlegroups.com
> .
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn72wS0mYNuqAugvD1miA%3D7WhEJy7EPqROohwA-qgRw%3D2qg%40mail.gmail.com.


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:27 tarihinde Jani Tiainen  şunu yazdı:

> Hi.
>
> You're on good track.
>
> Using Django doesn't require much but knowing Python, HTML and CSS surely
> helps.
>
> Django Girls do have excellent tutorial to get you kickstarted with Django.
>
> CSS can be easily handled with libs like bootstrap or material ui.
>
> What comes to programmin itself it takes a good while to learn. Few months
> and you will handle most tasks with rather easily.
>
> su 8. syysk. 2019 klo 21.09 kemo0 king  kirjoitti:
>
>> I am new on programming  ,to be a programmer and getting the ability to
>> create a web program that is one of my dreams , I have started   with
>> python  I know little about html and css and js now I want to learn django
>> am I on the right  way what should I learn before diving in django  I need
>> ur help
>>
>> --
>> 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, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/69cfa675-0023-464b-a4ad-080f4c59db4d%40googlegroups.com
>> 
>> .
>>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHn91od6KXyi28tE55TuuRvZvDaibH5H3xS5Q6%2BTHavby20iRw%40mail.gmail.com
> 
> .
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJd2YKiirWOzVLVFJNYWUcPzXVyXKCfwBmaEdX5VvN%3D5e7HY8A%40mail.gmail.com.


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.username}}
>> > aria-labelledby="dropdown01">
>> Profile
>> 
>> Change Password
>> 
>> Logout
>> 
>>
>>
>>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADjO_C4wCAwoSsF59DDRkmm5S1qSpOANJDYzqYovS-Y_4D4q3w%40mail.gmail.com.


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 from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1bb08967-d072-44ad-ac27-2f3934c4047c%40googlegroups.com.


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, 
> definetly I would start it with that video series.
>
Hopefully this isn't a thread hijacking - - - - but - - - - -
I am finding that online videos are hugely wasteful of time and would
rather have a text equivalent.
Is there such for this recommended video series?

Regards

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPpdf5_EJ2%2BNxqQ6tdRZdq%3Dugfhr%3D%3D59e8LsuxFKWG5qrvXNYA%40mail.gmail.com.


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 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.
>> 
> Hopefully this isn't a thread hijacking - - - - but - - - - -
> I am finding that online videos are hugely wasteful of time and would
> rather have a text equivalent.
> Is there such for this recommended video series?
> 
> Regards
> 
> -- 
> 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, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAPpdf5_EJ2%2BNxqQ6tdRZdq%3Dugfhr%3D%3D59e8LsuxFKWG5qrvXNYA%40mail.gmail.com.

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/DEAFD4DB-3598-4694-B91A-45D6CFF793CE%40gmail.com.


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 am unable
> to proceed. Any suggetions?
>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1bb08967-d072-44ad-ac27-2f3934c4047c%40googlegroups.com
> 
> .
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Ben_903f%3D5N1ctM2O9NZPqvPm7wRejXAri7Yfz3bsZ%2BUti%3DVA%40mail.gmail.com.


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 can read that in maybe 20 minutes if I'm
going very very slowly.
Even with complicated procedures I would prefer working from a text document.

So there are no equivalent text documents from these videos?

Perhaps one should contact the videographer? (grin!)

Regards

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPpdf59jxUVWjzcKG02Uce9rLVKaf6bRnc7jJNTVR4ZPTwPs0w%40mail.gmail.com.


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 create 
a template and upload it to GitHub for future use.

This is when my problems began!

This is the structure of a simple project without any apps or separating 
environment variables for simplicities sake.

.
├── Pipfile
├── Pipfile.lock
├── manage.py
└── my_project
├── __init__.py
├── settings.py
├── urls.py
└── wsgi.py

I have amended the following files:
wsgi.py
os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ my_project }}.settings')
manage.py
os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ my_project }}.settings')
settings.py
ROOT_URLCONF = '{{ my_project }}.urls'
WSGI_APPLICATION = '{{ my_project }}.wsgi.application'

I have uploaded it to GitHub and designated it as a template.
The issue comes about when I try to use it.
I issue the following command:
django-admin.py startproject \
  
--template=https://github.com/my_repository/django-project-template/archive/master.zip
 
\
  --extension=py,md,env \
  project_name

When I open this project I find that the variable {{ my_project }} has not 
been pick up so for example the ROOT_URLCONF just shows .urls instead of 
project_name.urls and the situation is the same for the WSGI_APPLICATION 
and the same is true for the items in the settings.py

I am sure that the answer is both simple and obvious but for the life of me 
I cannot see the solution.

Any help or pointers would be gratefully received.
Thanks in advance

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/28b577d2-fd9f-4e24-9e4f-b383cc099fea%40googlegroups.com.


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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9995f14c-82b3-4712-83f3-c99a69298d60%40googlegroups.com.


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 HTML template. If Anyone help to create this
> tool?
>
> Eagerly waiting for your response.
>
> I've attached  HTML template
>
>
> A brief explanation of the project.
>
> For users panel
>
> Its minutes of meeting tool, our staff's will able to create a meeting
> with HR, admin, Security team.  Once they raised the TT the automated email
> will send to the appropriate team.
>
> For Admin panel:
>
> They are a separate member for each function. Admin can able to change TT
> status, and send conclusion email automated.
>
> Please help me to make this Tool.
>
>
>
>
>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f9158ef9-f281-47bd-8a04-209145816a00%40googlegroups.com
> 
> .
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK-JoTQZ3m9nJgZJmdHyi9%2BpVu05YiG6mhceS0t_zB2yuBUeqA%40mail.gmail.com.


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 MeetingScheduled Meetings
  
  
Copyright © 2019 
Sutherland



createmeeting.html



  InterSut
  
  
  
  https://fonts.googleapis.com/css?family=Nunito:200,200i,free300,300i,400,400i,600,600i,700,700i,800,800i,900,900i";
 
rel="stylesheet">
  
  
  
  https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js";>
  https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js";>



  
  
Home
Contact 
About



Create Meeting





  Meeting 
Type
  

  One on One
  Huddle
  Performance review
  Skip meeting
  Focus group

  



  Date
  

  






  Host
  


  




  Function
  

  HR
  Admin
  option3
  Option 4

  




  Action Plan
   
Action 
Plan
  




  Owner
  


  




  Action 
Item
   
Action Item
  




  Time Lines
  

  




  Status
  

  Open
  Closed
  Progress

  




  Remarks 
   
Remarks 

  




  
  
Save
Send 
Email
  








 Copyright © 2019 
Sutherland



schedule.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
   




https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css";>



Scheduled Meetings



   
List 
   Grid




  
HR
Host:Rommel
Functions:HR
Start date: 09/01/2019
Completion date: 09/05/2019
No of participants: 15
Action Items : Lorem ipsum dolor sit amet, consectetur 
adipiscing elit.
Sed tincidunt ante et ante congue faucibus quis eu mauris.
Donec quis ex vitae turpis mattis gravida.
Praesent ac ipsum porta, eleifend ipsum lacinia, fermentum velit.
Donec sed ligula maximus, facilisis nulla ut, volutpat felis.
Fusce egestas ipsum id enim cursus, non ultricies lorem condimentum.
Nullam at erat dignissim, dapibus nibh ac, dictum nibh.
Owner: Rommel Mitchel
Comments: Maecenas venenatis ligula in ipsum dignissim, nec 
imperdiet nisl tincidunt.
Nam in magna molestie, scelerisque lorem in, elementum diam.
Pellentesque scelerisque enim eget ipsum varius pellentesque.
In eu massa fringilla, dapibus erat et, accumsan massa.l
  
  
BHR
 Created by Praisy
Email: pra...@companyemail.com
Participants: Ajith,Rommel,Raakesh,Arun,Gopi,Praisy
Start date: 09/10/2019
Completion date: 09/13/2019
No of participants: 12
Action Items : Lorem ipsum dolor sit amet, consectetur 
adipiscing elit.
Sed tincidunt ante et ante congue faucibus quis eu mauris.
Donec quis ex vitae turpis mattis gravida.
Praesent ac ipsum porta, eleifend ipsum lacinia, fermentum velit.
Donec sed ligula maximus, facilisis nulla ut, volutpat felis.
Fusce egestas ipsum id enim cursus, non ultricies lorem condimentum.
Nullam at erat dignissim, dapibus nibh ac, dictum nibh.
Owner: Praisy
Comments: Maecenas venenatis ligula in ipsum dignissim, nec 
imperdiet nisl tincidunt.
Nam in magna molestie, scelerisque lorem in, elementum diam.
Pellentesque scelerisque enim eget ipsum varius pellentesque.
In eu massa fringilla, dapibus erat et, accumsan massa.l
  


  
Amazon.in
 Created by Vijay
Emailvij...@companyemail.com
Participants: Ajith,Rommel,Raakesh,Arun,Gopi,Praisy
Start date: 09/10/2019
Completion date: 09/13/2019
No of participants: 10
Action Items : Lorem ipsum dolor sit amet, consectetur 
adipiscing elit.
Sed tincidunt ante et ante congue faucibus quis eu mauris.
Donec quis ex vitae turpis mattis gravida.
Praesent ac ipsum porta, eleifend ipsum lacinia, fermentum velit.
Donec sed ligula maximus, facilisis nulla ut, volutpat felis.
Fusce egestas ipsum id enim cursus, non ultricies lorem condimentum.
Nullam at erat dignissim, dapibus nibh ac, dictum nibh.
Owner: Vijay
Comments: Maecenas venenatis ligula in ipsum dignissim, nec 
imperdiet nisl tincidunt.
Nam in magna molestie, scelerisque lorem in, elementum diam.
Pellentesque scelerisque enim eget ipsum varius pellentesque.
In eu massa fringilla, dapibus erat et, accumsan massa.l
  

  
Amazon NA
 Created by Joel
Email:vij...@companyemail.com
Participants: Ajith,Rommel,Raakesh,Arun,Gopi,Praisy
Start date: 09/17/2019
Completion date: 09/21/2019
No of participants: 10
Action Items : Lorem ipsum dolor sit amet, consectetur 
adipiscing elit.
Sed tincidunt ante et ante congue faucibus quis eu mauris.
Donec quis ex vitae turpis mattis gravida.
Praesent ac ipsum porta, eleifend ipsum lacinia, fermentum velit.
Donec sed 

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 backend.

First, you need to achieve to play all the procedures by a djangoshell, for
example, before to connect to django templates ( your frontend)

Come in! you have 50% of the work done  ( not the same of 50% time ;) )









Missatge de Raakesh Vanaraj  del dia dl., 9 de set.
2019 a les 19:20:

> Thanks for the suggestion.
>
> As per your request please find below the codes.
>
> index.html
> 
> 
> 
> InterSut
>  type="ico"
>   href="images/favicon.ico"/>
> 
>type="text/css">
>   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
>   
> 
> 
>  class="search">Create Meeting type="button" class="search">Scheduled Meetings
>
>   
> Copyright © 2019
> Sutherland
> 
> 
>
> createmeeting.html
> 
> 
> 
>   InterSut
>  type="ico"
>   href="images/favicon.ico"/>
>   
>type="text/css">
>   https://fonts.googleapis.com/css?family=Nunito:200,200i,free300,300i,400,400i,600,600i,700,700i,800,800i,900,900i";
> rel="stylesheet">
>   
>   
>   
>   https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
> ">
>   https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js
> ">
> 
>
> 
>   
>   
> Home
> Contact
> About
>   
> 
> 
> Create Meeting
> 
> 
>
> 
> 
>   Meeting
> Type
>   
> 
>   One on One
>   Huddle
>   Performance review
>   Skip meeting
>   Focus group
> 
>   
> 
> 
> 
>   Date
>   
> 
>   
> 
>
>
>
> 
> 
>   Host
>   
>  class="form-control input-md" required="">
>
>   
> 
>
> 
> 
>   Function
>   
> 
>   HR
>   Admin
>   option3
>   Option 4
> 
>   
> 
>
> 
> 
>   Action
> Plan
>   
>  name="ActionPlan">Action Plan
>   
> 
>
> 
> 
>   Owner
>   
>  class="form-control input-md" required="">
>
>   
> 
>
> 
> 
>   Action
> Item
>   
> Action Item
>   
> 
>
> 
> 
>   Time
> Lines
>   
> 
>   
> 
>
> 
> 
>   Status
>   
> 
>   Open
>   Closed
>   Progress
> 
>   
> 
>
> 
> 
>   Remarks 
>   
> Remarks
> 
>   
> 
>
> 
> 
>   
>   
> Save
> Send
> Email
>   
> 
>
> 
> 
>
> 
>
> 
>  Copyright © 2019
> Sutherland
> 
> 
>
> schedule.html
> 
> 
> 
> InterSut
>  type="ico"
>   href="images/favicon.ico"/>
> 
>   
>type="text/css">
>   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
>   
> 
> 
> 
> 
> https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
> ">
> 
> 
>
> Scheduled Meetings
>
>
> 
>   
> List
>Grid
> 
> 
>
> 
>   
> HR
> Host:Rommel
> Functions:HR
> Start date: 09/01/2019
> Completion date: 09/05/2019
> No of participants: 15
> Action Items : Lorem ipsum dolor sit amet, consectetur
> adipiscing elit.
> Sed tincidunt ante et ante congue faucibus quis eu mauris.
> Donec quis ex vitae turpis mattis gravida.
> Praesent ac ipsum porta, eleifend ipsum lacinia, fermentum velit.
> Donec sed ligula maximus, facilisis nulla ut, volutpat felis.
> Fusce egestas ipsum id enim cursus, non ultricies lorem condimentum.
> Nullam at erat dignissim, dapibus nibh ac, dictum nibh.
> Owner: Rommel Mitchel
> Comments: Maecenas venenatis ligula in ipsum dignissim, nec
> imperdiet nisl tincidunt.
> Nam in magna molestie, scelerisque lorem in, elementum diam.
> Pellentesque scelerisque enim eget ipsum varius pellentesque.
> In eu massa fringilla, dapibus erat et, accumsan massa.l
>   
>   
> BHR
>  Created by Praisy
> Email: pra...@companyemail.com
> Participants: Ajith,Rommel,Raakesh,Arun,Gopi,Praisy
> Start date: 09/10/2019
> Completion date: 09/13/2019
> No of participants: 12
> Action Items : Lorem ipsum dolor sit amet, consectetur
> adipiscing elit.
> Sed tincidunt ante et ante congue faucibus quis eu mauris.
> Donec quis ex vitae turpis mattis gravida.
> Praesent ac ipsum porta, eleifend ipsum lacinia, fermentum velit.
> Donec sed ligula maximus, facilisis nulla ut, volutpat felis.
> Fusce egestas ipsum id enim cursus, non ultricies lorem condimentum.
> Nullam at erat dignissim, dapibus nibh ac, dictum nibh.
> Owner: Praisy
> Comments: Maecenas venenatis ligula in ipsum dignissim, nec
> imperdiet nisl tincidunt.
> Nam in magna molestie, scelerisque lorem in, elementum diam.
> Pellentesque scelerisque enim eget ipsum varius pellentesque.
> In eu massa fringilla, dapibus erat et, accumsan massa.l
>   
>
> 
>   
> Amazon.in
>  Created by Vijay
> 

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 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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eb99b343-bf08-47da-9a5a-dc1bf0ccb797%40googlegroups.com.


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 component )per component)per environment


Please please help

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fd1e5153-0908-4753-a2d2-b8e6b660d4bb%40googlegroups.com.


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 compatibility. 

thanks

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0bc264b7-b481-43ed-8884-8a58c59585e9%40googlegroups.com.


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 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 compatibility. 
> 
> thanks
> -- 
> 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, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/0bc264b7-b481-43ed-8884-8a58c59585e9%40googlegroups.com.

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/BDB72A18-3A85-4B6C-ACB3-256E369D0A42%40gmail.com.


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 like 
> 
> (env name   - (component (recent updated in detail table)
> deploy_dtls according to the recent component )per component)per environment
> 
> 
> Please please help
> 
> 
> -- 
> 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, send an 
> email to django-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/fd1e5153-0908-4753-a2d2-b8e6b660d4bb%40googlegroups.com
>  
> .
> 

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/00553A26-3EBD-43FC-9CAD-D34306C34A88%40gmail.com.


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 users and *get users list* via a simple
> POST/GET http requests.
>
> Have someone did it here?
>
> Sincerely
> Ezequias
>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/eb99b343-bf08-47da-9a5a-dc1bf0ccb797%40googlegroups.com
> 
> .
>


-- 
Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos
99.7721.15.70

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKVvSDCaKSTNLbdNKPs-HS2XTQ19f4cjUmO7w4kbOaoyhOUBSw%40mail.gmail.com.


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 achieve?

many thanks,
ANi

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4cd4ea88-d6c1-42c5-92d2-f9a5b7f818d8%40googlegroups.com.


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 get why i am getting this error .please help to fix it
>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANwgZcYfHyD1UGoG_faXv%3DBDnRVcHOBQoQ%3DovUhtV_14VVXmTw%40mail.gmail.com
> 
> .
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGHZBzzkphdgsfhkk95vdTd0ZpW0%3Dx0STd4S9x7_LgxgYFk%2BWg%40mail.gmail.com.


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
from datetime import datetime
# Create your models here.
class Contact(models.Model):
  name = models.CharField(max_length=200)
  email = models.CharField(max_length=100)
  phone = models.CharField(max_length=100)
  message = models.TextField(blank=True)
  contact_date = models.DateTimeField(default=datetime.now, blank=True)

  def __str__(self):
return self.name

class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
bio = models.TextField(max_length=500, blank=True)
location = models.CharField(max_length=30, blank=True)
#sbirth_date = models.DateField(null=True, blank=True)

@receiver(post_save, sender=User)
def update_user_profile(sender, instance, created, **kwargs):
if created:
Profile.objects.create(user=instance)
instance.profile.save()

class Realtor(models.Model):
  name = models.CharField(max_length=200)
  photo = models.ImageField(upload_to='media/images/')
  description = models.TextField(blank=True)
  phone = models.CharField(max_length=20)
  email = models.CharField(max_length=50)
  is_mvp = models.BooleanField(default=False)
  hire_date = models.DateTimeField(default=datetime.now, blank=True)
  def __str__(self):
return self.name

PROPERTY_TYPE = (('Select Property Type','Select Property
Type'),('Appartment', 'Appartment'),('DDA Appartment', 'DDA Appartment'),
('Builder Floor', 'Builder Floor'), ('Indepedent house', 'Indepedent
house'),('Residental Land','Residental Land'))
TYPE = (('Select Type','Select Type'),('1 BHK', '1 BHK'), ('2 BHK', '2
BHK'), ('3 BHK', '3 BHK'),('4 BHK','4 BHK'),('LAND','Land'),('Janta
Flat','Janta Flat'),('LIG Flat','LIG Flat'),('MIG Flat','MIG Flat'),('HIG
Flat','HIG Flat'))
CITY=(('Select City','Select City'),('West Delhi', 'West Delhi'), ('South
Delhi', 'South Delhi'), ('North Delhi', 'North Delhi'),('East Delhi','East
Delhi'))

class Property(models.Model):
realtor= models.ForeignKey(Realtor,  on_delete=models.DO_NOTHING)
#image=models.ImageField(upload_to='media/images/',blank=True,
null=True)
house_name=models.CharField(max_length=30)
#PROPERTY_TYPE = (('Select Property Type','Select Property
Type'),('Appartment', 'Appartment'),('DDA Appartment', 'DDA Appartment'),
('Builder Floor', 'Builder Floor'), ('Indepedent house', 'Indepedent
house'),('Residental Land','Residental Land'))
property_type=models.CharField(max_length=20,
choices=PROPERTY_TYPE,default='Select Property Type')
#TYPE = (('Select Type','Select Type'),('1 BHK', '1 BHK'), ('2 BHK', '2
BHK'), ('3 BHK', '3 BHK'),('4 BHK','4 BHK'),('LAND','Land'),('Janta
Flat','Janta Flat'),('LIG Flat','LIG Flat'),('MIG Flat','MIG Flat'),('HIG
Flat','HIG Flat'))
type=models.CharField(max_length=10,choices=TYPE,default='Select Type')
area=models.CharField(max_length=10,blank=False)
#CITY=(('Select City','Select City'),('West Delhi', 'West Delhi'),
('South Delhi', 'South Delhi'), ('North Delhi', 'North Delhi'),('East
Delhi','East Delhi'))
city=models.CharField(max_length=20,choices=CITY,default='Select city')
location=models.CharField(max_length=30)
price=models.CharField(max_length=20)
description=models.TextField(blank=True)
publish_date = models.DateTimeField(default=datetime.now, blank=True)
publish_date = models.DateTimeField(default=datetime.now, blank=True)
image= models.ImageField(upload_to='media/images/',blank=True,
null=True )
image_1 = models.ImageField(upload_to='media/images/', blank=True ,
null=True)
image_2 = models.ImageField(upload_to='media/images/', blank=True ,
null=True)
image_3 = models.ImageField(upload_to='media/images/', blank=True ,
null=True)
image_4 = models.ImageField(upload_to='media/images/', blank=True ,
null=True)
image_5 = models.ImageField(upload_to='media/images/', blank=True ,
null=True)
image_6 = models.ImageField(upload_to='media/images/', blank=True ,
null=True)
#submitted = models.DateField(auto_now_add=True)

class Meta:
abstract=True




class Buy(Property):

def __str__(self):
return self.house_name


class Rent(Property):

def __str__(self):
return self.house_name

class PG(Property):
def __str__(self):
return self.house_name


YOU_ARE=(('Select','Select'),('Owner', 'Owner'), ('Dealer', 'Dealer'),
('Agent', 'Agent'))
PROPERTY_FOR=(('Select Property For','Select Property For'), ('Sale',
'Sale'), ('Rent', 'Rent'), ('PG', 'PG'))
PROPERTY_TYPE = (('Select Property Type','Select Property
Type'),('Appartment', 'Appartment'),('DDA Appartment', 'DDA Appartment'),
('Builder Floor', 'Builder Floor'), ('Indepedent house', 'Indepedent
house'),('Residental Land','Residental Land'))

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 can only store the employee key as string in the
> asset table?
> or other way to achieve?
>
> many thanks,
> ANi
>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4cd4ea88-d6c1-42c5-92d2-f9a5b7f818d8%40googlegroups.com
> 
> .
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOtSHp9p2jLEq-T2VmbY8mBq_H8-jjX7a2cG%2Bb5HPk-_AH5dKg%40mail.gmail.com.


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 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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4617ae94-1cf1-42be-8441-2ba84e9d04ef%40googlegroups.com.


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 be many deploy_details which is in green colour (latest).
>
> in deploy_detail if there is two deploy in one component we will take the
> latest deploy_date.
>
>
> Now please can anyone help me in converting this query into Django ORM and
> the models
>
> Thanks in advance
>
>
>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/db10af4c-ef4c-47cb-82fd-a442d3b381ab%40googlegroups.com
> 
> .
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOtSHp_5uVs1zmqDz%3DXNb%3DZJmB_yvL%3DNqBt0WPtDL0nbsez0yw%40mail.gmail.com.


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 django project, but when i try
> to install psycopg2(with this command 'pip3 install psycopg2')  this
> problem appears:*
>
> Collecting psycopg2
>   Using cached
> https://files.pythonhosted.org/packages/5c/1c/6997288da181277a0c29bc39a5f9143ff20b8c99f2a7d059cfb55163e165/psycopg2-2.8.3.tar.gz
> Building wheels for collected packages: psycopg2
>   Building wheel for psycopg2 (setup.py) ... error
>   ERROR: Command errored out with exit status 1:
>command: /home/user/myproject/myprojectenv/bin/python3 -u -c 'import
> sys, setuptools, tokenize; sys.argv[0] =
> '"'"'/tmp/pip-install-t391_oat/psycopg2/setup.py'"'"';
> __file__='"'"'/tmp/pip-install-t391_oat/psycopg2/setup.py'"'"';f=getattr(tokenize,
> '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
> '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
> bdist_wheel -d /tmp/pip-wheel-mkc6kj2i --python-tag cp36
>cwd: /tmp/pip-install-t391_oat/psycopg2/
>   Complete output (40 lines):
>   running bdist_wheel
>   running build
>   running build_py
>   creating build
>   creating build/lib.linux-x86_64-3.6
>   creating build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/pool.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/_range.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/_lru_cache.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/sql.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/extensions.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/errorcodes.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/tz.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/extras.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/_json.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/errors.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/compat.py -> build/lib.linux-x86_64-3.6/psycopg2
>   copying lib/__init__.py -> build/lib.linux-x86_64-3.6/psycopg2
>   running build_ext
>   building 'psycopg2._psycopg' extension
>   creating build/temp.linux-x86_64-3.6
>   creating build/temp.linux-x86_64-3.6/psycopg
>   x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_VERSION=2.8.3 (dt dec pq3 ext lo64)
> -DPG_VERSION_NUM=100010 -DHAVE_LO64=1 -I/usr/include/python3.6m
> -I/home/user/myproject/myprojectenv/include/python3.6m -I.
> -I/usr/include/postgresql -I/usr/include/postgresql/10/server -c
> psycopg/psycopgmodule.c -o
> build/temp.linux-x86_64-3.6/psycopg/psycopgmodule.o
> -Wdeclaration-after-statement
>   In file included from psycopg/psycopgmodule.c:27:0:
>   ./psycopg/psycopg.h:34:10: fatal error: Python.h: No such file or
> directory
>#include 
> ^~
>   compilation terminated.
>
>   It appears you are missing some prerequisite to build the package from
> source.
>
>   You may install a binary package by installing 'psycopg2-binary' from
> PyPI.
>   If you want to install psycopg2 from source, please install the packages
>   required for the build and try again.
>
>   For further information please check the 'doc/src/install.rst' file
> (also at
>   ).
>
>   error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
>   
>   ERROR: Failed building wheel for psycopg2
>   Running setup.py clean for psycopg2
> Failed to build psycopg2
> Installing collected packages: psycopg2
>   Running setup.py install for psycopg2 ... error
> ERROR: Command errored out with exit status 1:
>  command: /home/user/myproject/myprojectenv/bin/python3 -u -c 'import
> sys, setuptools, tokenize; sys.argv[0] =
> '"'"'/tmp/pip-install-t391_oat/psycopg2/setup.py'"'"';
> __file__='"'"'/tmp/pip-install-t391_oat/psycopg2/setup.py'"'"';f=getattr(tokenize,
> '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
> '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
> install --record /tmp/pip-record-bl1kkv0m/install-record.txt
> --single-version-externally-managed --compile --install-headers
> /home/user/myproject/myprojectenv/include/site/python3.6/psycopg2
>  cwd: /tmp/pip-install-t391_oat/psycopg2/
> Complete output (40 lines):
> running install
> running build
> running build_py
> creating build
> creating build/lib.linux-x86_64-3.6
> creating build/lib.linux-x86_64-3.6/psycopg2
> copying lib/pool.py -> build/lib.linux-x86_64-3.6/psycopg2
> copying lib/_range.py -> build/lib.linux-x86_64-3.6/psycopg2

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, department)
>
> I am thinking to set employee in AssetModel as an ForeignKey which
> references to EmployeeView.
> but it seems to be not allowed
>
>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4617ae94-1cf1-42be-8441-2ba84e9d04ef%40googlegroups.com
> 
> .
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOtSHp9trTFp8ksbv2Y_TYeTHZp0gvi%3DaakN5GhgpEhBEXJPxA%40mail.gmail.com.


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 to pay for
this, I for sure wont help you.

Take this email as constructive criticism, and either start working on your
own or hire someone. Don't spam my inbox.

Regards,
Ronnie

On Tue, Sep 10, 2019 at 11:31 AM N'BE SORO  wrote:

> 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 be many deploy_details which is in green colour (latest).
>>
>> in deploy_detail if there is two deploy in one component we will take the
>> latest deploy_date.
>>
>>
>> Now please can anyone help me in converting this query into Django ORM
>> and the models
>>
>> Thanks in advance
>>
>>
>>
>> --
>> 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, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/db10af4c-ef4c-47cb-82fd-a442d3b381ab%40googlegroups.com
>> 
>> .
>>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOtSHp_5uVs1zmqDz%3DXNb%3DZJmB_yvL%3DNqBt0WPtDL0nbsez0yw%40mail.gmail.com
> 
> .
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACh0Ehwf70Ym%3DE9hUs%3Dw7LsAT6JKHZo%3DpK9mdZHYYKT7hztUmQ%40mail.gmail.com.


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 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 achieve?
>
> many thanks,
> ANi
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fd08e15f-c868-478c-a82d-542867364121%40googlegroups.com.


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 
> copying each and every step from documentation.
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/817bded2-a28f-456c-87d3-67d679eba312%40googlegroups.com.


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?


Pradeep Singh於 2019年9月10日星期二 UTC+8上午10時44分28秒寫道:
>
>  I didnot get why i am getting this error .please help to fix it 
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8540486f-2bbf-4f39-aa81-82e26cfb352c%40googlegroups.com.