[no subject]

2024-05-05 Thread Dean Mahori
Dear Programmers,
My name is Dean Mahori and I'm a student at Chinhoyi University . I'm
working on a university project to build a website using the Django
framework.
I'm currently in the process of developing a website to better connect with
our community and raise awareness about our cause.  While I'm excited to
embark on this project, I'm also new to website development and could
really use some assistance.
I'm particularly interested in using Django, a Python web framework, to
build the website.  I've been doing some research on it and believe it
would be a good fit for our needs.  However, as a beginner, I would greatly
appreciate any guidance or support from experienced Django programmers. I'm
also open to different approaches and suggestions from experienced
programmers.

Here are some specific areas where I could use help:

Project Setup and Best Practices: Ensuring a solid foundation for the
website's development.
Understanding Django Features: Learning how to effectively utilize
Django functionalities for our website.
Building Core functionalities: Developing essential features like user
registration, content management, and potentially donation options.

I understand that volunteering your time is valuable, and I'm incredibly
grateful for any assistance you can offer.  Even if it's just pointing me
in the right direction with resources or tutorials, it would be immensely
helpful.
I'm happy to discuss the project further and answer any questions you may
have.  Please feel free to contact me at deanmah...@gmail.com or
+263786881635
You can also comment with your whatsapp number so that i can create a group
for all of us.

Thank you for your time and consideration.

-- 
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/CAOxCe%3DSQMWYKQzf4ODUVqEXqmZB%2BN1R%3DWvbZLNzxAzPa6F7k7A%40mail.gmail.com.


[no subject]

2024-03-19 Thread Light Ofor
add me 09136040153

-- 
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/CAH%3Df_cGTBfStRqfoLkHxLwzkyx-yUTe%3DPq6T-XwU0vjOo84cVw%40mail.gmail.com.


[no subject]

2024-02-25 Thread Light Ofor
Hello am interested
GitHub:Lyte77
Whatsapp:+2349136040153
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/CAH%3Df_cFL4Wh%3D3OPxoh0jY_Uf-8pDE4QS-Z-65eazBZ101ixnBg%40mail.gmail.com.


[no subject]

2024-02-25 Thread Light Ofor
I would like to join please

-- 
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/CAH%3Df_cF6Ng3J4f1KEh5%3Ddp_-QWYpP-tam73WKZajWa6m-f3h2Q%40mail.gmail.com.


[no subject]

2024-02-03 Thread Kevin Tuo
Ô

Envoyé à partir de Outlook pour Android

-- 
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/VI1PR07MB5117C7A22346604955B43A5AFA412%40VI1PR07MB5117.eurprd07.prod.outlook.com.


[no subject]

2024-01-08 Thread frank dilorenzo
I have 3 models as follows:

from django.db import models
from ckeditor.fields import RichTextField


# Create your models here.
class Species(models.Model):
scientific_name = models.CharField(max_length=50)
common_name = models.CharField(max_length=50, null=True, blank=True)
butterfly_image = models.ImageField(null=True, blank=True,
default="default.png")
# description = models.TextField(max_length=800, null=True, blank=True)
description = RichTextField(blank=True, null=True, default=None)

def __str__(self):
return self.scientific_name

class Meta:
ordering = ["scientific_name"]

=

from django.db import models


# Create your models here.
class Suppliers(models.Model):
name = models.CharField(max_length=60, null=True, blank=True)
phone = models.CharField(max_length=20)
email = models.EmailField(null=True, blank=True)
country = models.CharField(max_length=100, null=True, blank=True)
address = models.CharField(max_length=50, null=True, blank=True)
city = models.CharField(max_length=100, null=True, blank=True)
state = models.CharField(max_length=100, null=True, blank=True)
zipcode = models.CharField(max_length=15, null=True, blank=True)

class Meta:
ordering = ("name",)

def __str__(self):
return f"{self.name}"

=

from django.db import models
from suppliers.models import Suppliers
from species.models import Species


# Create your models here.
class Shipments(models.Model):
yes_no_choice = ((True, "Yes"), (False, "No"))

name = models.OneToOneField(
Suppliers, null=True, blank=True, on_delete=models.SET_NULL
)
species = models.OneToOneField(
Species, null=True, blank=True, on_delete=models.SET_NULL
)
label = models.CharField(max_length=20)
received = models.IntegerField(default=0)
bad = models.IntegerField(default=0, blank=True, null=True)
non = models.IntegerField(default=0, blank=True, null=True)
doa = models.IntegerField(default=0, blank=True, null=True)
para = models.IntegerField(default=0, blank=True, null=True)
released = models.IntegerField(default=0, blank=True, null=True)
entered = models.BooleanField(choices=yes_no_choice, default=False)
updated = models.DateTimeField(auto_now=True)
created = models.DateTimeField(auto_now_add=True)

def save(self, *args, **kwargs):
sub_quantity = self.bad + self.non + self.doa + self.para
self.released = self.received - sub_quantity

super().save(*args, **kwargs)

def __str__(self):
return str(self.name)

class Meta:
ordering = ["-created"]

==

I have a form to input shipment information:

{% extends 'base.html' %}
{% block title %}
  Create/Update form
{% endblock title %}
{% block content %}
  

  {% csrf_token %}
  {{ form.as_p }}
  
  
Back

  

  
{% endblock content %}

PROBLEM:


   - Shipments with this Name already exists.

Name:-BF.D.C.R.E.SE.B.N.ENTH.B.W.L.P.S.
 T.E.H.

Species:-Actias lunaAdelpha fessoniaAgraulis
vanillaeAnartia jatrophaeAnteos chlorindeAppias drusilla
 Archeaprepona
demophonArgema mimosaeAscia monusteAtrophaneura semperiAttacus
atlasBattus polydamasBiblis hyperiaBrassolis isthmiaCaligo
eurilochusCatonephele numiliaCatopsilia pyrantheCethosia cyane
 Charaxes brutusChilasa clytiaColobura dirceConsul fabiusDanaus
gilippusDione junoDircenna deroDoleschalia bisaltideDryadula
phaetusaDryas iuliaEryphanis polyxenaEueides isabellaEuphaedra
neophronEuploea phanaethreaEuxanthe wakefieldiGraphium angolanus
 Greta otoHamadryas amphinomeHebemoia glaucippeHeliconius
charitoniusHeraclides anchisiadesHypna clymenestraHypolimna
monteironisHypolimnas bolinaIdea leuconoeJunonia coeniaKallima
paraletkaLexia dirteaLimenitis archippusLycorea cleobaea
 Mechanitis
polymniaMelinaea ethraMemphis glyceriumMethona confusaMorpho
peleidesMyselia cyanirisNeptis hylasNessaea aglauraOpisiphanes
tamarindiOpsiphanes cassinaPachliopta aristolochiaePanacea
procillaPapilio thoasParides iphidamasParthenos sylviaPhoebis
argantePrecis atlitesPrepona omphalePterourus troilus
Rothschildea
lebeauSalamis anacardiiSiproeta epaphusTigridia acestaTirumala
septentrionisTithorea harmoniaTroides rhadamantusVindula dejone


Label:

Received:

Bad:

Non:

Doa:

Para:

Released:

Entered:YesNo

Back 


the supplier can have many species, many labels but if I try to add a
shipment with the same name I get an error saying the name already exists.
I need help trying to resolve this 

[no subject]

2023-12-15 Thread ASHISH SONAVANE
send me  update  all applications Store

-- 
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/CABFejJe%2BC29%2BoTp4mV5StdZ6p2hAkY9O%3D0UYROHRzvLZm-dVaA%40mail.gmail.com.


[no subject]

2023-07-31 Thread marvelous
 Hello guys I just finished building out my portfolio and I would appreciate if you give me your honest reviews heres the link   https://marvel-9gdg.onrender.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/D11D5F79-FE3E-43CC-B82F-FA665B0E4414%40hxcore.ol.


[no subject]

2023-07-18 Thread utibe solomon
Dear community, I am currently looking for a remote internship on Django to
gain more experience in this field I currently have skills in django,
database testing api development with rest framework using Django channels
to integrate websockets and asgi connections I don't mind working for free
but would also be glad if I'm payed thank you.

-- 
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/CAJkiqy6OjqP%2B6FnVYa8%2BjnBZRS6U-5SkDRuawd6-T%2BNNV_6Tgg%40mail.gmail.com.


[no subject]

2023-05-11 Thread Karthik V A
Hello friends, Is there any inbuilt function in django for API. Without
using REST framework and request.

-- 
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/CAHjRVdSmDv28sXqf1FkPLXBooUKWpOGtSR6LZFxLVuU8w3c_PA%40mail.gmail.com.


[no subject]

2023-04-11 Thread shyam manek
Hi all group members,
I've one idea regarding our communication and contacts
So we can create a telegram group and discuss more about opportunities and
issues and QA for technologies.

Please join telegram group

https://t.me/+e7j8hq-r_uIwMTNl

-- 
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/CAL5Fy%3DA0nbfzAbJg763z2ELQUxOzJy%3DJynBaLb5Z_UUCjPwjmA%40mail.gmail.com.


[no subject]

2023-03-09 Thread Praveen Kumar
Hello Team,

Need help on creating one dashboard using Django. Please help me with it.

Thanks ,
Praveen
333286

-- 
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/CACdZTY8aAWA_zKQBY_M_yztot33i0rEX6E9arD4y6P-hFXKV9Q%40mail.gmail.com.


[no subject]

2023-01-01 Thread ALBERT ASHABA AHEEBWA
Hello Everyone,

I have been trying to host my Django app on linode for the last 3 days. I
have tried every tutorial I could find on both google and YouTube. But
nothing seems to work .

The furthest I have gone is 502 BAD GATEWAY nginx...

Can someone point me to a straight forward solution.

Thank you.



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

-- 
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/CAAQecPcVnMvG3RCEqwn_ndsAA6VVWp-vxxmm6cMyMnYWLLgEFQ%40mail.gmail.com.


[no subject]

2022-12-20 Thread Anshuman Thakur
How to collect data for each day between start date nd end date field in
django

-- 
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/CAOcxaYrv_moJqFYhfuUpTJ%3DMXmi8LfTf%2BLAXBbRrJr%3DDZQe_yQ%40mail.gmail.com.


[no subject]

2022-12-15 Thread Anshuman Thakur
Hi Team, i have deployed my application but when i am accessing camera
through android phone and windows it asking for allow camera option but
when iam using ios it not showing camera option can anyone help mai
regarding to this issue

I am using getusermedia to access the camera

-- 
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/CADGZiBofKxmphoEvZ3H9NK-GROaa8Gu94L3k6XB%2BQVL6xeqfvA%40mail.gmail.com.


[no subject]

2022-10-13 Thread Dieu merci Dramani
Thank you for the best teaching for striming images on
+django-users@googlegroups.com 

I'm Dramani Dieu merci  a new-django learner.

-- 
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/CADDd42aTifckwyViQ8LD0wYJaEH4MRpS4dNSSxr-SEAG2y%3DTrA%40mail.gmail.com.


[no subject]

2022-09-26 Thread Abdulfarid Olakunle
Hello fellow developers, I will be creating a WhatsApp group chat later in
the day, So I will like my fellow Python Django Developers to join the
group. It will be much easier to discuss there and I will sacrifice myself
out for anyone who need my service.

God bless you all
Enjoy your day
Biliaminu

-- 
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%2BccuR0goa8Mu9MqNLyZtCAJedHKpVZ6pFfrpXKFJdjaRrgttQ%40mail.gmail.com.


[no subject]

2022-06-16 Thread Abhinandan K
Here i don't understand what to do is somebody can help me to understand it
in easy way step by step process..

The core aim is to match existing customers (stored in an Excel sheet)
against Google Maps entries, to detect existing customers and distinguish
them from new potential customers.

*Customer:* a customer in this context is a Google My Business entry for
example a Restaurant.

The problem is that the existing customer names are not exactly the same as
the Google Maps entries, so we can’t compare them directly. In order to
overcome this problem, one has to scrape the existing customers in Google
Maps, hence obtaining the same type of data.

Example: Business Database has: the name “Coffee Shop 123”, but in Google
Maps it is “Coffee Shop 123 Munich”.

If you search for “Coffee Shop 123 in Munich” you will get the desired data
that is in this case: “Coffee Shop 123 Munich”

There are ca. 15k to 25k customers to cross-check and due to the secrecy of
the entire project, we never have access to the dataset, instead an
autonomous application is required that can process the given input.

-- 
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/CAA6_Mp4txB%3DfsD3RDdJVNtv_B6yQsXT1bPB_WBNB6hps5m4W4A%40mail.gmail.com.


[no subject]

2022-05-09 Thread 郑 玉婷
Dear django workers,
   First of all ,I have to appoloy for my poor English.
I want to add users through admin page ,which was registed by my own model . 
How can I add users with encoding their password?
These are my models and my admin.py. I’ll be grateful if you can help me!
  Best wishes!
 Molly


-- 
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/ME3P282MB168220B6B1CEE4E9084552E5D2C69%40ME3P282MB1682.AUSP282.PROD.OUTLOOK.COM.


[no subject]

2022-05-09 Thread 郑 玉婷
Dear django workers,
   First of all ,I have to appoloy for my poor English.
I want to add users through admin page ,which was registed by my own model . 
How can I add users with encoding their password?
These are my models and my admin.py. I’ll be grateful if you can help me!

#mysite\login\admin.py
from os import read
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from . import models
from login import views
# Register your models here.

admin.site.register(models.Manager)
admin.site.register(models.Student)
admin.site.register(models.Teacher)
admin.site.site_header = '真人图书馆管理后台'  # 设置header
admin.site.site_title = '真人图书馆管理后台'   # 设置title
admin.site.index_title = '真人图书馆主页'

#mysite\login\models.py
from distutils.command.upload import upload
from importlib.resources import path
from django.db import models

# Create your models here.

class Student(models.Model):

gender = (
('male', "男"),
('female', "女"),
)

name = models.CharField(max_length=128, unique=True)
password = models.CharField(max_length=256)
email = models.EmailField(unique=True)
sex = models.CharField(max_length=32, choices=gender, default="男")
c_time = models.DateTimeField(auto_now_add=True)

def __str__(self):
return self.name

class Meta:
ordering = ["-c_time"]
verbose_name = "学生"
verbose_name_plural = "学生"

class Manager(models.Model):

name = models.CharField(max_length=128, unique=True)
password = models.CharField(max_length=256)
email = models.EmailField(unique=True)
c_time = models.DateTimeField(auto_now_add=True)

def __str__(self):
return self.name

class Meta:
   ordering = ["-c_time"]
verbose_name = "管理员"
verbose_name_plural = "管理员"

class Teacher(models.Model):

gender = (
('male', "男"),
('female', "女"),
)

name = models.CharField(max_length=128, unique=True)
password = models.CharField(max_length=256)
sex = models.CharField(max_length=31, choices=gender, default="男")
image = models.ImageField(default = "",upload_to= 'media/')
email = models.EmailField(unique=True)
telephone = models.CharField(max_length = 11)
subject = models.CharField(max_length=20)
c_time = models.DateTimeField(auto_now_add=True)

def __str__(self):
return self.name

class Meta:
ordering = ["-c_time"]
verbose_name = "老师"
verbose_name_plural = "老师"
  Best wishes!
 Molly



-- 
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/ME3P282MB1682636F0E189716B7A32546D2C69%40ME3P282MB1682.AUSP282.PROD.OUTLOOK.COM.


[no subject]

2022-04-21 Thread adamlaska
adamlaska

-- 
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/CAM0yN9_P4Eg2qJiiUzzZ-s8%3DXa2fjMA2zyqaz%2BjA%2Bvm4kqd2Sw%40mail.gmail.com.


[no subject]

2022-02-02 Thread Gautam Ankul
How to use fee due notifications in django something helpe

-- 
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/CALKR2n1UW%3DFFdq1NAbEJADyhCxOtg-_g68mtpu-mqPaC7tGLfw%40mail.gmail.com.


[no subject]

2021-10-19 Thread Waqas Ali
Hi Maryam whare you from?

-- 
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/CAF2yDDEhBoM9w4yw8XLHd8GbPnkZWYEPZ-QKooyzVYeMbS4_EA%40mail.gmail.com.


[no subject]

2021-07-22 Thread Hello Singh
Only for practice, I want to built a video downloader web app, from a
specific website.
Problem
   first I have to download the video and then send to the user, it
time consuming I want to directly download at the user side, is it possible
in Django.

Thanks developers

-- 
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/CAEoS0z6VVB5Bv2eAm%3DnQCfO_B%2B9Oj7%2BGX%3D88ctUonJaUBgOKqg%40mail.gmail.com.


[no subject]

2021-07-18 Thread pankaj palmate
Hii ,Thank you for your response...but what hotstar does because i think
their videos are not possible to download and if not how can we make it
hard to download ?any referell link?

On Mon, 19 Jul, 2021, 7:38 am Benjamin Schollnick, <
bscholln...@schollnick.net> wrote:

> Good luck.
>
> If the user can play the video, then they by definition have to be able to
> download the video.  Unless you want to create your own proprietary
> streaming mechanism, if the web browser can display the video, it has to be
> able to cache the video (eg download it locally).
>
> For example, you can easily download almost any video off of youtube,
> without issue.  See youtube-dl, as well as dozens of other applications
> that can do this.
>
> Yes, there are ways to make this harder, but to play the video the
> computer has to be able to use some mechanism to download the video.
>
> - Benjamin
>
>
>
> On Jul 18, 2021, at 9:44 PM, pankaj palmate 
> wrote:
>
> Hello please help me in this, I want to provide my video content to users
> and my objects are stored in AWS s3 buckets.I want user to view video for 1
> year of validity but restrict to download the video...also he will have
> acess through my website only(i.e. he should not use s3 object url to
> access the file and download using Chrome)
> 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/CAPyMU1%2Bwwd6q%2B8m2LpJC6rUB1jxEzHQmh4800AzqBoZ8cW%2BAJw%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/C626942B-E102-476B-A136-733EC3B74712%40schollnick.net
> 
> .
>

-- 
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/CAPyMU1%2Bycgp9oTTDNXGfRAe7mV6KqEAaZM6oHkwF18r%3D0FT97A%40mail.gmail.com.


[no subject]

2021-07-18 Thread pankaj palmate
Hello please help me in this, I want to provide my video content to users
and my objects are stored in AWS s3 buckets.I want user to view video for 1
year of validity but restrict to download the video...also he will have
acess through my website only(i.e. he should not use s3 object url to
access the file and download using Chrome)
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/CAPyMU1%2Bwwd6q%2B8m2LpJC6rUB1jxEzHQmh4800AzqBoZ8cW%2BAJw%40mail.gmail.com.


[no subject]

2021-05-16 Thread yvin l'EXPLOIT
Hi! I've a website project. It's a showcase and real state website. How
much Can I charge 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/CADw1b3Him3c4vPJxj%3DesugM%3DTY1eKAO9RHkdj5PaEfT3nWCJew%40mail.gmail.com.


[no subject]

2021-04-02 Thread 'Amitesh Sahay' via Django users
Plz share ur exact question.
Thanks

Sent from Yahoo Mail on Android 
 
  On Fri, 2 Apr 2021 at 15:41, Richard Dushime wrote:   
dear developers i am requesting for help  
i am  new  and i wanted to start contributing on a project  but i have failed 
on how to start i have seen one project ideas but i am not seeing a mentor 
contacts  please i need a help 
thank you


-- 
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/CAJCm56Kf9mxV7jxErjFBspBaQKBDPoUPGQkWRjSmO3h%2Btmdw0w%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/1620072665.2307971.1617358458146%40mail.yahoo.com.


[no subject]

2021-04-02 Thread Richard Dushime
dear developers i am requesting for help
i am  new  and i wanted to start contributing on a project  but i have
failed on how to start i have seen one project ideas but i am not seeing a
mentor contacts  please i need a help
thank you

-- 
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/CAJCm56Kf9mxV7jxErjFBspBaQKBDPoUPGQkWRjSmO3h%2Btmdw0w%40mail.gmail.com.


[no subject]

2021-03-23 Thread Christ Doyen
hi guys how to connect a user with an email address and not the username

-- 
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/CADT9t_qbxEpRZyFE4c%3DHqJ7yFjfsjp5nLO7VgJ1FALF%2BXLX97A%40mail.gmail.com.


[no subject]

2021-01-26 Thread Florin Ngabire
Good after every body so need help someone how has a small Python project
in danger framework send me. I am new in Python

-- 
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/CACynOuJgKsHXCOOx0xgVE9-%3DFwNfWnzHkd7_C6MaY6HCZ8t5yQ%40mail.gmail.com.


[no subject]

2021-01-20 Thread Salima Begum
Hi all,

We are building website, Here I have written functionality for classifieds
page.
It is loading to slow because of We are prompting distance calculation in
classifieds page. By using distance API matrix based on logged in user zip
code and individual Ad zip codes from query set(database).

```
def classifieds(request):
global dict_time
try:
dict_time = {}
email = request.session.get('email')

# Here we are displaying the classified ads "order by date".
The ads will be sorted by latest date.
classifieds =
vk_classifieds.objects.filter(class_status='1').order_by('-added_date')

count =
vk_classifieds.objects.filter(class_status='1').order_by('-added_date').count()
for i in classifieds:
# diff_time is a child method. By passing 'i' as object in
diff_time.
difrnc_date = diff_time(i)
dict_time[i.id] = difrnc_date

# Pagination for classifieds page.
# classified = random.sample(list(classifieds), k=count)
# print("classified = ", str(classified))
# By default first page
page = request.GET.get('page', 1)
# print("page = ", str(page))
# Per page setting 40 objects.
paginator = Paginator(list(classifieds), 40)
# print("paginator = ", str(paginator))
classified_p = paginator.page(page)
# print(classified_p)
except PageNotAnInteger:
classified_p = paginator.page(1)
except EmptyPage:
classified_p = paginator.page(paginator.num_pages)
except Exception as e:
logging.error(e)
return render(request, "classifieds.html",
  {"Classifieds": classified_p,
 # distance calculation
   "distance": classifieds_dist(email),
   'some_date': dict_time,
   })
return render(request, "classifieds.html", {"Classifieds":
classified_p,
"distance":
classifieds_dist(email),
'some_date': dict_time,
})
```

```

def classifieds_dist(email):
global frm, km
dict_distance = {}

qury = vk_customer.objects.filter(email=email).first()

# From above qury variable we are getting zip of customer.
frm = qury.Zip
# importing json package to calculate the distance
url = "
https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial;
headers = {
'Authorization': "Bearer somevalue",
'User-Agent': "some value",
'Accept': "*/*",
'Cache-Control': "no-cache",
'Postman-Token': "some value",
'Host': "maps.googleapis.com",
'Accept-Encoding': "gzip, deflate",
'Connection': "keep-alive",
'cache-control': "no-cache"
}
classifieds =
vk_classifieds.objects.filter(class_status='1').order_by('-added_date')
for i in classifieds:
# while a user login through his login email we capture his
complete detail into an variable which we given as "qury"
# and after the details are stored into the variable from there we
will filter his starting and destination point as zipcode

# After login his/her based on email we are filtering in
vk_customer table. Then storing in qury variable.

# This zip is getting from vk_classifieds(model in models.py) table.
# 'i' attribute is getting from classifieds() function.
to = i.zip

origin_list = [to]
desination_list = [frm]
# here we used api for calculating the source and destination point
querystring = {"origins": origin_list, "destinations":
desination_list, "departure_time": "now",
   "key": "AIzaSyDhlCiMAEEfoYhkPcOyP0PLqpHsVMmYEXM"}
# here we are passing these headers to the api

# we are capturing the response in variable called response
response = requests.request("GET", url, headers=headers,
params=querystring)
jsondata = response.text
obj = json.loads(jsondata)
list = obj['rows']
if list:
a = list[0].get('elements')
obj2 = a[0].get("distance")
if obj2 is None:
km = "None"
else:
km = obj2["text"]
dict_distance[i.id] = km
l1.append(i.id)
print("id = ", str(i.id))
print("km = ", str(km))
return dict_distance


```

Because of this loading time of classifieds page is to slow. Please help me
to solve this issue.

Thanks
~Salima

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

[no subject]

2021-01-19 Thread Christ Ikonga
hi guys i have a question about django form.. how do i use a form i created
myself to allow users to register on my site?

-- 
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/CADT9t_rr9uEHAxFjJKOhwNdfUXYBCHCK-wa8JeuLrNJk7ZeZhg%40mail.gmail.com.


[no subject]

2020-12-20 Thread Clifford Okorie
Hello mates,  I'm looking for a Django paid job to know more about my skill
set you can contact me through my email : kcalif...@gmail.com. thank you.

-- 
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/CAEKe804tdiUyy-ubc61-DXntvd7pZwyMBZAXVmUyEnf5S3%2BkAw%40mail.gmail.com.


[no subject]

2020-12-20 Thread Clifford Okorie
Hello mates, I'm looking for a Django paid job to know more about my skill
set  you can contact me through my email :kcalif...@gmail.com, Thank you.

-- 
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/CAEKe804rq-_tfN3HLnHArgkdhL%3DJ3CtXr%2B--TMf%3DLqW_%3DScV1Q%40mail.gmail.com.


[no subject]

2020-12-01 Thread Gregory kalinga
Am Kalinga gregory a biginner on django,
I faced a problem in installing django. It tells me  unable to create
process using 'C:\Users\KALINGA
Gregory\Desktop\prog\project-name\scripts\python.exe -m pop install
Django'. I do not know what to do then, am asking for 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/CAAeTWb96SaLyMhPg96CdR3zPv2R-M6NFvoBy1S3HnUXUjMaY_w%40mail.gmail.com.


[no subject]

2020-09-08 Thread hans alexander
I got errors when installing Django Channels.
I'm using Python 3.8.5, Django 3.1

Installing using :
pip install channels

I got error like this:

Installing collected packages: twisted, daphne, channels
Running setup.py install for twisted ... error
ERROR: Command errored out with exit status 1:
   (many error lines below)

Please help. 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/CANV3w%3Db69GCOjap31KiAF%2BemS-zsDDDw96vHiMsKcWu9qW2hJg%40mail.gmail.com.


[no subject]

2020-08-21 Thread ankit baliyan
Plz, tell me how to deploy docker django project on server

-- 
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/CAH0koyyuoVGjLGs_HMym%3DvrYEY%2Bn9U9mXdxr_kDGyhC%2BWudQ-Q%40mail.gmail.com.


[no subject]

2020-08-19 Thread Suraj Kumar
Hello Django Users,


I want to know there is any need of knowledge in css, Html  while
developing website through django. I can also use css framework bootstrap
instead of css.
Suraj

-- 
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/CACCwaoWVefcoqZRKLHDwVdkWm%3D_FKe7enMFeiQOybSQGCj13BQ%40mail.gmail.com.


[no subject]

2020-08-14 Thread Peter Kirieny
hello, my data from json file didn't load into the server,
i can't see them in my admin interface
anybody to assist please

-- 
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/CAL8t8erGTN83dVhkmK31_qPeEughaNfV6mM%2BQB%2Bqhw4oSWFCag%40mail.gmail.com.


[no subject]

2020-08-12 Thread 'Amitesh Sahay' via Django users
probably, you can implement binary search algorithm


Regards,
Amitesh  

On Thursday, 13 August, 2020, 08:28:02 am IST, ROHINI PUNDE 
 wrote:  
 
 Hi, I want to do sorting, searching and paging in my crud operations,I am not 
getting exactly what can I do easily with python and django.please give me 
suggestions

-- 
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/CAO9_9ZbbXbcYBZK5i5%3DQSS%2BaO_3ShLNzq1HUz5AfiNdH%3DCwHdg%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/800650729.736718.1597289790123%40mail.yahoo.com.


[no subject]

2020-08-12 Thread ROHINI PUNDE
Hi,
 I want to do sorting, searching and paging in my crud operations,I am not
getting exactly what can I do easily with python and django.please give me
suggestions

-- 
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/CAO9_9ZbbXbcYBZK5i5%3DQSS%2BaO_3ShLNzq1HUz5AfiNdH%3DCwHdg%40mail.gmail.com.


[no subject]

2020-07-28 Thread Anupriya Nishad
I hosted my web app on a free hosting site pythonanywhere.com
But it is taking too long to respond.
What could be the reason?

-- 
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/CAGcPrqTyvKaAnsU1sp%3DorX8RsoZKO4W9xvvGsKuJ3y2E0MyHnw%40mail.gmail.com.


[no subject]

2020-05-06 Thread fahad rasool
I want to ask that i am working on django platform on a project ,which is
basically an system that generates a diet plan for user..

The flow is that a user has to register and sign up after registration, a
form (userinfo form )is to be filled by user,on basis of which diet plan is
generated.

Now my question is when the same user login second time ,i did not want
userinfo form to be displayed again and and again,r ather i want user to
redirect to userprofile page..

Please help i have stuck here for about 3 days..

-- 
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/CACqgSmCE4gxFtUSaXYRCTfuni3iS65TNrOOGQpz8CueD38u2pQ%40mail.gmail.com.


[no subject]

2020-05-05 Thread fahad rasool
Can someone tell that how to perform an operation ,for example we retreive
two numbers from database and want to add them and display on template in
django

-- 
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/CACqgSmCzazz4W5AuwKOzgvyjSDAMbXwgD-B%3DkM%2BtG3T0t2Mb%3DQ%40mail.gmail.com.


[no subject]

2020-05-04 Thread fahad rasool
I am working on project which is a diet planner,for that a user have to
signup ,fill a form and them meal plan is generated,in that i have made two
groups one for admin and other for customer,now i am unable to retroeve
data of the customer who is logged in.

-- 
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/CACqgSmCijsSTAp-r3iXkT6T0XpXifUOyRxZJwJ8C4UWt9PVA3g%40mail.gmail.com.


[no subject]

2020-05-04 Thread fahad rasool
In my django project ,when a user sign up, a form is redirected to fill
user information,further iam displaying this info on other page ,but whats
happening is when i am dislaying the information of the current user who
had logged in ,information of all users is displayed who had been signed up
earlier.

-- 
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/CACqgSmCraF9id7A24CX%2B1gFHnnknoskE4ZBV-LFj6se1nHfmTQ%40mail.gmail.com.


[no subject]

2020-05-03 Thread 'Amitesh Sahay' via Django users
it should be return redirect('login')


please check
On Sunday, 3 May, 2020, 07:34:11 pm IST, fahad rasool 
 wrote:  
 
 
I am unable to redirect to my login page from signup page and nor i am able to 
store sign up form details in the database .please someone help its urgent..

-- 
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/CACqgSmBdoviTSbHH%3D8yMo86MO6vpGpHyNQz1FtXgRf-UiL7zYw%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/660971716.362954.1588515193796%40mail.yahoo.com.


[no subject]

2020-04-27 Thread fahad rasool
How to retrieve data from database and display on web page ,example i want
to display the details of the user on  a web page which he has entered in a
form which is stored in database.

-- 
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/CACqgSmA0Cjjx8S_SqeGF1wBDQggGAXszKdApOD45-1CPBPXG0g%40mail.gmail.com.


[no subject]

2020-03-31 Thread fahad rasool
I am having a user model ( which include username,user email and password)
and have another model user_detail . I want to add username column to user_
detail and want to show the details of that username who have logged in and
filled the details..
How can i do this?

-- 
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/CACqgSmBXCDeVV%3DX72zBk7ip%2B0-QXE81w88Szr43GjwBHMiPCrQ%40mail.gmail.com.


[no subject]

2020-02-22 Thread Suraj Kumar
Do you know Automation through Python.
I want to learn automation tools.

Tools like appium, selenium

-- 
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/CACCwaoVZuL2awcQyPo0YPHaaB3k51PsxbN70NOJotXyctaYvCA%40mail.gmail.com.


[no subject]

2020-01-14 Thread yusuf abdul
why is my carousel not changing veiw

-- 
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%2B%2BGkSBuB%2BwjaEcEhJpVgMTQ_uXNpNgF_jXEWVmpx0i1fGOBvQ%40mail.gmail.com.


[no subject]

2019-11-28 Thread vaneet bawa
Exception Type: TemplateDoesNotExist

Could someone please tell me that i m getting this error how I can handle
it...

what i m trying to do is i have created a input field and in that field i m
providing a message and then i want that on button click that message
should be displayed on my console

Best Regards
Vaneet

-- 
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/CAKubXnzO%3DQizgnNaHWZoYwxXWMjCbj-bzkbxmOzcV6WZsyO_Ow%40mail.gmail.com.


[no subject]

2019-11-27 Thread vaneet bawa
can someone please tell me that how I can display the message on the url
from which I am getting the response

-- 
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/CAKubXnycx%3DqU2h4SgRJ%3D_HEXbSqfbJ8ii2TbVQVzYGzcT9m7Qg%40mail.gmail.com.


[no subject]

2019-11-24 Thread Paras Jain
its showing error like this:
TypeError at /edit_profile/

edit_profile() missing 1 required positional argument: 'pk'

views.py:
def edit_profile(request, pk):
post = get_object_or_404(User, pk=pk)
if request.method == "POST":
form = EditProfileForm(request.POST, instance=post)
if form.is_valid():
post = form.save(commit=False)
post.save()
return redirect('company/detail.html', pk=post.pk)
else:
return render(request,'company/edit_profile.html')


def detail(request,pk):
details = get_object_or_404(User, pk=pk) #it will create object
return render(request, 'company/detail.html',{'details':details})


urls.py:

from django.urls import path
from django.conf.urls import  url
#from .views import HomePageView
from .import views

urlpatterns=[
path('', views.home, name='company-home'),
path('register/', views.register, name='company-register'),
path('detail/', views.detail, name='company-detail'),
path('login/', views.login, name='company-login'),
path('add/', views.add, name='company-add'),
path('edit_profile/', views.edit_profile, name='company-edit'),


]

-- 
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/CAMtmBS9%2B50Ms6HepVL692bjMP8oO9qYY49xWJDHyFUP8AJJgiQ%40mail.gmail.com.


[no subject]

2019-11-23 Thread Paras Jain
i want my 'user_id' to be passed from detail function to edit profile
function but how?? need help

def detail(request,user_id):
details = get_object_or_404(User, pk=user_id)
return render(request, 'company/detail.html',{'details':details})



def edit_profile(request):
return render(request, 'company/edit_profile.html')

-- 
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/CAMtmBS9v8TppM55c__92m_r5q601Me%2B-OB2LuW4HdNFwuh_33Q%40mail.gmail.com.


[no subject]

2019-11-21 Thread Paras Jain
i am not rendring to detail page
views.py:
def detail(request):
#print('hobbies : ', user.hobbies)
return render(request, 'company/detail.html',{'details':request.user})

def login(request):
if request.method == 'POST':
email  = request.POST['email']
password = request.POST['password']

user = User.objects.get(email=email)   # get will fetch details
from database and it will match value with post

if user.password == password:

if user.type == 'Manager':
return redirect('company-add')

if user.type == 'Normal':
print('hobbies : ', user.hobbies)
return HttpResponseRedirect(reverse('company-detail'),user)
# return redirect('company-detail',user)
# return detail(request,user)
else:
messages.success(request, 'invalids credentials')
return redirect('company-login')

else:
return render(request, 'company/login.html')


urls.py:
from django.urls import path
from django.conf.urls import  url
#from .views import HomePageView
from .import views

urlpatterns=[
path('', views.home, name='company-home'),
path('register/', views.register, name='company-register'),
path('detail/', views.detail, name='company-detail'),
path('login/', views.login, name='company-login'),
path('add/', views.add, name='company-add'),

-- 
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/CAMtmBS_2fitTNfxc8uzQW%2BeWXqexTijnO7ePcYha63iLWtS9GQ%40mail.gmail.com.


[no subject]

2019-11-20 Thread Paras Jain
my render function its not working in detail function its not rendering to
detail.html.please help any one

views.py:
def detail(request,user):
print('hobbies : ', user.hobbies)
return render(request, 'company/detail.html',{'details':user})

def login(request):
if request.method == 'POST':
email  = request.POST['email']
password = request.POST['password']

user = User.objects.get(email=email)

if user.password == password:

if user.type == 'Manager':
return redirect('company-add')

if user.type == 'Normal':
print('hobbies : ', user.hobbies)
return detail(request, user) #calling the detail
function
else:
messages.success(request, 'invalids credentials')
return redirect('company-login')

else:
return render(request, 'company/login.html')

urls.py
from django.urls import path
from .import views

urlpatterns=[
path('', views.home, name='company-home'),
path('register/', views.register, name='company-register'),
path('detail/', views.detail, name='company-detail'),
path('login/', views.login, name='company-login'),
path('add/', views.add, name='company-add'),

]

-- 
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/CAMtmBS-nQC5D1XGdSJxck2E46ouMdAmNciE58LcbwBCVpVCBjw%40mail.gmail.com.


[no subject]

2019-11-20 Thread Paras Jain
how to take pass one object of one function to other in django

-- 
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/CAMtmBS9f-vgmp80t6zj6txi1BMKM8aSnW0avQkL2khy1Yj_few%40mail.gmail.com.


[no subject]

2019-11-15 Thread Paras Jain
 i am not able to send email showing odd type of error need help
views.py:
from django.shortcuts import render, redirect
from django.contrib import messages
from profilestorer.settings import EMAIL_HOST_USER
from django.conf import settings
from .forms import SignUpForm
from django.core.mail import send_mail
from django.utils.crypto import get_random_string
from django.contrib.auth import authenticate,  logout
from django.contrib.auth.decorators import login_required
from django.http import HttpResponseRedirect, HttpResponse
from .models import User

# Create your views here.
def home(request):
return render(request, 'company/home.html', {'title':'profilestorer'})

@login_required
def user_logout(request):
logout(request)
return HttpResponseRedirect(reverse('login'))


def register(request):
form = SignUpForm()
if request.method == 'POST':
form = SignUpForm(request.POST)

#unique_id = get_random_string(length=8)
subject = 'Welcome to DataFlair'
message = 'Hope you are enjoying your Django Tutorials'
recepient = str(form['Email'].value())
send_mail(subject, message, EMAIL_HOST_USER, [recepient],
fail_silently = False)
return render(request, 'company/success.html',
{'recepient': recepient})
#return redirect('login')

#else:
#form =SignUpForm()
return render(request, 'company/register.html', {'form': form})

-- 
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/CAMtmBS9g7XpxPO2AaG8HKmTjvWVAoZ84GCXp8a-WFREaqW8NpA%40mail.gmail.com.


[no subject]

2019-11-14 Thread Paras Jain
   i m using only email for sign up and sending the random password  on the
mail which will be used for login
Now I want login to be done using register email and password send to mail
I m stuck here that I m generating random password but how I will save as
password and email in my 'views.Py ' file .so that email password can be
used for login
 Please need help

views.py:
from django.shortcuts import render
from profilestorer.settings import EMAIL_HOST_USER
from .forms import SignUp
from django.core.mail import send_mail
from django.utils.crypto import get_random_string
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.http import HttpResponseRedirect, HttpResponse

# Create your views here.
@login_required
def user_logout(request):
logout(request)
return HttpResponseRedirect(reverse('company-login'))


def register(request):
form =SignUpForm()
if request.method == 'POST':
form = SignUpForm(data=request.POST)
unique_id = get_random_string(length=8)
subject = 'Welcome to profile storer'
message = 'Please enter this password for login :   ' +
unique_id
recepient = str(form['Email'].value())
send_mail(subject,
message, EMAIL_HOST_USER, [recepient], fail_silently =
False)
return render(request, 'company/success.html', {'recepient':
recepient})


return render(request, 'company/register.html', {'form':form})

forms.py:

from django import forms
from django.contrib.auth.forms import UserCreationForm
from .models import User


class SignUp(UserCreationForm):
email = forms.EmailField(max_length=200)

class Meta:
model = User
fields =('email')

models.py:

from django.db import models
from django.contrib.auth.models import User

# Create your models here.
class User(models.Model):
email = models.EmailField()
password = models.CharField(max_length=50)

def __str__(self):#will return search
add by the user
return '{}'.format(self.email)

class Meta:
verbose_name_plural = 'User'

-- 
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/CAMtmBS9Dttmx17L5rhE9qqXS-sOYkdqkvuOUfq5piKoHsVKVqA%40mail.gmail.com.


[no subject]

2019-11-13 Thread Paras Jain
now i want to generate random password and send it to mail instead of
simple message
views.py:

from django.shortcuts import render
from profilestorer.settings import EMAIL_HOST_USER
from . import forms
from django.core.mail import send_mail


# Create your views here.
def login(request):
form = forms.SignInForm()
return render(request, 'company/login.html', {'form':form})


def register(request):
form = forms.SignUpForm()
if request.method == 'POST':
form = forms.SignUpForm(request.POST)
form.save()
subject = 'welcome to profile storer'
message = 'Hope you find the mail'
recepient = str(form['Email'].value())
send_mail(subject,
message, EMAIL_HOST_USER, [recepient], fail_silently =
False)
return render(request, 'company/success.html', {'recepient':
recepient})
return render(request, 'company/register.html', {'form':form})

-- 
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/CAMtmBS-TKN%3D_iOJX%3DV-dUcCWxBj_%3Df3kXf_gQDPYt14TnDmRAQ%40mail.gmail.com.


[no subject]

2019-11-13 Thread Paras Jain
i have just created a model which will have login information in database
but it is not showing its appearance i have also done migration

models.py:

from django.db import models

# Create your models here.
class User(models.Model):
email = models.EmailField()
password = models.CharField(max_length=50)

def __str__(self):
return '{}'.format(self.email)

-- 
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/CAMtmBS_GUL4vj5QPRd%2BqFLDkbnjRr_m%3DRbbt4QgG3sW-QbDVyQ%40mail.gmail.com.


[no subject]

2019-11-11 Thread Paras Jain
how send email in django for password reset

-- 
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/CAMtmBS-07d3%3DwFy7C0vQ0ROuCmVzpZhVpSGa%3DuV%2BCBiZTQnoiw%40mail.gmail.com.


[no subject]

2019-11-08 Thread Paras Jain
Hy, i am not getting my all fields on the my page which is written inside
the forms.py of 'PersonForm'


models.py:
from django.db import models

# Create your models here.
TITLE_CHOICES = (
('Normal', 'Manager'),
)

class Company(models.Model):
email = models.EmailField()

def __str__(self):#will return search
add by the user
return '{}'.format(self.email)


class Meta:
verbose_name_plural = 'Company'



class Person(models.Model):
name = models.CharField(max_length=255)
email = models.EmailField()
type = models.CharField(max_length=6, choices=TITLE_CHOICES)

class Meta:
verbose_name_plural = 'Person'


forms.py:
from django import forms
from .models import Company,Person

class CompanyForm(forms.ModelForm):
class Meta:
model = Company
fields = ('email',)

class PersonForm(forms.ModelForm):
class Meta:
model = Person
fields = ('type', 'name','email',)

views.py:
from django.shortcuts import render
from .forms import CompanyForm, PersonForm
from django.views.generic  import CreateView

# Create your views here.
def home(request):

form = CompanyForm()

if request.method  == "POST":
form = CompanyForm(request.POST)

if form.is_valid():
form.save(commit=True)

else:
print('Error form invalid')

return render(request, 'home.html', {'form':form})

def add(request):

form= PersonForm()
if request.method  == "POST":
form = CompanyForm(request.POST)

if form.is_valid():
form.save(commit=True)



return render(request, 'add.html', {'form':form})

-- 
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/CAMtmBS-LUNiBy-ey%2BrpvB1%3DRPo6n9x3GwuSnOswObBRt2OZK1g%40mail.gmail.com.


[no subject]

2019-11-07 Thread Paras Jain
this is my models.py file i created and migrated but model in not created
in my admin page as database please somebody help

from django.db import models

# Create your models here.
class Company(models.Model):
email = models.EmailField()


def __init__():
return self.email

-- 
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/CAMtmBS-msPj-1TNBx%3DP6YOZTZmaEhFp22%3DGa%3DHGC160w77fyEQ%40mail.gmail.com.


[no subject]

2019-11-05 Thread Pranjul Kimothi
How Can I use Django as backend for an Arduino application .?? Any
suggestions

-- 
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/CAH8L0J4U%2BzLcuKVKMcQSaYGwWBYza1KMW5z%3DCfYX%3DV53VnoGbw%40mail.gmail.com.


[no subject]

2019-11-05 Thread Paras Jain
on hitting submit i have to send email and password to user email id which
will be used for login in django

-- 
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/CAMtmBS8KETpX74D8nRpPiDdnb_GYSeHYGgc3c_6TVgA15dKa4g%40mail.gmail.com.


[no subject]

2019-11-04 Thread Paras Jain
please somebody tell me what steps should i follow please need help


Create a Django Web App called “Profile Storer” where a company can sign up
using Email.

Once signed up, he can add more people to his team. Every team member can
be either “Normal” type or “Manager” type. When you add a team member, that
particular person gets an email with password, which he/she can use to
login.

When a Manager type user logs in, he sees a list of all users of that
company, he can go and edit any of the profile.

When a Normal user logs in, he sees only his own profile that he can edit.


Questions in Profile:

Name, Phone, Gender, Hobbies, Profile Picture.

-- 
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/CAMtmBS-mWtcx1Z0QFdvDc9F-ApoqHdP_9CkpaQzZUULow%3DHrFg%40mail.gmail.com.


[no subject]

2019-11-01 Thread Mohammad yunus
Can anyone tell me about how to set mysql database connection,and also tell
me requirements for this steps,.
Can someone tell me which database is good for Django framework .I know
about default database sqlite (is it good for 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/CAEQiGcN2%2BNUnpt5BzBvn5x%2BS%3DcGpKRkOs1jXNM%3DOqeLFxCqWog%40mail.gmail.com.


[no subject]

2019-10-29 Thread Mohammad yunus
Can anyone tell me how to connect mysql database.. with step by step?

-- 
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/CAEQiGcNGkopjWW6ejWqQAb3721XsCUa%3DS%2B7uOM5oiyReKejNUw%40mail.gmail.com.


[no subject]

2019-10-27 Thread Perceval Maturure
dear django users

how do youu make the the first level menu clickable in the customisation of
this code.



   {%  show_menu 0 100 100 100 "menu/custom-menu.html"  %}  

-- 
*Perceval Maturure*

*083 303 9423*

-- 
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/CAFZtZmBF5neNRE1O%3D98DFruG4OmZPsYHCwE3fS5%2BfcXZ9b2riQ%40mail.gmail.com.


[no subject]

2019-10-22 Thread Perceval Maturure
dear Django users
Is there a way to display data  from a single model on 3 different
bootstrap cards ordered by created date.
So at the end I can 3 cars each with 2 different items/ records from the
model

-- 
Sent from Gmail Mobile

-- 
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/CAFZtZmCJ5L6SkGdqA7wNS-WV-thORM8%3Dj1P9VrwoDAkkogDh7Q%40mail.gmail.com.


[no subject]

2019-10-09 Thread Uzama Zaid Mohammed Jaward
Hello there

Can anyone send resources on Clean Architecture in Django?

-- 
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/CAOHA2_1Gh81z1ZS7NkWQ0h%3Dr3baaWFRH1knUOK-ieBFrqKNkUQ%40mail.gmail.com.


[no subject]

2019-10-08 Thread Raja Sekar Sampath
Hi,

I'm facing challenges to get the result of below problem,I have two models
in my application i.e.,


class UserMenu(models.Model):
name = models.CharField(max_length=50)

def __str__(self):
return self.name


class MenuMapping(models.Model):

user_menu = models.ManyToManyField(UserMenu, verbose_name='Menu')
user_group = models.ForeignKey(Group, related_name='user_group',
verbose_name='Department', on_delete=models.SET_NULL, null=True) # refers -
auth.group which is linked with users


def __str__(self):
return self.user_group.name



Now I want to get the list of UserMenu mapped with the user_group of logged
in user.

I could not able to get expected result with prefetch_related or
select_related,

Can anybody help ??

-- 
Thanks & Regards,

Raja Sekar Sampath
+91 9087434567.

-- 
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/CAAS5AE5yjCtcdGOgx0sGhUBpWXkrCfCirTanqYaDddXzmRbp9Q%40mail.gmail.com.


[no subject]

2019-09-28 Thread Perceval Maturure
dear team
my django cms is refusing to take in other templates when i select a
different template, what could be the problem?

i am on django cms 3.7.0 , django 2.1 and python 3
regards


-- 
*Perceval Maturure*

*083 303 9423*

-- 
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/CAFZtZmCJzJOfCfOGNm%2B3bep%3DaiJxep%2BgfXC8Yg_5tYmifnXG_A%40mail.gmail.com.


[no subject]

2019-09-24 Thread Avi gehlot
Yo put in admin.py
Django.models import users

But
You put apptwo.models inport users
This way ...

On Tue, 24 Sep 2019 at 9:43 AM, Deep Sukhwani 
wrote:

> Are you supposed to be using a virtualenv and you don't have that
> activated?
>
> Can you run *pip freeze | grep -i django* and share the output?
>
> --
> Regards
> Deep L Sukhwani
>
>
> On Tue, 24 Sep 2019 at 09:40, MEGA NATHAN 
> wrote:
>
>> Hi.
>>
>>
>> i 'm meganathan from india i was doing django trining ,
>>
>> And i have one dout .mo module name found models
>>
>> *ModuleNotFoundError: No module named 'django.models'*
>>
>>
>>
>>
>>
>> *Regards*
>> *Meganathan,*
>>
>> --
>> 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/f85f29b7-e3d9-4dfa-945f-70f1fb8e90f1%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/CAEMqiPe7rf4syuVUTEZVO%2BOMh7K-cvGX_yLsL0vhchNbTTfATw%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/CAP_t-_Ct-9tzG816JgJEY_Ad%2BK1jcAcAdeUuejBfX06cCEubOw%40mail.gmail.com.


[no subject]

2019-09-18 Thread Shakil Ahmmed
How to select all field but group by one field
-- 

Shakil Ahmmed
about.me/shakilahmmed


-- 
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%2BEpJfzNPZ_vRqyHan92VsDY9MAjsxogKVh4FEBdwXWLd%3DHXtQ%40mail.gmail.com.


[no subject]

2019-09-10 Thread Abhishek Ghaskata
I am getting error models has no 'objects' member.
So what should I do?

-- 
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%2B5xdHPwjnyUVC_gw-QS9SW75RFj6obHvNJkKrwxtKSSmZQMzg%40mail.gmail.com.


[no subject]

2019-08-29 Thread Shakil Ahmmed
Firstly I Have More than 1 Million Data In my database , while i want to
perform aggregation or annotation or filter it took huge time , i have to
show all data at a time,,, i use select_related() for foreign key but i
want to optimize database hitting , like i want to fetch all data from
database in first database hit and convert them into dictionary or list and
perform another queries into dictionary or list without hitting database i
hope it can optimize database hit Example : In Laravel I Fetch All data
from database and convert it into Array while i have to perform queries
into it i convert them into collect() and perform queries , and it dont hit
the database .
[a link ]:(https://laravel.com/docs/5.8/collections) !

I Can perform this in Django ???
-- 

Shakil Ahmmed
about.me/shakilahmmed


-- 
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%2BEpJfwCnMV_e5Th6HXTMSPQ%3DjeEFYzYjnV7WpXjvHm968mOrQ%40mail.gmail.com.


[no subject]

2019-08-22 Thread Perceval Maturure
Hi All
My app is not displaying records from the database after hooking a page to
an apphook. I can select the app from admin on the page but when I preview
the page is empty,
Can anyone share some simplified tutorial for Django version 2.1 and
Djangocms 3.6
Regards
Perceval
-- 
Sent from Gmail Mobile

-- 
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/CAFZtZmCHMYdNit1gBaJvjTK-qc9En-F1U6CkoggOV724e-euiA%40mail.gmail.com.


[no subject]

2019-08-10 Thread Suraj Thapa FC
How do I write my front-end form response in..  .json file

-- 
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/CAPjsHcG4%3D%3D%2BRWSeDocSiF9dGaHdt4LFi%2B-AB11Q43vOhZnY1Zg%40mail.gmail.com.


[no subject]

2019-07-29 Thread Suraj Thapa FC
How can I create a file field which one can upload Multiple files in 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/CAPjsHcE%2BMSVGHiQ0bx4z_2pxMMiE57FD44kFn4hE%3DsSLaj66kw%40mail.gmail.com.


[no subject]

2019-07-24 Thread avi gehlot
You can contact me ..

On Wed, 24 Jul 2019 at 3:57 PM, Soumen Khatua 
wrote:

> Hi Folks,
> I want to create one signup page where end-user can SignUp and LogIn by
> using their e-mail id nit by Username. Please tell me how i can do
> that,please provide me source code for that.
>
> Thank You
>
> Regards,
> Soumen
>
> --
> 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/CAPUw6Wat%3DTGsY%3DF816XDS77YQkk29OLEQYUkjkmQN1hX6A%2B1iw%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/CAOo90MDTC8aha3CNOk18UMoa8Zc8J5RURQk5ak7RJAkpFvn2bg%40mail.gmail.com.


[no subject]

2019-07-22 Thread Mukul Dharwala
The code you have sent me is correct or will i have to add more files

-- 
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/CAFOmVPETkuf0JbScpo%2Bhso2veeY11A_PrR5ZEt5D%2BbdFBo--uw%40mail.gmail.com.


Re: Why do my django email error reports have weird characters in the subject?

2019-07-19 Thread Tal
Ended up being related to the other problem I was having, where I was 
getting 2 emails for every exception, and both problems were caused by 
enabled django-channels.

Disabling django channels, or running django-channels in production with 
daphne, rather than using the channels ASGI development server, everything 
works - I only get one email, and its formatting is fine. The channels 
development server though sends me 2 emails if an exception is thrown, and 
one of the emails has those weird characters.

If anyone knows a way to fix this, let me know. If not, I'll just have to 
ignore it. I guess it doesn't really bother me if it doesn't happen in 
production.


On Friday, July 19, 2019 at 11:31:26 AM UTC-6, Tal wrote:
>
> Is this possibly related to the fact that I have django-channels enabled?
> I'll try disabling it to see if it's related.
>
> On Friday, July 19, 2019 at 9:46:20 AM UTC-6, Tal wrote:
>>
>> I setup my django 2.2.3 project to use gmail to send emails out.
>>
>> I also have it configured to send me emails about any exceptions that 
>> occur.
>>
>> To test it, I made a view with:
>>
>>
>> float('a')
>>
>> It works, but there are weird characters in the subject of the email I 
>> receive, and in the first part of the message. I think those are bash color 
>> code characters.
>>
>> Why am I seeing them? Is this a Django bug? Any way to fix it?
>>
>>
>>
>>
>> [image: Screen Shot 2019-07-19 at 9.38.26 AM.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/b42fd92c-fb0a-4dc9-97c8-d57b55f7b01d%40googlegroups.com.


Re: Why do my django email error reports have weird characters in the subject?

2019-07-19 Thread Tal
Is this possibly related to the fact that I have django-channels enabled?
I'll try disabling it to see if it's related.

On Friday, July 19, 2019 at 9:46:20 AM UTC-6, Tal wrote:
>
> I setup my django 2.2.3 project to use gmail to send emails out.
>
> I also have it configured to send me emails about any exceptions that 
> occur.
>
> To test it, I made a view with:
>
>
> float('a')
>
> It works, but there are weird characters in the subject of the email I 
> receive, and in the first part of the message. I think those are bash color 
> code characters.
>
> Why am I seeing them? Is this a Django bug? Any way to fix it?
>
>
>
>
> [image: Screen Shot 2019-07-19 at 9.38.26 AM.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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f2067717-a6da-486c-a80b-e4c21a0b5b57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Why do my django email error reports have weird characters in the subject?

2019-07-19 Thread Tal


I setup my django 2.2.3 project to use gmail to send emails out.

I also have it configured to send me emails about any exceptions that occur.

To test it, I made a view with:


float('a')

It works, but there are weird characters in the subject of the email I 
receive, and in the first part of the message. I think those are bash color 
code characters.

Why am I seeing them? Is this a Django bug? Any way to fix it?




[image: Screen Shot 2019-07-19 at 9.38.26 AM.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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/25ab432a-7dc8-4ac0-8751-d0c039bbc9fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-06-26 Thread Pradeep Singh
Does it make sense to create an application with Django as the backend and
Angular as the front end? I understand entire websites can be built from
Django, so how would Angular, as a front end framework, work with Django?
What would be the benefit of adding Angular, or is it an unnecessary
complexity even for large websites?

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANwgZcYYsxyqQugJddtTv_2M_aLvq3PeQ%2BREEYTR%2BBX4SQX-Pg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-06-17 Thread Herman
how do I solve thsi kind of operational error on windows
'django.db.utils.OperationalError: FATAL:  password authentication failed
for user "hp" '?

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACq2e44kWP8dVvLrMYwowrkF%3DLKQLB_2a570wf1VWPk-Jq5juQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-05-31 Thread Pradeep Singh
can anyone tell me ..what is advantage of angular js ...in python/django..

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANwgZcb5frbKx5hBYA51iEtJYpjTjb2WRyObd3vx9XyxQeWGyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-05-15 Thread Marvelous Ikechi
Hello guys,

I'm trying to write to my settings.py file from the data I received from my
form, but it isn't recognizing the form fields I declared.

Say for instance,
my form is:
Class MessageForm(forms.form):
   sender = forms.EmailField()
   password = forms.CharField()

and I imported my form in settings as follows:

from vmail.forms import MessageForm

then I try to do:
Email_Host_User = MessageForm.sender

It doesn't recognise MessageForm.sender as a valid call. In fact, it's
underlined with red on my IDE.  Please, is there Any suggestion on how to
go about this? As I intend to use a form to alternate the details in the
settings.py file for sending an email.

P.S: ignore the typos, the code structure is correct down here.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG%3D1guxpj2d%2BHd2gdwn4UxuD8deuaaGYF6EzrFzJwAqYmKhfAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-03-30 Thread Nanjuki Saidat
Hi all,
I am Saidat a new django developer, i need help on how to go about
this  " Change
admin portal URL to more obvious path and add link in side menu to admin
settings for admin users". In summary:


   1.  i want to change URL string to more intuitive URL (i.e.
   fhp.example.com/drunken-octo-lama/ to fhp.example.com/admin/)
   2. If a user is an admin user, show a link in the side menu to access
   admin settings page.

   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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHrBrjA%2B-jLGcnhV0FGmAX0yatra-N_YWob9iJz4e_53A%3DQaQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-03-30 Thread carol caro
Hello. I am a new or beginner django developer. Where do I start from I
have installed python and integrated with Django framework but I don't know
what to do next

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN%2Bowc-S7n3OX0jc_fLjro6unDSNZJU4yGbYsxTLGeh55%3DFQvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-03-12 Thread Devendra reddy
Hi to all

How to delete multiple objects(leads) using check boxes in jango
Please send me solution

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABB0Uf0evxWUG6aF0JHEBfCSeCgGqjodjMY3UMUJoEDN%3D_pNvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-03-05 Thread Harryxon Ndegwa
Hae everyone

Can anyone recommend a django resource to build an online payment site like
paypal.
Thankyou

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPqDb9Nz2pzSUnZY9BEQQySK4CJDP%2BjO4m%3D5%3DJ31wRLhGEhubw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-02-21 Thread bhushan patil
I am running the command 'python manage.py makemigrations polls' but it's
showing that django.db.models has no attribute model.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJ%3Ds-Myumw2o8mxYcbjQXjG0Zy%2BVao6kPjmL7dxaajaGDG5MsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-02-20 Thread bhushan patil
Guys I am not able to run the file manage.py on runserver.Its showing that
no such file or directory.Can anyone help me with this

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJ%3Ds-My__xLUdSt6vV%2BJ%2B1AAir8LAfFxX7P9kxf5cG-eFCKEHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-01-19 Thread Vikash Verma
Please remove me

Get Outlook for iOS

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/BL0PR0102MB3524B2BC6D8F8BBF9DC7B624F39E0%40BL0PR0102MB3524.prod.exchangelabs.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-01-02 Thread Joseph Gichuki

Here it is
Sent from Mail for Windows 10

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5c2cce87.1c69fb81.2d099.3b97%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   >