Re: page index.html

2022-08-26 Thread hajar Benjat
s.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

Re: page index.html

2022-08-25 Thread hajar Benjat
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 runnin

Re: page index.html

2022-08-18 Thread hajar Benjat
e 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.

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

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

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 su

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

2020-05-22 Thread hajar Benjat
sion 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> > . > -- *HA

TypeError: __init__() got an unexpected keyword argument 'Null'

2020-05-20 Thread hajar
hello django users , I hope u r doing well ! why can't I use Null in this case of foreign key , I hope you can see the picture below that's my class and the error [image: err.png] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

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

2020-05-12 Thread hajar Benjat
20, 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 >>> >>

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

2020-05-12 Thread hajar
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:5

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

2020-05-12 Thread hajar
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) >

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

2020-05-11 Thread hajar
7;) 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 u

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

2020-05-11 Thread hajar
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 '{}, {}'.for

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

2020-05-11 Thread hajar
I would like to know if you have any other suggestions -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this d

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

2020-05-11 Thread hajar
Hello django users I solved the issue, I had to use something like that : (it doesn't show anymore the error) @receiver(post_save, sender=mail_items) def update_count(sender, instance, created, **kwargs): count_object,created = mail_item_count.objects.get_or_create(country=instance.Pays_or

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 *

Re: Charts view function suggestions

2020-05-09 Thread hajar
the country name as the key in > the dictionary , take the counter ( integer ) divided by the output of the > sum function to calculate the ratio of each country , append in dictionary > .. > send the response with all countries and ratio dictionary .. > > On Sat, May 9, 2020 at

Re: Charts view function suggestions

2020-05-08 Thread hajar
for i in q : labels.append() data.append() return render(request, 'dash.html', { 'labels': labels, 'data': data, }) Le vendredi 8 mai 2020 23:29:25 UTC+1, _M_A_Y_A_N_K_ a écrit : > > Hi Hajar

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

Re: Charts

2020-05-07 Thread hajar Benjat
ctly 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

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 em

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 advic

Re: Help

2020-03-25 Thread hajar Benjat
ver-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 wrot

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

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

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

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

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 wi

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

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 alr