Re: Job related query

2021-02-19 Thread Sharif Mehedi
Hi,
I gave only a few months with Django and a few years with python. But I am 
good at working with a flow by getting help from the documentation.
Here's a link to one of my Django work in progress, 
https://github.com/8lurry/heartbeat .
I am fairly good with Django. You won't regret giving me a chance.
Thank you
- Mehedi
On Friday, February 19, 2021 at 11:01:32 AM UTC+6 bhurk...@gmail.com wrote:

> Hello everyone,
>
> We are looking for a python Django web app developer should have the total 
> knowledge about python Django and should be experienced person at least for 
> 2-3 years..
> If anyone  interested …
>

-- 
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/e13a5425-b2bd-4abc-8fdb-433b2e7e4e58n%40googlegroups.com.


django voluntary work.

2021-02-22 Thread Sharif Mehedi
Hello everybody,
I am trying to start a career in development. I can work around any problem 
with python. I have gone through a fair amount of django documentation.
I am looking forward to work as a volunteer on any professional django 
project that should boost my learning and also assist on building a resume. 
I am not expecting any payment. If you hire me and see that I can assist on 
your work flow, then I am hoping I can join your team as a paid contributor.
It would be a great help if anybody suggest anybody else where there is 
such a scope to join as a volunteer.
Thank you for spending your time in reading this.
- Mehedi

-- 
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/fbeb0825-2860-407d-8764-70e6de4759a9n%40googlegroups.com.


Re: django voluntary work.

2021-02-22 Thread Sharif Mehedi
>>> Hello @Sharif,
>>> Do you have any experience with the following:-
>>>

   1. version control? git or svn? 
  2. docker?
   

>>>* Regards,*

>>>* Gilwell Muhati | +254 710 739 116 |*
>>>* ~~“The mind is its own place and in itself can make a heaven of hell, 
a hell of heaven…”~~John Milton*

Hello Gilwell Muhati,

I have experience with git (version control), and as with docker, I took a 
tutorial and set up a docker container environment with wsl-2 (Ubuntu 18.04 
Bionic), I understand how docker works and can work with docker.

Thank you for considering me to include in your team. I will be glad to get 
instructions from you in getting started on your workflow.

Regards,
- Mehedi
On Monday, February 22, 2021 at 10:31:33 PM UTC+6 gilw...@gmail.com wrote:

> Hello @Sharif,
> Do you have any experience with the following:-
>
>1. version control? git or svn? 
>2. docker?
>
>
>
>
>
> *Regards,Gilwell Muhati | +254 710 739 116 | *
> *~~“The mind is its own place and in itself can make a heaven of hell, a 
> hell of heaven…”~~John Milton *
>
>
> On Mon, Feb 22, 2021 at 6:55 PM Sharif Mehedi  
> wrote:
>
>> Hello everybody,
>> I am trying to start a career in development. I can work around any 
>> problem with python. I have gone through a fair amount of django 
>> documentation.
>> I am looking forward to work as a volunteer on any professional django 
>> project that should boost my learning and also assist on building a resume. 
>> I am not expecting any payment. If you hire me and see that I can assist on 
>> your work flow, then I am hoping I can join your team as a paid contributor.
>> It would be a great help if anybody suggest anybody else where there is 
>> such a scope to join as a volunteer.
>> Thank you for spending your time in reading this.
>> - Mehedi
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/fbeb0825-2860-407d-8764-70e6de4759a9n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/fbeb0825-2860-407d-8764-70e6de4759a9n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/a699f454-902f-4448-8ec8-33543985f5dbn%40googlegroups.com.


Re: django voluntary work.

2021-02-23 Thread Sharif Mehedi
 Mr. Gilwell Muhati,
Since you haven't made any decision yet probably because you are doubting my 
ability to work with docker. I can assure you even though I am new to docker, I 
am a quick learner, and have gone through the official docker guide, I will 
have no trouble using docker.
I only ask you to give me a chance to prove myself.
Thank you    - Mehedi
On Tuesday, February 23, 2021, 12:24:39 PM GMT+6, Sharif Mehedi 
 wrote:  
 
 >>> Hello @Sharif,>>> Do you have any experience with the following:->>>   
   
   - version control? git or svn? 
   - docker?

>>> Regards,

>>> Gilwell Muhati | +254 710 739 116 |
>>> ~~“The mind is its own place and in itself can make a heaven of hell, a 
>>> hell of heaven…”~~John Milton
Hello Gilwell Muhati,
I have experience with git (version control), and as with docker, I took a 
tutorial and set up a docker container environment with wsl-2 (Ubuntu 18.04 
Bionic), I understand how docker works and can work with docker.
Thank you for considering me to include in your team. I will be glad to get 
instructions from you in getting started on your workflow.
Regards,- MehediOn Monday, February 22, 2021 at 10:31:33 PM UTC+6 
gilw...@gmail.com wrote:

Hello @Sharif,Do you have any experience with the following:-   
   - version control? git or svn? 
   - docker?

Regards,

Gilwell Muhati | +254 710 739 116 |
 ~~“The mind is its own place and in itself can make a heaven of hell, a hell 
of heaven…”~~John Milton 

On Mon, Feb 22, 2021 at 6:55 PM Sharif Mehedi  wrote:

Hello everybody,I am trying to start a career in development. I can work around 
any problem with python. I have gone through a fair amount of django 
documentation.I am looking forward to work as a volunteer on any professional 
django project that should boost my learning and also assist on building a 
resume. I am not expecting any payment. If you hire me and see that I can 
assist on your work flow, then I am hoping I can join your team as a paid 
contributor.It would be a great help if anybody suggest anybody else where 
there is such a scope to join as a volunteer.Thank you for spending your time 
in reading this.- Mehedi



-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fbeb0825-2860-407d-8764-70e6de4759a9n%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/a699f454-902f-4448-8ec8-33543985f5dbn%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/1884353950.1906585.1614139171484%40mail.yahoo.com.


Re: Query SET

2021-02-27 Thread Sharif Mehedi

https://docs.djangoproject.com/en/3.1/ref/models/instances/#django.db.models.Model
https://github.com/django/django/blob/64a0d1ef6e7a6739148996e9584bbb61fe3dcc60/django/db/models/base.py#L404

https://docs.djangoproject.com/en/3.1/ref/models/querysets/
https://github.com/django/django/blob/64a0d1ef6e7a6739148996e9584bbb61fe3dcc60/django/db/models/query.py#L175

On Sunday, February 28, 2021 at 2:59:56 AM UTC+6 aysha...@gmail.com wrote:

> Hello everyone,
> I was just learning Django and had a doubt.
> while making django models classes,In CONSOLE, the objects of the models  
> were returning as query sets
> The queryset is a class"my question is whether query set is a parent 
> class models.Model?".
> I wanted to know how these 2 classes are related..
>
> If I am wrong not making sense :) please do correct me, I am a beginner  
> in Django and still have n't yet completely worked out how django models 
> work.
>
> 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/ef2968d0-39a1-4d91-90f2-96b1678f7a6bn%40googlegroups.com.


Re: pyspark

2021-05-03 Thread Sharif Mehedi
What are you trying to implement or do?
   On Monday, May 3, 2021, 11:46:00 PM GMT+6, ankit baliyan 
 wrote:  
 
 can anyone tell me how to use pyspark 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/CAH0koyy17oAEynu6mp%2BAEjgF2Om_t8BPWaWS3oZBKTrz9he9VA%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/1976993195.132816.1620064090218%40mail.yahoo.com.


Re: pyspark

2021-05-04 Thread Sharif Mehedi
>>> I just want to use pyspark data frames.
What for?
   On Tuesday, May 4, 2021, 9:45:29 AM GMT+6, ankit baliyan 
 wrote:  
 
 I just want to use pyspark data frames.
On Mon, 3 May, 2021, 11:18 pm Sharif Mehedi,  wrote:

What are you trying to implement or do?
   On Monday, May 3, 2021, 11:46:00 PM GMT+6, ankit baliyan 
 wrote:  
 
 can anyone tell me how to use pyspark 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/CAH0koyy17oAEynu6mp%2BAEjgF2Om_t8BPWaWS3oZBKTrz9he9VA%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/1976993195.132816.1620064090218%40mail.yahoo.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/CAH0koyxYTLJ3mX%3Dyny_fzcf%2B6MDyxa9d4ytjg%2BDRr%3D_6sm77%3DA%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/129193749.181297.1620115375174%40mail.yahoo.com.


Re: I am getting these can u please show the solution

2021-05-05 Thread Sharif Mehedi
 What seems to be the problem?

On Wednesday, May 5, 2021, 10:16:33 PM GMT+6, Phani Deep 
 wrote:  
 
 Environment:Request Method: GETRequest URL: http://127.0.0.1:8000/ Django 
Version: 3.0.4Python Version: 3.8.5Installed Applications:['startmusic', 
'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 
'django.contrib.sessions', 'django.contrib.messages', 
'django.contrib.staticfiles']Installed 
Middleware:['django.middleware.security.SecurityMiddleware', 
'django.contrib.sessions.middleware.SessionMiddleware', 
'django.middleware.common.CommonMiddleware', 
'django.middleware.csrf.CsrfViewMiddleware', 
'django.contrib.auth.middleware.AuthenticationMiddleware', 
'django.contrib.messages.middleware.MessageMiddleware', 
'django.middleware.clickjacking.XFrameOptionsMiddleware']Template error:In 
template 
C:\Users\sakth\AppData\Local\Programs\Python\Python38\HelloMusic\startmusic\templates\startmusic\base.html,
 error at line 0 Reverse for 'album_detail' with arguments '('', )' not found. 1 pattern(s) tried: 
['@(?P[^/]+)/album/(?P[^/]+)/$'] 1 : {% load static %} 2 : 
 3 :  4 : {%block title%}StartMusic{%endblock%} 5 : 
 6 :  7 :  8 :  9 : 
 10 : Traceback (most recent call 
last): File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\handlers\exception.py",
 line 34, in inner response = get_response(request) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\handlers\base.py",
 line 115, in _get_response response = self.process_exception_by_middleware(e, 
request) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\handlers\base.py",
 line 113, in _get_response response = wrapped_callback(request, 
*callback_args, **callback_kwargs) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\HelloMusic\startmusic\views.py",
 line 30, in profile_detail return render(request, 
'startmusic/artist_information.html', {'albums':albums}) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\shortcuts.py",
 line 19, in render content = loader.render_to_string(template_name, context, 
request, using=using) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\loader.py",
 line 62, in render_to_string return template.render(context, request) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\backends\django.py",
 line 61, in render return self.template.render(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\base.py",
 line 171, in render return self._render(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\base.py",
 line 163, in _render return self.nodelist.render(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\base.py",
 line 936, in render bit = node.render_annotated(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\base.py",
 line 903, in render_annotated return self.render(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\loader_tags.py",
 line 150, in render return compiled_parent._render(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\base.py",
 line 163, in _render return self.nodelist.render(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\base.py",
 line 936, in render bit = node.render_annotated(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\base.py",
 line 903, in render_annotated return self.render(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\loader_tags.py",
 line 62, in render result = block.nodelist.render(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\base.py",
 line 936, in render bit = node.render_annotated(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\base.py",
 line 903, in render_annotated return self.render(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\defaulttags.py",
 line 209, in render nodelist.append(node.render_annotated(context)) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\base.py",
 line 903, in render_annotated return self.render(context) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-packages\django\template\defaulttags.py",
 line 443, in render url = reverse(view_name, args=args, kwargs=kwargs, 
current_app=current_app) File 
"C:\Users\sakth\AppData\Local\Programs\Python\Python38\lib\site-pack

Re: Looking for help installing django

2021-05-06 Thread Sharif Mehedi
Not very understandable, no useful information on your message body, only 
there's an exception!Try to understand what you are doing and when you 
understand ask for help if you cannot solve it yet.   On Thursday, May 6, 2021, 
10:27:35 PM GMT+6, Philip Pelletier  wrote:  
 
 
I get this error message on the browser at 127.0.01:8000
Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 3.2.1
Python Version: 3.9.4
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'events']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback (most recent call last):
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\core\handlers\exception.py",
 line 47, in inner
    response = get_response(request)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\utils\deprecation.py",
 line 119, in __call__
    response = self.process_response(request, response)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\middleware\clickjacking.py",
 line 26, in process_response
    if response.get('X-Frame-Options') is not None:

Exception Type: AttributeError at /
Exception Value: 'tuple' object has no attribute 'get'



-- 
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/7a861eb5-df71-4c0b-a239-82c28d18cb06n%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/1289025461.1281886.1620321964614%40mail.yahoo.com.


Re: Looking for help installing django

2021-05-06 Thread Sharif Mehedi
 I suggest you follow the official documentation page to properly set up for a 
django project. 
Getting Started: https://docs.djangoproject.com/en/3.2/intro/
If you have trouble following the doc. Please, ask for help, and also be 
specific about what part of documentation you do not understand.
On Friday, May 7, 2021, 12:17:48 AM GMT+6, Philip Pelletier 
 wrote:  
 
 All I did was install and start django. I made no edits of any kind. I even 
reinstalled python and got the same problem,

On Thursday, May 6, 2021 at 1:40:29 PM UTC-4 abubak...@gmail.com wrote:

can you please explain to me that what are you trying to do? because you have 
explained nothing in your question about your problem
On Thu, May 6, 2021 at 10:26 PM Sharif Mehedi  wrote:

Not very understandable, no useful information on your message body, only 
there's an exception!Try to understand what you are doing and when you 
understand ask for help if you cannot solve it yet.   On Thursday, May 6, 2021, 
10:27:35 PM GMT+6, Philip Pelletier  wrote:  
 
 
I get this error message on the browser at 127.0.01:8000
Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 3.2.1
Python Version: 3.9.4
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'events']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback (most recent call last):
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\core\handlers\exception.py",
 line 47, in inner
    response = get_response(request)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\utils\deprecation.py",
 line 119, in __call__
    response = self.process_response(request, response)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\middleware\clickjacking.py",
 line 26, in process_response
    if response.get('X-Frame-Options') is not None:

Exception Type: AttributeError at /
Exception Value: 'tuple' object has no attribute 'get'



-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7a861eb5-df71-4c0b-a239-82c28d18cb06n%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...@googlegroups.com.


To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1289025461.1281886.1620321964614%40mail.yahoo.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/a1e303f9-c2d4-4e1b-939c-58ccd559d576n%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/2135254379.1114876.1620325487578%40mail.yahoo.com.


Re: Validate UserChangeForm from admin site

2021-05-11 Thread Sharif Mehedi
You can do something like:IN:class CustomUserCreationForm(forms.ModelForm):
    
def clean(self):    cleaned_data = super().clean()    # put your 
custom validator here!
   On Tuesday, May 11, 2021, 6:53:24 PM GMT+6, Ayush Bisht 
 wrote:  
 
 # admin.pyclass CustomUserAdmin(UserAdmin):model = CustomUseradd_form 
= CustomUserCreationFormfieldsets = (
*UserAdmin.fieldsets, ('User type',{
'fields' : ('is_admin','is_doctor', 
   'is_nurse',),
'description': "Select any one of them "}))
# models.py
class CustomUser(AbstractUser):username = models.CharField(max_length=50, 
unique=True, blank=False, null=False)   is_doctor = 
models.BooleanField(default=False, blank=False, null=False)is_nurse = 
models.BooleanField(default=False, blank=False, null=False)is_admin 
= models.BooleanField(default=False, blank=False, null=False)
# forms.py
class CustomUserCreationForm(forms.ModelForm):"""A form that creates a 
user, with no privileges, from the given username andpassword."""
error_messages = {'password_mismatch': _('The two password fields 
didn’t match.'),}password1 = forms.CharField(
label=_("Password"),strip=False,
widget=forms.PasswordInput(attrs={'autocomplete': 'new-password'}),# 
help_text=password_validation.password_validators_help_text_html(),)
password2 = forms.CharField(label=_("Password confirmation"),
widget=forms.PasswordInput(attrs={'autocomplete': 'new-password'}),
strip=False,help_text=_("Enter the same password as before, for 
verification."),) class Meta:model = CustomUser# fields 
= "('username',  'password' ,'password2', 'userchoice')"fields = 
("username",)# field_classes = {'username': UsernameField}
def __init__(self, *args, **kwargs):super().__init__(*args, 
**kwargs)     self.fields['username'].help_text = 'Enter you Staff ID'

def clean_password2(self):password1 = 
self.cleaned_data.get("password1")password2 = 
self.cleaned_data.get("password2")if password1 and password2 and 
password1 != password2:raise ValidationError(
self.error_messages['password_mismatch'],
code='password_mismatch',)return password2

def save(self, commit=True):user = super().save(commit=False)   
 user.set_password(self.cleaned_data["password1"])if commit:
user.save()return user



..
the is_doctor , is_nurse   and is_admin fields comes at the userchageform.. is 
there a way to validate the fields at admin level.  I mean if someone , checked 
more than one designation then , a field error have to appear on the admin 
userchangeform,   Is there any way to customize the userchangeform...
Any help would be highly appreciable , 



-- 
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/da01a016-26fc-4590-992d-eaf86a502d7an%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/1660007552.1091046.1620738931856%40mail.yahoo.com.


Re: Issue in the models.py

2021-05-16 Thread Sharif Mehedi
The easiest way to go to python terminal with django settings configured is by 
running: python manage.py shell
   On Sunday, May 16, 2021, 3:34:01 PM GMT+6, Suraj Kumar 
 wrote:  
 
 No, this solution not help for me.I am still getting same error.

On Sun 16 May, 2021, 14:36 Chelsea Fan,  wrote:

try this
On Sun, May 16, 2021 at 11:40 AM Suraj Kumar  
wrote:

Hi everyone,
I having some issue in models.py While doing in the python shell in the pycharm 
terminal.So I write the code in the models.pyScreenshot: Screenshot (312)-1.png
Then I run  makemigration command and migrate command .Then write code in 
python shellfrom firstapp.models import Topic then I got issue as 
"django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, 
but settings are not configured. You must either define the environment 
variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing 
settings."
Please refer to the screenshotScreenshot: Screenshot (311)-1.png
And here is the setting.py file 
Can anyone help me with this?I don't where did I mistake.So please help me out 
this issue.

-- 
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/CACCwaoWP7z0%2BnmO-9M4v%2BKP37zP0hbg0BX2bXfqYCE16%3DkVChA%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/CAJwZndcQtaN-togwx2kg_Yjd4dWvzWpMMY_w%3DObK89s%2B_qmjnQ%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/CACCwaoU-kiDShkrcniAJuoM-gbtrzPUUsZyJnB0cCMLCpnEuOQ%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/2140173205.1049884.1621158719602%40mail.yahoo.com.


Re: I need web scraping to get product information from mfg sites

2021-05-18 Thread Sharif Mehedi
This will particularly be interesting for me. Okay.

Contact details,Name: Sharif Mehediemail: sharifmehed...@gmail.com   On 
Wednesday, May 19, 2021, 12:11:15 AM GMT+6, Diénert Vieira 
 wrote:  
 
 Hi, I'm interested.
https://www.linkedin.com/in/dienert

--
Diénert
Em ter., 18 de mai. de 2021 11:55, John McClain  
escreveu:

Hello,
I am looking for individuals that can set up scraping routines for me and place 
the results in google.docs for me.
If interested in helping out please let me know. Some compensation for your 
efforts is available. There are 20+ sites needed to be scraped which is why I 
am seeking help with the project.
If interested drop your name and contact details here and I'll be in touch.
Cheers,
J

-- 
John McClain
Cell: 085-1977-823
Skype: jmcclain0129Email: jmcclain0...@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/CAN-hv_pQ67gGF10S4J1pk1CtSzmX9qqtDp_-j_Pax3tvpmeczg%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/CABj-%3DO3%2BTP952PjnbAcb1N5ba_aecLizdzn0beCGGFekpJ6mAw%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/1715205870.1950206.1621363716358%40mail.yahoo.com.


Re: PayPal Integration

2021-05-19 Thread Sharif Mehedi
 First you need to have OAuth 2 on your server. look for PYPI packages that has 
OAuth for paypal.the follow this: 
https://developer.paypal.com/docs/api/overview/On Wednesday, May 19, 2021, 
5:30:43 PM GMT+6, Eric 247ERICPOINTCOM  wrote:  
 
 Hi
I would like to integrate PayPal with my project in Django I have gone through 
a couple of tutorials but I still dont understand how to do it. I am new to 
Django but I have got a project am working on which charges per post on the 
website.
When a post is created it will be charged I want to add PayPal to the post 
button, so that when one pays the post is created automatically there after.
How can I do this.
Here is my template for create_post:
{% extends "feed/layout.html" %} {% load static %} {% load crispy_forms_tags %}
{% block searchform %}

 
 
 Search
 

{% endblock searchform %} {% block content %}


 
 
 
 
 Post
 
 {% csrf_token %}
 
 
 {{ form|crispy }}
 
 
 
 Post
 
 
 
 
 
 


{% endblock content %} {% block jsfiles %}{% endblock jsfiles %}


-- 
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/46c1c5ea-d198-440f-8538-6d4955b237a8n%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/13750508.255604.1621434160035%40mail.yahoo.com.


Re: Can you help me solve this

2021-05-20 Thread Sharif Mehedi
I do not see anything solvable there. Maybe soak it into water! :P .Maybe, it 
will help if you can provide us with a clue to whatever you are trying to do 
and the nature of the problem you are facing in trying in doing.
   On Thursday, May 20, 2021, 7:02:25 PM GMT+6, Sameer Gedam 
 wrote:  
 
 OperationalError at /admin/products/product/add/no such table: 
main.auth_user__oldRequest Method:
POSTRequest URL:
http://127.0.0.1:8000/admin/products/product/add/Django Version:
2.0.7Exception Type:
OperationalErrorException Value:
no such table: main.auth_user__oldException Location:
C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\lib\site-packages\django\db\backends\sqlite3\base.py
 in execute, line 303Python Executable:
C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\Scripts\python.exePython Version:
3.9.5Python Path:
['C:\\Users\\user\\Dev\\trydjango\\src', 'c:\\python39\\python39.zip', 
'c:\\python39\\DLLs', 'c:\\python39\\lib', 'c:\\python39', 
'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR', 
'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR\\lib\\site-packages']Server 
time:
Wed, 19 May 2021 16:51:46 +


-- 
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/f4b616e3-be6b-49d9-8d62-577e32d45121n%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/1572993905.688196.1621516160432%40mail.yahoo.com.


making TemplateView.template_name point to a file NOT in the templates directory.

2021-05-20 Thread Sharif Mehedi

I do not have a django-admin project and using django views (along with 
other django submodules) in my python app, so, i do not have a directory 
structure like django projects has and I never had a templates directory in 
my app. The way we configured it, serving from templates directory is out 
of the question.

I want to know, if there's an easy solution in making django take a 
template_name as (django.views.generic.base).TemplateView.template_name 
that is (simply said) outside the templates directory.

TIA
Regards,
Sharif

-- 
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/b2291451-6d15-432d-9f35-db60e4f4e65bn%40googlegroups.com.


Re: hey there! i really want to have a friend here

2021-05-24 Thread Sharif Mehedi
You should probably contact your "cloud service" (or what other ever service it 
is) provider.
I will try to help you if you'd provide some more details of your problem.

Regards,Sharif
   On Monday, May 24, 2021, 7:23:16 PM GMT+6, Hassan Adamu 
 wrote:  
 
 good day dear friends.i have created a website just a few month a go. but now 
i was unable to access the website. please my friends can any body help me out?



-- 
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/fe324813-cc72-4146-8976-f0647da8a0c2n%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/13324.1039510.162186258%40mail.yahoo.com.


Re: hey there! i really want to have a friend here

2021-05-24 Thread Sharif Mehedi
The nature of you website, how is it running, where is it running etc   On 
Monday, May 24, 2021, 7:50:15 PM GMT+6, Hassan Adamu  
wrote:  
 
 
OK thanks. What are the details you need?
On 24 May 2021 2:31 pm, "Sharif Mehedi"  wrote:

You should probably contact your "cloud service" (or what other ever service it 
is) provider.
I will try to help you if you'd provide some more details of your problem.

Regards,Sharif
   On Monday, May 24, 2021, 7:23:16 PM GMT+6, Hassan Adamu 
 wrote:  
 
 good day dear friends.i have created a website just a few month a go. but now 
i was unable to access the website. please my friends can any body help me out?



-- 
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+unsubscribe@ googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ 
msgid/django-users/fe324813- cc72-4146-8976-f0647da8a0c2n% 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+unsubscribe@ googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ 
msgid/django-users/13324. 1039510.162186258%40mail. yahoo.com.



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BWHeE6SneerKXR0-h4ovOCjA6VF73kf6hMAmzsf%3D7SP-ahR_Q%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/736789683.1052963.1621864643378%40mail.yahoo.com.


Re: How can I pass input value to view function without forms

2021-05-27 Thread Sharif Mehedi
How are you making the request?
   On Thursday, May 27, 2021, 4:20:55 PM GMT+6, Bhanu prasad Ch 
 wrote:  
 
 Hello Boris,      I was thinking of passing number from the input to view 
function call_me_when_ten()index.html..
views.pydef call_me_when_ten(request):    if request.post == 'POST':
          number = request.POST['numberid']          if number == 10:           
      print('hello world')    return render(request,'index.html')
I got this code from StackOverflow, but this isn't worked. Please, help me in 
solving out this problem.
On Wednesday, May 26, 2021 at 5:02:04 AM UTC+5:30 Boris Pérez wrote:

Hi!!! usually HttpResponseRedirects work with reverse
function...something like this
def myview(request):
 return HttpResponseRedirect(reverse('arch-summary', args=[1945]))
where 'arch-summary' is the path name and args=[1945] the args it expects...
You need to modify also your urls.py to add tyhe name argument to your url...
Greetings

2021-05-25 0:57 GMT-04:00, Bhanu prasad Ch :
> Hello everyone,
> Please help me out in understanding how to pass the redirected view
> with some arguments like userid to connect the URLs in Django
> [image: Screenshot_2.png][image: Screenshot_3.png]
> When I am doing this way it is redirecting to the self page that is login.
> But I need the
> HttpResponseRedirect to redirect to the progress.
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2ebc28b3-0e99-4ace-9868-aad10564a172n%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/f17dd6c8-4228-46d4-b9f4-fb4059e5d536n%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/1414205110.682508.1622113308712%40mail.yahoo.com.


Re: PayPal Integration

2021-05-31 Thread Sharif Mehedi
Glad to be of help.
It'd be easier for me to help you if I had a sneak peek at your code snippet, 
with which you are trying to do that.
Sharif
   On Monday, May 31, 2021, 5:56:44 PM GMT+6, Eric 247ERICPOINTCOM 
 wrote:  
 
 Thank you Sharif, I have integrated successfully with paypal after going 
through the paypal developer docs, and tested it with sandbox.paypal and it is 
working great.
However I would like your help, to now be able to submit  the form 
automatically after making the payment with paypal. I have tried adding 
type="submit"  to the paypal button but that doesn't work.  How can I do that?
  
Kind Regards

Eric Bawakuno | Computer Engineer | +27795639700| +27 815152254 | 
eric...@gmail.com  | Address: 29 Rochester Road, Observatory | Cape Town, South 
Africa | 7925f





On Wed, May 19, 2021 at 7:26 PM Eric 247ERICPOINTCOM  wrote:

Thank you Sharif. Let me do that, I will come back to the conversation after
  
Kind Regards

Eric Bawakuno | Computer Engineer | +27795639700| +27 815152254 | 
eric...@gmail.com  | Address: 29 Rochester Road, Observatory | Cape Town, South 
Africa | 7925f





On Wed, May 19, 2021 at 4:23 PM Sharif Mehedi  wrote:

 First you need to have OAuth 2 on your server. look for PYPI packages that has 
OAuth for paypal.the follow this: 
https://developer.paypal.com/docs/api/overview/On Wednesday, May 19, 2021, 
5:30:43 PM GMT+6, Eric 247ERICPOINTCOM  wrote:  
 
 Hi
I would like to integrate PayPal with my project in Django I have gone through 
a couple of tutorials but I still dont understand how to do it. I am new to 
Django but I have got a project am working on which charges per post on the 
website.
When a post is created it will be charged I want to add PayPal to the post 
button, so that when one pays the post is created automatically there after.
How can I do this.
Here is my template for create_post:
{% extends "feed/layout.html" %} {% load static %} {% load crispy_forms_tags %}
{% block searchform %}

 
 
 Search
 

{% endblock searchform %} {% block content %}


 
 
 
 
 Post
 
 {% csrf_token %}
 
 
 {{ form|crispy }}
 
 
 
 Post
 
 
 
 
 
 


{% endblock content %} {% block jsfiles %}{% endblock jsfiles %}


-- 
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/46c1c5ea-d198-440f-8538-6d4955b237a8n%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/13750508.255604.1621434160035%40mail.yahoo.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/CAFgqToXO%2BoG5aKxOfD05XxixDyrPC9guQ%2B7gPHrakDSRPuzLaA%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/1362915566.1915479.1622464587686%40mail.yahoo.com.


Re: Updating FK values for Stock Application

2021-06-07 Thread Sharif Mehedi
 Hi Shazia,


On Monday, June 7, 2021, 5:38:38 PM GMT+6, Shazia Nusrat 
 wrote:  
 
 >>> Hi, 


>>> I need to update my orders model with available quantity and literals. My 
>>> Orders are:
You can use GenericForenignKey field for such use case in your Orders Model. 
see the doc: 
https://docs.djangoproject.com/en/3.2/ref/contrib/contenttypes/#generic-relations
>>> class Orders(models.Model):>>>      update_chemical = models.ForeignKey(…..
>>> I just need your help to give me idea that how I can update my orders with 
>>> multiple fields from Stock. For instance if I create >>> a foreignkey I 
>>> will only be able to select one of the "id" in available stocks. I need to 
>>> let the user select or update multiple >>> values in a FK based key. Please 
>>> advise. 
>>> Best Regards,>>> Shazia
Regards,Sharif


-- 
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/ed643b75-005f-484d-a004-a14449c7d372n%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/1716640108.4539959.1623085365728%40mail.yahoo.com.


Re: Looking for Django Open Source Projects

2021-07-13 Thread Sharif Mehedi
 Hi Utkarsh,
Here's something for you to take a look at: 
https://dev.lino-framework.org/welcome.html , it's an effort to make something 
beautiful with application logic for which I find it interesting.

Take a look and if you have questions or opinions please feel free to contact 
me personally.
Regards,
Sharif
On Wednesday, July 14, 2021, 12:17:08 AM GMT+6, Utkarsh Singh 
 wrote:  
 
 Hi Django mailing list,

First of all I would like to say "thank you" to Django contributors and
maintainers for creating this awesome web framework.

Currently I am trying to learn Django using it's reference manual but I
would like to supplement it with a Open Source project to learn how
veteran Django programmers build their web application.

By taking a look  I found really great
websites but I was unable to decide which one of them goes along the
lines of Django programming guidelines and philosophy.

Thank you,
Utkarsh Singh

-- 
Utkarsh Singh
http://utkarshsingh.xyz

-- 
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/874kcy5jzj.fsf%40gmail.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/227413175.4677003.1626208756492%40mail.yahoo.com.


Re: Can anyone help me

2021-07-28 Thread Sharif Mehedi
Here's the django-official tutorial: 
https://docs.djangoproject.com/en/3.2/intro/tutorial01/   On Wednesday, July 
28, 2021, 8:58:25 PM GMT+6, Nagaraju Singothu  
wrote:  
 
 Sir, please send me one tutorial.

On Wed, Jul 28, 2021 at 8:04 PM Sebastian Jung  
wrote:

Hello Nagaruj,
Here in this forum you get help on specific problem but when you search a 
people how help you develop such a page then you find on upwork developer fast 
and cheap.
If you want to make it self then several tutorials exists.
Regards
Nagaraju Singothu  schrieb am Mi., 28. Juli 2021, 
15:51:

Dear friends,
I'm new to django, plz help me how to develop this page and send me the source 
code. 
This task only using bootstrap and 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/CAMyGuAayru0Zg-imwncZasP36Ur5%3DQFLbi%2BWV8RARrN5qPfKTA%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/CAKGT9mynS-1huwqSq0ch%3DhpKc%3DguZ_of_FFxmB4G-EW3V8kiWA%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/CAMyGuAYB__ninjWjwSMdLwas00ds0PUpcHdrHoK84bckwb03Mg%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/128551395.674636.1627484412834%40mail.yahoo.com.


Re: Git Hub Project

2021-08-04 Thread Sharif Mehedi
Run: `git clone https://github.com/django/django`



   On Wednesday, August 4, 2021, 7:11:56 PM GMT+6, Rana Zain 
 wrote:  
 
 Hi,Can anybody help me in running git clone django Project?

-- 
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/425c8297-2097-4952-b2ac-3fa299ff6011n%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/1324057380.3167615.1628082923722%40mail.yahoo.com.


Re: Setting recipient name in EmailMultiAlternatives

2023-03-27 Thread Sharif Mehedi
I haven't read the documents myself that I am referring to here. But they 
should come as a help to you with your 
question.https://www.rfc-editor.org/rfc/rfc5322https://github.com/python/cpython/blob/main/Lib/email/_header_value_parser.py
Try to follow the generalized rules when having some public namespace ( or 
address).
Regards,
--
Sharif
   On Monday, March 27, 2023 at 07:12:51 PM GMT+6, Peter Benjamin Ani 
 wrote:  
 
 I don't fully understand the error, can you describe it more please 
On Mon, 27 Mar 2023, 13:54 Sylvain,  wrote:

Hello,
I’m using the following code to send mails to my users, with their name 
appearing in the `To` header:
msg = EmailMultiAlternatives(subject=subject, body=body, 
to=f"{user.get_full_name()} <{user.email}>")msg.send()
It works fine but if you have a special character in your name (such as a 
comma) then `msg.send()` will fail because `sanitize_address` raises an 
exception. Note that this will only fail with the SMTP backend because all 
other backends (such as the console backend) don’t sanitize the address, so 
even if you try to write tests for this case, it won’t fail unless you actually 
use the SMTP backend.

I couldn’t find any indication in the Django docs on how to correctly include 
the name of the recipient in an e-mail so I started digging in the code. I 
found that the `sanitize_address` function (which uses the 
email.headerregistry.parser module of Python’s, which doesn’t seem to be 
documented) accepts either a string or a tuple of (name, address), so I thought 
I could use `to=(user.get_full_name(), user.email)` which seemed quite elegant, 
but doesn’t really work because the value is not sanitized before it’s put in 
the `To` header so it will show up like `(Jane Doe, j...@example.com)` in the 
recipient mailbox.
However, it seems calling `sanitize_address` directly works, like so:
msg = EmailMultiAlternatives(subject=subject, body=body, 
to=sanitize_address((user.get_full_name(), user.email), 
settings.DEFAULT_CHARSET))
But since there’s no mention of `sanitize_address` in the Django docs, I’m not 
sure it’s the right way to do it. And since I couldn’t find anything on this 
topic on the internet I think I might be missing something obvious. Could 
anyone point me in the right direction?
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/9f64152c-a5b3-4995-a539-1359416e9decn%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/CAPxt_2XOf4b3ZPP-Sa8GPvf9iaVZNhyjwjyF-5DtysGqAQxm4A%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/733743579.1204509.1679923796523%40mail.yahoo.com.