Re: page index.html

2022-08-26 Thread hajar Benjat
you have *DEBUG=False* in your *project.settings.py
<http://project.settings.py>* and you need to edit allowed hosts that is
required for security reasons,

example :
*ALLOWED_HOSTS=[".example.com <http://example.com>" , "127.0.0.1:8000
<http://127.0.0.1:8000>","localhost:port"]*  or *ALLOWED_HOSTS=["*"]*  for
quick test but DON'T use* '*'* in production .



On Fri, Aug 26, 2022, 10:42 AM REMY TOUITOU  wrote:

> hello , when i try to make the server running , it is written:
> commanderror:you must set settings.ALLOWED_hosts if debug is false
> thanks you
>
> Le jeu. 25 août 2022 à 14:32, ALBERT ASHABA AHEEBWA <
> ashabaaheebwaalb...@gmail.com> a écrit :
>
>> No. There is no space. It's just "runserver". One word
>>
>> On Thu, 25 Aug 2022, 15:27 hajar Benjat,  wrote:
>>
>>> Sorry Is there any space between runser ver??
>>>  Or am I wrong!...
>>> It must be "runserver"
>>>
>>>
>>> On Thu, Aug 25, 2022, 12:22 PM ALBERT ASHABA AHEEBWA <
>>> ashabaaheebwaalb...@gmail.com> wrote:
>>>
>>>> So what happens when you just run $python manage.py? Does it bring up a
>>>> list of commands you can run? If not you have to activate your virtual
>>>> environment properly if you are using any.
>>>> Or path to the virtual environment py script
>>>>
>>>>
>>>>
>>>> On Thu, 25 Aug 2022, 14:01 REMY TOUITOU,  wrote:
>>>>
>>>>> Hello here is the kind of error i have when i try to make the server
>>>>> run
>>>>>
>>>>> Thanks you
>>>>>
>>>>> Le mer. 24 août 2022 à 14:11, Asif Ahmed Khan 
>>>>> a écrit :
>>>>>
>>>>>> What type of errors are you facing?
>>>>>> Can you send some screenshots?
>>>>>> or error details?
>>>>>>
>>>>>> On Wed, 24 Aug 2022 at 15:14, REMY TOUITOU 
>>>>>> wrote:
>>>>>>
>>>>>>> hello  , i have a question , i can't make the server running , when
>>>>>>> i do the command  py manage;py runserver , it gives a lot of error in
>>>>>>> differents files , before the server was running well;
>>>>>>> i use visual studio code and conda ;
>>>>>>> thanks you
>>>>>>> remy
>>>>>>>
>>>>>>> Le jeu. 18 août 2022 à 23:06, hajar Benjat 
>>>>>>> a écrit :
>>>>>>>
>>>>>>>> did you make it right (what about the urls.py and views.py )
>>>>>>>>
>>>>>>>> [image: width=]
>>>>>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>>>>>>>>  Sans
>>>>>>>> virus.www.avast.com
>>>>>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>>>>>>>> <#m_-3214317380400663760_m_2223134895186722350_m_2707266092418565389_m_-3027264578619593358_m_-8808041519504331120_m_5977893245110104293_m_-5049226825181264093_m_-6259126178247629255_m_2558853448420336607_m_-5726608972012506882_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%40mail.gmail.com
>>>>>>>> <https://groups.google.com/d/msgid/django-users/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%40mail.gmail.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,
>>&g

Re: page index.html

2022-08-25 Thread hajar Benjat
Sorry Is there any space between runser ver??
 Or am I wrong!...
It must be "runserver"


On Thu, Aug 25, 2022, 12:22 PM ALBERT ASHABA AHEEBWA <
ashabaaheebwaalb...@gmail.com> wrote:

> So what happens when you just run $python manage.py? Does it bring up a
> list of commands you can run? If not you have to activate your virtual
> environment properly if you are using any.
> Or path to the virtual environment py script
>
>
>
> On Thu, 25 Aug 2022, 14:01 REMY TOUITOU,  wrote:
>
>> Hello here is the kind of error i have when i try to make the server run
>>
>> Thanks you
>>
>> Le mer. 24 août 2022 à 14:11, Asif Ahmed Khan  a
>> écrit :
>>
>>> What type of errors are you facing?
>>> Can you send some screenshots?
>>> or error details?
>>>
>>> On Wed, 24 Aug 2022 at 15:14, REMY TOUITOU 
>>> wrote:
>>>
>>>> hello  , i have a question , i can't make the server running , when i
>>>> do the command  py manage;py runserver , it gives a lot of error in
>>>> differents files , before the server was running well;
>>>> i use visual studio code and conda ;
>>>> thanks you
>>>> remy
>>>>
>>>> Le jeu. 18 août 2022 à 23:06, hajar Benjat  a
>>>> écrit :
>>>>
>>>>> did you make it right (what about the urls.py and views.py )
>>>>>
>>>>> [image: width=]
>>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>>>>>  Sans
>>>>> virus.www.avast.com
>>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>>>>> <#m_5977893245110104293_m_-5049226825181264093_m_-6259126178247629255_m_2558853448420336607_m_-5726608972012506882_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>>>
>>>>> --
>>>>> 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/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%40mail.gmail.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/CAD9WEx365okwa4ziZXt1pVj3sQ9bDCZmyjkhx6nosqfn4iwmHg%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAD9WEx365okwa4ziZXt1pVj3sQ9bDCZmyjkhx6nosqfn4iwmHg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> K. Asif Ahmed
>>> *System Manager*
>>>
>>> *Maharashtra State Seeds Co. Ltd, Akolahttp://www.mahabeej.com/
>>> <http://www.mahabeej.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/CAEMxhgS3tUSqdhJaEy2W9_duipbwcZYn3j4x36OZh48gUL7N_w%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAEMxhgS3tUSqdhJaEy2W9_duipbwcZYn3j4x36OZh48gUL7N_w%40mail.gmail.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/CAD9WEx1Kh96q07WezNijQi1pM

Re: page index.html

2022-08-18 Thread hajar Benjat
for example this is your project name* 'firstproject'* and this is your app
name *'firstapp'* in your template you will create a html page named
*'index.html'* in your *'firstapp' views.py* you need to create a function
for example :
 def index(request):
return render(request, 'index.html')

in your *'firstapp'* *urls.py *you need something like this
urlpatterns = [
 path('',views.index,name="index"),
]

and then in your 'firstproject' urls.py you need this
from django.urls import path,include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('firstapp.urls')),
]



Le jeu. 18 août 2022 à 22:06, hajar Benjat  a écrit :

> did you make it right (what about the urls.py and views.py )
>
> [image: width=]
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>  Sans
> virus.www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#m_-7430398450597033952_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>


-- 

*HAJAR BENJAT *

- Specialized Master in Information Systems Engineering

At CADI AYYAD UNIVERSITY *– *FSSM Marrakech

- Computer Science Teacher

*P:* +212698608188

*E:* hajar.ben...@edu.uca.ma

*LinkedIn: *https://www.linkedin.com/in/hajar-benjat-a92132106

-- 
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/CAMcj6Wf3evMhypW%3DOChVi-nUXoDQRU%2BZB-AFLtyEfvh1JJVh6Q%40mail.gmail.com.


Re: page index.html

2022-08-18 Thread hajar Benjat
did you make it right (what about the urls.py and views.py )

[image: width=]

Sans
virus.www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

-- 
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/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%40mail.gmail.com.


Re: Python Django Training

2020-12-07 Thread hajar Benjat
I am interested
Could you add me too

On Tue, Dec 8, 2020, 12:42 AM Chuck  wrote:

> I am also interested.
>
> Thanks,
> Chuck
>
> On Monday, December 7, 2020, 06:53:12 AM PST, elon musk <
> adithyagowli1...@gmail.com> wrote:
>
>
> I am also interested I am also from hyd
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> *From: *tech george 
> *Sent: *Monday, December 7, 2020 7:24 PM
> *To: *django-users@googlegroups.com
> *Subject: *Re: Python Django Training
>
>
>
> I want in too
>
>
>
> On Mon, 7 Dec 2020, 16:43 Hector Berrones,  wrote:
>
> I am interested.
>
>
>
> On Mon, Dec 7, 2020, 2:09 AM narendra thapa 
> wrote:
>
> hello please add me also in training group?
>
>
>
>
>
> On Fri, Feb 21, 2020 at 7:27 PM Bharati Nilam 
> wrote:
>
> Hi,
>
> I also from Hyderabad and I'm also interested in the training. please tell
> me how to join?
>
>
>
> Regards,
>
> Bharati
>
> On Thu, 20 Feb, 2020, 6:19 PM Thiagu Palaniappan, <
> thiagarajan@gmail.com> wrote:
>
> I'm also interested. Please add me in the group.
>
>
>
>
>
> Thanks & Regards,
>
> Thiagu
>
>
>
> On Mon, Feb 17, 2020 at 12:41 AM Akshay Raul 
> wrote:
>
> I am interested also. Please let me know the details.
>
>
>
> On Sat 1 Feb, 2020, 2:42 PM Srikanth K,  wrote:
>
> Hi,
>
>
>
> I am from Hyderabad. I am Python Developer by Profession. I am eager take
> up any Python , Django Training (online Preferrable or Weekends). Members
> who require can contact me or share me  there idea.
>
>
>
> Regards,
>
> Srikanth.K
>
> --
> 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/CACPyz-gXb7wo9E0Uhs_pnxF9X52uA10__Fq1xt4trjXUaN3ehQ%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/CAEd%2Bv%3D0gE2dEMXKJ0Nm8FcH2ZxUPAdQspkQKB%2Bg5pZbSc_uZnQ%40mail.gmail.com
> 
> .
>
>
>
>
> --
>
> Thanks & Regards,
>
> *Thiagu Palaniappan*
>
> M +91 (0) 9994318799
>
> *DXC Technology*
> 8th Floor, Tower 1 B DLF IT Park, 1/124 - Shivaji Garden, Nandambakkam
> post, Ramapuram, Chennai - 600 089.
>
> dxc.technology  / Twitter
>  / Facebook
>  / LinkedIn
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAK%3DQXNMzH-iL6BQ3_vfrvTpeY%2BSe5%3DbZm9h5wPW_Dw%2BM2BsvQg%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/CAPGVBeOgomb94NXAm347QqGcJ%3D3MzxULU7eQnY-M56EbC2D9vg%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/CAEtntjXVaVAyDCJJzS748zfNVm242U%2B6vsFkynevf5ghnPgDhw%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+u

Re: Python-django project

2020-08-07 Thread hajar Benjat
Interested

On Tue, Jul 21, 2020, 4:10 AM learn code  wrote:

> Hi everyone,
>
> I am learning python and django, like to work on the projects to improve
> more.If any one interested to join with me to work on the projects,plz send
> me a 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%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/CAMcj6WfU0_0g4qdV8LqqOVo7Lrad7HipL7QDG%3Dxc4ZTx7OHHWQ%40mail.gmail.com.


Re: How to Insert Foreign Key into my user model with Abstractbaseuser

2020-05-22 Thread hajar Benjat
can you check this , I hope it's helpful
https://stackoverflow.com/questions/28691771/django-foreignkey-to-abstractbaseuser

Le jeu. 21 mai 2020 à 13:11, 박지훈  a écrit :

> class User(AbstractBaseUser):
>password = models.CharField(max_length=128)
>username = models.CharField(unique=True, max_length=150)
>is_superuser = models.IntegerField()
>last_name = models.CharField(max_length=150)
>phone = models.CharField(max_length=20)
>email = models.CharField(max_length=254)
>date_of_birth = models.DateTimeField()
>date_joined = models.DateTimeField()
>last_login = models.DateTimeField(blank=True, null=True)
>is_staff = models.IntegerField(blank=True, null=True)
>is_active = models.IntegerField(blank=True, null=True)
>first_name = models.CharField(max_length=30, blank=True, null=True)
>
>
>objects = UserManager()
>
>USERNAME_FIELD = 'username'
>REQUIRED_FIELDS = ['last_name', 'phone', 'email', 'date_of_birth']
>
>def has_perm(self, perm, obj=None):
>   return True
>
>def has_module_perms(self, app_label):
>   return True
>
>class Meta:
>   db_table = 'auth_user'
>
>
> *This is my user model in app.models.py <http://app.models.py> *
>
>
> *I want to add foreign key into Class User. but i can`t ...*
>
>
> *please help me*
>
> --
> 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/8389b104-c5f0-4936-b8ea-0ec9a82a5460%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/8389b104-c5f0-4936-b8ea-0ec9a82a5460%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 

*HAJAR BENJAT *

2nd year Specialized Master in Information Systems Engineering

At CADI AYYAD UNIVERSITY *– *FSSM Marrakech

*P:* +212698608188

*E:* hajar.ben...@edu.uca.ma

*LinkedIn: *https://www.linkedin.com/in/hajar-benjat-a92132106

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


Re: Tried to update field X with a model instance, < X >. Use a value compatible with CharField.

2020-05-12 Thread hajar Benjat
I think I am already doing this!

Can you check my mail_item class please

On Tue, May 12, 2020, 11:17 AM Motaz Hejaze  wrote:

> Access the country model through the foreign key in maiĺ_item , so you can
> get the country name and store it in mail_item_count
>
> On Tue, 12 May 2020, 12:37 pm hajar,  wrote:
>
>> can you explain to me more please
>>
>> Le mardi 12 mai 2020 10:01:24 UTC+1, Motaz Hejaze a écrit :
>>>
>>> In signal access the model of country through the foreignkey
>>> Pays.origin.country_name
>>>
>>> On Tue, 12 May 2020, 10:21 am Uri Kogan,  wrote:
>>>
 I would suggest changing your *mail_item_count* model like this:

 class mail_item_count(models.Model):
 country = models.ForeignKey(Pays, on_delete=models.CASCADE)
 count = models.IntegerField(default=1)



 On Tuesday, May 12, 2020 at 10:53:57 AM UTC+3, hajar wrote:
>
> aht do you advice me to do ?
>
> Le mardi 12 mai 2020 08:32:04 UTC+1, Uri Kogan a écrit :
>>
>> From the error message it can be seen that mail_item_count has
>> "country" item which is "CharField".
>> But... the signal receiver sets this to instance of  "Pays" object
>> which assumes it is "ForeignKey".
>>
>> On Tuesday, May 12, 2020 at 9:41:16 AM UTC+3, hajar wrote:
>>>
>>>
>>> class mail_item(models.Model):
>>>#mail_item_fid =
>>> models.OneToOneField(Mail_item_Event,on_delete=models.CASCADE)
>>>Event_cd = models.OneToOneField(Mail_item_Event,on_delete=models.
>>> CASCADE,related_name="mail_item_event_cd")
>>>office_Evt_cd = models.ForeignKey(Office,on_delete=models.CASCADE,
>>> related_name='office_Ev')
>>>Date_Evt = models.DateTimeField()
>>>Pays_origine = models.ForeignKey(Pays, on_delete=models.CASCADE ,
>>> related_name='paysOrigine')
>>>Pays_destination = models.ForeignKey(Pays,on_delete=models.
>>> CASCADE,related_name='paysDestination')
>>>Expediteur_id = models.ForeignKey(Client,on_delete=models.CASCADE
>>> ,related_name='expedi')
>>>Destinateur_id = models.ForeignKey(Client,on_delete=models.
>>> CASCADE,related_name='destin')
>>>
>>>
>>>
>>> Le mardi 12 mai 2020 06:43:43 UTC+1, hajar a écrit :

 hello django users ,

 I am trying to update a class using signals , you will understand
 once you see the code below

 class mail_item_count(models.Model):
country = models.CharField(max_length=100)
count = models.IntegerField(default=1)


 def __str__(self):
return '{}, {}'.format(self.country,self.count)

 def sum(self):
a = sum(instance.count for instance in self.objects.all())

return a


 @receiver(post_save, sender=mail_item)
 def update_count(sender, instance, created, **kwargs):
count_object,_ = 
 mail_item_count.objects.get_or_create(country=instance.Pays_origine)

 count_object.count = count_object.count + 1
count_object.save()

 but I am getting this error :

 *" Tried to update field dashboard.mail_item_count.country with a
 model instance, . Use a value compatible with CharField. 
 "*

 can you help me out solving 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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/01889167-1fdb-43f4-b1ed-24021eb00989%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/29dd9a0d-e7d9-4843-af78-da94ea0b65c3%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/CAHV4E-c5QG-CdDLrDNC4XnBJbeVNYM7T5bFePAZL733m2Jw2Qg%40mail.gmail.com
> 

unsupported operand type(s) for +: 'builtin_function_or_method' and 'int'

2020-05-10 Thread hajar Benjat
hello django users
as you can see below I am trying to do a signal that whenever I add
something on my class ' mail_items ' it will update my class '
mail_item_count ' that has two columns ' country ' and ' mail_items_count
'
But I still don't know if I did it right or not , now I am getting
this *error unsupported
operand type(s) for +: 'builtin_function_or_method' and 'int' , *
I think something wrong in the second line of the signal *" count_object.count
= count_object.count + 1 "*
I will appreciate your help

[image: image.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/CAMcj6WcgY8Ek7zDgr2VHbKEb0U0HmScLY9F69SbmLMJ18nUfSQ%40mail.gmail.com.


Charts view function suggestions

2020-05-08 Thread hajar Benjat
Hello everyone how are you doing ? 

I need your suggestions > I have to use a specific models , and I want to 
do a  pie_chart view function based on this models , " but I don't know 
what to do I saw some view functions examples but they always use one class 
but here my classes a bit hard and I am really stack and I need your help "

this is the models I have to use , 

from django.db import models

# Create your models here.
class Country(models.Model):
Country = models.CharField(max_length=100)

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

class Reason(models.Model):
Reason_cd = models.IntegerField(blank=True)
Reason_NM = models.CharField(max_length=100, blank=True)
def __str__(self):
return '{}'.format(self.Reason_NM)

class Mesure(models.Model):
Mesure_cd = models.IntegerField(blank=True)
Mesure_NM = models.CharField(max_length=100,blank=True)

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

class Client(models.Model):
last_name = models.CharField(max_length=250)
first_name = models.CharField(max_length=250)
Adresse = models.CharField(max_length=560)
city = models.CharField(max_length=100)
code_postal = models.IntegerField()
phone number = models.IntegerField(blank=True,null=True)
mail = models.CharField(max_length=100)

def __str__(self):
return '{}, {}'.format(self.last_name,self.first_name)

class Delivery_Agent(models.Model):
last_name = models.CharField(max_length=250)
first_name = models.CharField(max_length=250)

def __str__(self):
return '{}, {}  '.format(self.last_name,self.first_name)

class Office(models.Model):
office_cd = models.CharField(max_length=10)
office_NM = models.CharField(max_length=50)

def __str__(self):
return '{}, {}  '.format(self.office_cd,self.office_NM)

class Mail_item_Event(models.Model):
mail_item_fid = models.CharField(max_length=36)
Event_cd = models.IntegerField(auto_created=True,unique=True) #Event 
code
office_Evt_cd = models.ForeignKey(Office, on_delete=models.CASCADE, 
related_name='office_Evt')
Date_Evt = models.DateTimeField()
Date_Capture = models.DateTimeField()
Next_office = models.ForeignKey(Office, on_delete=models.CASCADE, 
related_name='Next_office')
def __str__(self):
return '{}'.format(self.Event_cd)

class Delivery_info(models.Model):
mail_item_fid = models.OneToOneField(Mail_item_Event 
,on_delete=models.CASCADE)
Event_cd = 
models.OneToOneField(Mail_item_Event,on_delete=models.CASCADE,related_name="delivery_infor_event_cd")
office_Evt_cd = models.ForeignKey(Office,on_delete=models.CASCADE, 
related_name='office_Evt2')
Date_Evt = models.DateTimeField()
Agent_delivery_cd = 
models.ForeignKey(Delivery_Agent,on_delete=models.CASCADE,related_name='agentDelivery')
Signatory_NM = models.OneToOneField(Delivery_Agent, 
on_delete=models.CASCADE, related_name='signatory')
Raison_Non_Delivery_cd = 
models.ForeignKey(Reason,on_delete=models.CASCADE, 
related_name='raisonNonDelivery', blank=True)
def __str__(self):
return '{}, {} '.format(self.Signatory_NM,self.mail_item_fid)

class mail_items(models.Model):
mail_item_fid = 
models.OneToOneField(Mail_item_Event,on_delete=models.CASCADE)
Event_cd = 
models.OneToOneField(Mail_item_Event,on_delete=models.CASCADE,related_name="mail_item_event_cd")
office_Evt_cd = models.ForeignKey(Office,on_delete=models.CASCADE, 
related_name='office_Ev')
Date_Evt = models.DateTimeField()
Country_origine = models.ForeignKey(Country, on_delete=models.CASCADE 
,related_name='paysOrigine')
Country_destination = 
models.ForeignKey(Country,on_delete=models.CASCADE,related_name='paysDestination')
Expediteur = 
models.ForeignKey(Client,on_delete=models.CASCADE,related_name='expedi')
Destinateur = 
models.ForeignKey(Client,on_delete=models.CASCADE,related_name='destin')



-- 
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/a88e8341-f6d9-4523-ad87-5a7e17ebb040%40googlegroups.com.


Re: Charts

2020-05-07 Thread hajar Benjat
Okey thank you so much guys

On Thu, May 7, 2020, 6:44 PM DAVID ALEJANDRO Pineda 
wrote:

> Hi friend
> There are some shortcuts like Highcharts,
> But i recommend to learn D3, is more difficult but it's worth.
>
> In general you hace to create a list on serializable dicts (on the view on
> python) and put the list like a json on the template (the tag to_json or
> something like that)
>
> Then, when the user load the page, the javascript read the data (you have
> to use the id assigned by the task) and convert to JSON. If the JSON is
> fina (builded exactly for the chart), only have to load the chart. In
> another case you have to transform every JSOn in what you need
>
> BR
>
> El jue., 7 may. 2020 a las 12:37, hajar Benjat ()
> escribió:
>
>> Hello guys how are you doing?
>>
>> I want to create charts for an application,  things like "delivery
>> apps"...
>>
>> Who can help me with examples 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/CAMcj6WfsSp6eFxjw5Azdoh8Ldoz13HM8boYqo--bPt-hHjiymg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMcj6WfsSp6eFxjw5Azdoh8Ldoz13HM8boYqo--bPt-hHjiymg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Ingeniero Civil Electricista U. de Chile
> F: +56 9 82142267 - dpin...@ug.uchile.cl
>
> --
> 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/CAM2MghibyQAna%2BsYE9U0H%3D5denAawz83X7wMVDQ2ig%2ByqK3DvQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAM2MghibyQAna%2BsYE9U0H%3D5denAawz83X7wMVDQ2ig%2ByqK3DvQ%40mail.gmail.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/CAMcj6We4x%2BaOMkqspFpE7t6SMdn4g7CEqcFnOMhm0K-gh8b6oA%40mail.gmail.com.


Charts

2020-05-07 Thread hajar Benjat
Hello guys how are you doing?

I want to create charts for an application,  things like "delivery apps"...

Who can help me with examples 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/CAMcj6WfsSp6eFxjw5Azdoh8Ldoz13HM8boYqo--bPt-hHjiymg%40mail.gmail.com.


Singup Users

2020-04-06 Thread hajar Benjat
hello django users how are you ?

I have two questions !!

how can I make users who sign up in my application to not log in without 
admin permission , 

now the user can sign up and log in directly and I don't want that happen 
in my application without admin permission , I hope you guys can advice me.

second question is ; the user when he click on logout he is redirected to 
login again as administrator , I know u have faced it before , I hope you 
can give me some ideas about this to make the user back to my login form 
not the admin one.

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/c6580d60-d64d-4a7f-84b0-327c387df8f1%40googlegroups.com.


Re: Help

2020-03-25 Thread hajar Benjat
Thank you so much it is very helpful

On Wed, Mar 25, 2020, 7:28 PM Motaz Hejaze  wrote:

> here some links that maybe useful ..
>
>
> https://stackoverflow.com/questions/43430091/connecting-django-with-mssql-server
>
>
>
> https://medium.com/@royce236/django-and-ms-sql-server-2012-connection-2018-120c54dfc037
>
>
> On Wed, Mar 25, 2020 at 8:24 PM hajar Benjat 
> wrote:
>
>> Yes (... If not I would like to use mysql because better
>>
>> But I have to use sql server
>>
>> On Wed, Mar 25, 2020, 7:22 PM Motaz Hejaze  wrote:
>>
>>> is it a requirement to use sql server ?
>>>
>>> On Wed, Mar 25, 2020 at 8:19 PM hajar Benjat 
>>> wrote:
>>>
>>>> Hello I hope you are doing well
>>>>
>>>> Did someone already used sql server with django I need help for my
>>>> final year project
>>>>
>>>> My problem is I can't makemigrations because it gives me error
>>>>
>>>> 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/CAMcj6Wcn%2BEW8XkVY0ZzmeWC048TDHt-bSE%3DbAGi11jbBgeuGaA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAMcj6Wcn%2BEW8XkVY0ZzmeWC048TDHt-bSE%3DbAGi11jbBgeuGaA%40mail.gmail.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/CAHV4E-dGgskGmU3_8%3DyHcZofVXiEUg3nQojB-gFETYSW8Yjsiw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAHV4E-dGgskGmU3_8%3DyHcZofVXiEUg3nQojB-gFETYSW8Yjsiw%40mail.gmail.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/CAMcj6WesgsW9FDOFWC_bvFgCb0wu2FeEwD8XrRp%2BuiK%2B%2BhXPpw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMcj6WesgsW9FDOFWC_bvFgCb0wu2FeEwD8XrRp%2BuiK%2B%2BhXPpw%40mail.gmail.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/CAHV4E-fpq%3DNQKwZo7Zje3myP2VA5vLk36HDmjZHhoWVVjBAb9Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHV4E-fpq%3DNQKwZo7Zje3myP2VA5vLk36HDmjZHhoWVVjBAb9Q%40mail.gmail.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/CAMcj6Wd_KaFA%3DO2PN2cJXtAsboocNRYOWSoLA_u5Dwe0QuYXrA%40mail.gmail.com.


Re: Help

2020-03-25 Thread hajar Benjat
Yes (... If not I would like to use mysql because better

But I have to use sql server

On Wed, Mar 25, 2020, 7:22 PM Motaz Hejaze  wrote:

> is it a requirement to use sql server ?
>
> On Wed, Mar 25, 2020 at 8:19 PM hajar Benjat 
> wrote:
>
>> Hello I hope you are doing well
>>
>> Did someone already used sql server with django I need help for my final
>> year project
>>
>> My problem is I can't makemigrations because it gives me error
>>
>> 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/CAMcj6Wcn%2BEW8XkVY0ZzmeWC048TDHt-bSE%3DbAGi11jbBgeuGaA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMcj6Wcn%2BEW8XkVY0ZzmeWC048TDHt-bSE%3DbAGi11jbBgeuGaA%40mail.gmail.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/CAHV4E-dGgskGmU3_8%3DyHcZofVXiEUg3nQojB-gFETYSW8Yjsiw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHV4E-dGgskGmU3_8%3DyHcZofVXiEUg3nQojB-gFETYSW8Yjsiw%40mail.gmail.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/CAMcj6WesgsW9FDOFWC_bvFgCb0wu2FeEwD8XrRp%2BuiK%2B%2BhXPpw%40mail.gmail.com.


Help

2020-03-25 Thread hajar Benjat
Hello I hope you are doing well

Did someone already used sql server with django I need help for my final
year project

My problem is I can't makemigrations because it gives me error

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/CAMcj6Wcn%2BEW8XkVY0ZzmeWC048TDHt-bSE%3DbAGi11jbBgeuGaA%40mail.gmail.com.


Sql server and django

2020-03-24 Thread hajar Benjat
Hello django users I hope you are doing well!
I want to connect my django application and makemigrations with sql server
2008.
But I get some errors you can see below.
I hope you can help me.

Cordially

-- 
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/CAMcj6WeHpbybL2U55OvmUDKyxMB0UjJur33zqKg6mFkUzFU-8w%40mail.gmail.com.


help

2020-03-12 Thread hajar Benjat
[image: image.png]
why redirect me to account/login and not users/login
because my app name is users
-- 

*HAJAR BENJAT *

2nd year Specialized Master in Information Systems Engineering

At CADI AYYAD UNIVERSITY *– *FSSM Marrakech

*P:* +212698608188

*E:* hajar.ben...@edu.uca.ma

*LinkedIn: *https://www.linkedin.com/in/hajar-benjat-a92132106

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Garanti
sans virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

-- 
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/CAMcj6Wdn6oD3XHLQmxO1yHQ-aye1WQkaPs%2BVQQc_fxtopxm%3DsA%40mail.gmail.com.


Re: mysqlclient for django

2020-03-02 Thread hajar Benjat
C:\Users\lenovo ideapad\Desktop\django-chartit\django-project\my_chartit>pip
install mysqlclient
Collecting mysqlclient
  Using cached mysqlclient-1.4.6.tar.gz (85 kB)
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient ... error
ERROR: Command errored out with exit status 1:
 command: 'c:\users\lenovo 
ideapad\appdata\local\programs\python\python37-32\python.exe' -u -c 'import 
sys, setuptools, tokenize; sys.argv[0] = 
'"'"'C:\\Users\\LENOVO~1\\AppData\\Local\\Temp\\pip-install-rhuhg3tu\\mysqlclient\\setup.py'"'"';
 
__file__='"'"'C:\\Users\\LENOVO~1\\AppData\\Local\\Temp\\pip-install-rhuhg3tu\\mysqlclient\\setup.py'"'"';f=getattr(tokenize,
 
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
install --record 
'C:\Users\LENOVO~1\AppData\Local\Temp\pip-record-qkea_yh8\install-record.txt' 
--single-version-externally-managed --compile --install-headers 
'c:\users\lenovo 
ideapad\appdata\local\programs\python\python37-32\Include\mysqlclient'
 cwd: 
C:\Users\LENOVO~1\AppData\Local\Temp\pip-install-rhuhg3tu\mysqlclient\
Complete output (30 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\_exceptions.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\compat.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.7\MySQLdb
creating build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> 
build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> 
build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> 
build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> 
build\lib.win32-3.7\MySQLdb\constants
running build_ext
building 'MySQLdb._mysql' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\MySQLdb
C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c 
/nologo /Ox /W3 /GL /DNDEBUG /MT -Dversion_info=(1,4,6,'final',0) 
-D__version__=1.4.6 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 
6.1\include\mariadb" "-Ic:\users\lenovo 
ideapad\appdata\local\programs\python\python37-32\include" 
"-Ic:\users\lenovo 
ideapad\appdata\local\programs\python\python37-32\include" "-IC:\Program 
Files (x86)\Microsoft Visual
Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" 
"-IC:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program 
Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files 
(x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files 
(x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files 
(x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files 
(x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files 
(x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /TcMySQLdb/_mysql.c 
/Fobuild\temp.win32-3.7\Release\MySQLdb/_mysql.obj /Zl 
/D_CRT_SECURE_NO_WARNINGS
_mysql.c
MySQLdb/_mysql.c(29): fatal error C1083: Impossible d'ouvrir le fichier 
includeÿ: 'mysql.h'ÿ: No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual 
Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x86\\cl.exe'
 
failed with exit status 2

ERROR: Command errored out with exit status 1: 'c:\users\lenovo 
ideapad\appdata\local\programs\python\python37-32\python.exe' -u -c 'import 
sys, setuptools, tokenize; sys.argv[0] = 
'"'"'C:\\Users\\LENOVO~1\\AppData\\Local\\Temp\\pip-install-rhuhg3tu\\mysqlclient\\setup.py'"'"';
 
__file__='"'"'C:\\Users\\LENOVO~1\\AppData\\Local\\Temp\\pip-install-rhuhg3tu\\mysqlclient\\setup.py'"'"';f=getattr(tokenize,
 
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
install --record 
'C:\Users\LENOVO~1\AppData\Local\Temp\pip-record-qkea_yh8\install-record.txt' 
--single-version-externally-managed --compile --install-headers 
'c:\users\lenovo 
ideapad\appdata\local\programs\python\python37-32\Include\mysqlclient' 
Check the logs for full command output.

Le lundi 2 mars 2020 14:03:07 UTC+

Re: mysqlclient for django

2020-03-02 Thread hajar Benjat
I already use this and it give me error message

On Mon, Mar 2, 2020, 2:03 PM shedd tutt  wrote:

> Use pip install mysqlclient
>
> --
> 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/ced13221-c921-476f-9784-68de6630b516%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/CAMcj6WeOxgag-zG%2BiDrvFj8%2BzV%3DUuPR_pc4Qbr6r-iz7p1pvwA%40mail.gmail.com.


mysqlclient for django

2020-03-02 Thread hajar Benjat
hello everyone ! hope you are fine !

I want to connect my database with django to do some reports on this data ( 
that's like business intelligence )

I have problems to install mysqlclient in my windows , can you advice me 
guys which command I should try ?

also I want to ask if someone have already experienced doing reports on 
database like that. 

thanks in advance for sharing the information!
 

-- 
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/9d4c6d50-1055-424f-8ec4-9bb76afd83f5%40googlegroups.com.