Re: How to create chatroom?

2020-05-27 Thread Motaz Hejaze
Read about django channels On Wed, 27 May 2020, 1:30 pm meera gangani, wrote: > I want to create chatroom in django like slack, where user can post > messages to the room and at the same time other user can see those message > immediately > > What Can I Do? > And What are the Libraries I

Re: Can't Fix the No Reverse Error in Ajax

2020-05-20 Thread Motaz Hejaze
Change your ajax method from "post" to "get" , you are not submitting any data to use post . Also change the method in your form too , and share the error message please. On Wed, 20 May 2020, 6:18 am Ahmed Khairy, wrote: > Do you mean that this line should be changed? > >

Re: how to write Ajax for a Like button in Django

2020-05-17 Thread Motaz Hejaze
The button is submitted but without page refresh On Mon, 18 May 2020, 3:53 am Ahmed Khairy, wrote: > Hi Motaz, > > When I added your code it disabled the function of the button nothing > happened > > On Sunday, May 17, 2020 at 9:30:38 PM UTC-4, Motaz Hejaze wrote: >> >

Re: how to write Ajax for a Like button in Django

2020-05-17 Thread Motaz Hejaze
In your like button form in your templates , try this : i don't think you need ajax for this , but if you still need it let us know On Mon, 18 May 2020, 2:26 am Gabriel Araya Garcia, < gabrielaraya2...@gmail.com> wrote: > Hi Ahmed, I was looking for that during several months and I have

Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-15 Thread Motaz Hejaze
maybe there is an option in container technologies , docker maybe or other containers types , but i didn't try anything like this On Fri, May 15, 2020 at 6:14 PM Sunday Iyanu Ajayi wrote: > The solution will be hosted on my client's server therefore they have > access to it. That is why I need

Re: Exception Value: Related Field got invalid lookup: value

2020-05-14 Thread Motaz Hejaze
Where does this exception happen ? In which file , which line ? On Fri, 15 May 2020, 12:51 am Ahmed Khairy, wrote: > Hi all > > I am adding a like/unlike button for Posts in a Listview, I am getting an > error: > > Exception Value: Related Field got invalid lookup: value > > here is the Model:

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

2020-05-12 Thread Motaz Hejaze
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 : >> >

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

2020-05-12 Thread Motaz Hejaze
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,

Re: How to create a selection based (multiple apps) experiment task in Django?

2020-05-10 Thread Motaz Hejaze
For me , your description is not so clear , are you talking about creating modules ( like odoo ) for example? Or you talking about activating or deactivating already made apps ? Or working with instances from inside the same app ? On Sat, 9 May 2020, 9:08 pm Alexander Rogowski, wrote: > Hello

Re: Multiple submit for same form refresh the page

2020-05-09 Thread Motaz Hejaze
try this : On Sun, May 10, 2020 at 1:01 AM Jim Illback wrote: > Nirantar, I think you could do this in your class (or even in your > function if you use that instead): > - Override (or use) the get() method > - Add a conditional such as this in that get() method: > if

Re: Messages not appearing after creating an app for it in Django

2020-05-09 Thread Motaz Hejaze
In templates , you need to loop through marketing_message because its not a single object its a query result On Sat, 9 May 2020, 4:44 pm Ahmed Khairy, wrote: > I created an app called marketing app which customizes messages to be > written on top of website page. My problem is that these

Re: How to push data fetched from excel to DB using Django?

2020-05-08 Thread Motaz Hejaze
first , check your excel file , see what are the columns types .. then , make a model in django models.py and choose model fields to be the same type as each column in the excel file .. in your views.py make a function that will read the excel file from the file location on your machine .. in this

Re: Charts view function suggestions

2020-05-08 Thread Motaz Hejaze
this way you'll query all the 'mail_items' table for each country , which is a time and resource consuming thing to do .. i think you need to make a separate model that has 2 columns 'country' , 'mail_items_count' , then you can make a signal when new item saved to 'mail_items' the signal will

Re: django celery and mqtt

2020-05-08 Thread Motaz Hejaze
please can you put your question in a more clearer way ? On Sat, May 9, 2020 at 3:33 AM Riska Kurniyanto Abdullah < alternative@gmail.com> wrote: > Dear all django users, > > 1. I want to attach my mqtt client script in django apps, where should I > put the script to launch them so the

Re: Help Desk Ticketing system

2020-05-08 Thread Motaz Hejaze
What do you need help with? On Sat, 9 May 2020, 2:11 am Duah Sylvester, wrote: > Hello Fellow Django developers, > I am starting a new project on my own, below is the information, I would > like you guys to help me tackle this, and get it done. > Create Helpdesk ticketing system in Django > The

Re: I am building an open source School Management System

2020-05-08 Thread Motaz Hejaze
I will contribute too insha Allah On Fri, 8 May 2020, 5:54 pm Hedrick Godson's, wrote: > Successful cloned it. Looking forward to build this with you guys > > On Fri, 8 May 2020, 18:28 Duah Sylvester > wrote: > >> Thank you very much! I will get it done >> >> On Fri, May 8, 2020, 15:04 Sherif

Re: hai everyone, i am getting error in sending email portion, after submitting i got nothing in my mail. if anyone please help me

2020-05-07 Thread Motaz Hejaze
You dont have any error messages ??? Try to send the mail to your console first to test functionality On Thu, 7 May 2020, 8:49 pm Kasper Laudrup, wrote: > Hi Yammuna, > > It is very likely that the error is the reason why you're not getting > any mail. > > Hard to tell without knowing what

Re: Charts

2020-05-07 Thread Motaz Hejaze
What do you need exactly? I think this is a javascript issue, checkout chart.js On Thu, 7 May 2020, 6:36 pm hajar Benjat, wrote: > 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 > > > > -- >

Re: Create a function which fill automatically a field in my models

2020-05-06 Thread Motaz Hejaze
Yes you can make a normal charfield and assign its default attribute to a function you declare On Wed, 6 May 2020, 6:53 pm Anselme SERI, wrote: > Hi, > > I use Django 3.0 and I would like to create a function which fill > automatically a field in my models. > Can I do it directly in models.py ?

Re: How to create variables for an e-commerce website

2020-05-06 Thread Motaz Hejaze
One solution is to make a 3 columns table , the first column is 'property_name' , second column 'property_value' , third column is a foriegn key to the item that this property belongs to 'item_id' On Wed, 6 May 2020, 8:06 pm Ahmed Khairy, wrote: > Hi am looking for resources to create variables

Re:

2020-05-04 Thread Motaz Hejaze
What do you need exactly ?? What is the error ?? Do you want to check for user type in templates or views ??? If this is your question .. 1 - use a custom user model 2 - put user types dictionary in custom user model 3 - in your templates and views check the current user type by using

Re: Possible server attacks

2020-05-03 Thread Motaz Hejaze
gon.aspx, >> /cgi-bin/config.exp, >> /HNAP1/, >> /hudson/script, >> /script, >> /sqlitemanager/main.php, >> /SQLiteManager/main.php, >> /SQLite/main.php, >> /main.php, >> /test/sqlite/SQLiteManager-1.2.0/SQLiteManager-1.2.0/main.php, >

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-03 Thread Motaz Hejaze
please share your models.py file On Mon, May 4, 2020 at 12:13 AM Adedotun Richard wrote: > Can you paste your model.py class for products? > There is probability that you are getting the write-up wrong. > > > On Sat, May 2, 2020, 3:43 PM Iain Stewart > wrote: > >> Hi Folks, >> >> I am a

Re: Deploying Django Project on heroku

2020-05-03 Thread Motaz Hejaze
Let us have a zoom meeting to fix it On Sun, 3 May 2020, 11:45 pm Sunday Iyanu Ajayi, wrote: > I have but it keeps telling that it is misconfigured > *AJAYI Sunday * > (+234) 806 771 5394 > *sunnexaj...@gmail.com * > > > > On Sat, Apr 25, 2020 at 3:17 PM sagar ninave > wrote: > >> Do you

Re: Possible server attacks

2020-05-03 Thread Motaz Hejaze
m Miracle, wrote: > >> I don't know honestly. >> >> I got those error messages because I included my email and username in >> settings.py like this >> >> ADMINS = ['username', 'collinsale...@gmail.com'] >> >> On Sun, 3 May 2020, 10:24

Re: Possible server attacks

2020-05-03 Thread Motaz Hejaze
What is the script main.php ??? On Sun, 3 May 2020, 10:43 pm Miracle, wrote: > Hello django developers, > > I might be experiencing a possible attack on my web server, but I am not > sure yet. > Below is the email I got from my django. > I've gotten over 50 similar emails over the past 3 days.

Re: Re:

2020-05-03 Thread Motaz Hejaze
first remove all whitespaces in urls.py ' login' should be 'login' and then rename your login view to something else , maybe custom_login , or put your app urls before admin panel urls On Sun, May 3, 2020 at 6:42 PM fahad rasool wrote: > Apps url.py > > On Sun, 3 May 2020, 8:27 pm 'Amitesh

Re: not a valid UUID.

2020-05-03 Thread Motaz Hejaze
ie wrote: >> > Still facing the same issue >> > >> > On Sunday, 3 May 2020 03:27:46 UTC+1, Motaz Hejaze wrote: >> > default=cast_trans >> > cast_trans = int(pass_trans) >> > >> > UUID is string not int >> > >> > >> > On Sun

Re: not a valid UUID.

2020-05-02 Thread Motaz Hejaze
default=cast_trans cast_trans = int(pass_trans) UUID is string not int On Sun, May 3, 2020 at 4:05 AM Benedict Uwazie wrote: > > > On Sunday, 3 May 2020 01:38:16 UTC+1, Benedict Uwazie wrote: >> >> I added a field called transaction_id in my models.py I want that field >> to be used to track

Re: sphinx inside

2020-05-01 Thread Motaz Hejaze
UTC-7, bengoshi wrote: >> >> I tried a >> >> path('docs/', TemplateView.as_view(template_name="docs/html/index.html")) >> >> then I can see the index.html but without css and no link works.. >> >> Greetings >> >> bengoshi >> On 5/1/20

Re: sphinx inside

2020-05-01 Thread Motaz Hejaze
Make a view that returns a template only , and give it a url On Fri, 1 May 2020, 10:09 am Kai Kobschätzki, wrote: > Hi Amit, > > thanks for your response. But in this way, I can't use the sphinx > templates, the links are not correct and after every new make html (or > using sphinx-autobuild) I

Re: App Dev wanted

2020-04-29 Thread Motaz Hejaze
Please let me know more details , thanks On Wed, 29 Apr 2020, 4:30 pm wanbao jin, wrote: > Due to the corona virus, I've been reduced my hours. So I have much time > to work on it. > > Kindly email me if you need a volunteer. > > Thanks > > On Wed, Apr 29, 2020 at 10:25 PM mohamed khaled < >

Re: Deploying Django Project on heroku

2020-04-25 Thread Motaz Hejaze
why the hell would anyone try to deploy for 2 weeks please follow this tutorial . i personally used it and worked for me twise .. also read the comments section .. https://www.codementor.io/@jamesezechukwu/how-to-deploy-django-app-on-heroku-dtsee04d4 On Sat, Apr 25, 2020 at 4:17 PM sagar

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Motaz Hejaze
ango.contrib.sessions', > 'django.contrib.messages', > 'django.contrib.staticfiles', > 'django.contrib.sites', > 'allauth', > 'allauth.account', > 'users.apps.UsersConfig', > 'core', > 'crispy_forms', > 'django_filters', > 'score' > ] > > >

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Motaz Hejaze
did you add your new app to installed apps in settings.py On Sat, Apr 25, 2020 at 6:29 AM Motaz Hejaze wrote: > you don't need the include part because you already copied the class to > the new app > > On Sat, Apr 25, 2020 at 6:16 AM Ahmed Khairy > wrote: > >> I t

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Motaz Hejaze
you don't need the include part because you already copied the class to the new app On Sat, Apr 25, 2020 at 6:16 AM Ahmed Khairy wrote: > I tried to include the urls > > originally it was > > path('score/new/', PostCreateView.as_view(), name='post-create'), > > but both didn't work > > On

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Motaz Hejaze
path('score/new/', include(('post-create.urls', 'post-create' ), PostCreateView.as_view(), name='post-create'), explain this line ? On Sat, Apr 25, 2020 at 5:30 AM Ahmed Khairy wrote: > I have created a new app in a project and moved one of the classes from > one app to the new app > > I

Re: How can I use Django

2020-04-22 Thread Motaz Hejaze
Please checkout the official documentation On Wed, 22 Apr 2020, 3:21 pm saifadnan abdallah, < saifadnanabdal...@gmail.com> wrote: > In which Computer app can I use Django > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Motaz Hejaze
nice to know, good luck On Wed, Apr 22, 2020 at 5:35 AM Ahmed Khairy wrote: > Thank you so much it is realyy helpfull. Fixed it > > On Tuesday, April 21, 2020 at 11:23:10 PM UTC-4, Motaz Hejaze wrote: >> >> check this out >> >> https://wsvincent.com/django-a

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Motaz Hejaze
check this out https://wsvincent.com/django-allauth-tutorial-custom-user-model/ On Wed, Apr 22, 2020 at 5:18 AM Ahmed Khairy wrote: > What do you mean ? > > On Tuesday, April 21, 2020 at 11:13:16 PM UTC-4, Motaz Hejaze wrote: >> >> did you define managers ? >> >

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Motaz Hejaze
did you define managers ? On Wed, Apr 22, 2020 at 5:06 AM Ahmed Khairy wrote: > Model Form > > UserCreationForm > > On Tuesday, April 21, 2020 at 11:02:13 PM UTC-4, Motaz Hejaze wrote: >> >> what kind of forms is this ? regular form or model form ? >> >> &

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Motaz Hejaze
what kind of forms is this ? regular form or model form ? On Wed, Apr 22, 2020 at 4:57 AM Ahmed Khairy wrote: > Hi all, > > Got this unexpected error all of a sudden, how to fix it. > > save() got an unexpected keyword argument 'force_insert' > > > > def register(request): > if

Re: Getting approval from Admin first before posting a blog in Django

2020-04-21 Thread Motaz Hejaze
in post model add a boolean field ( approved : default = false ) .. and in your views filter only approved posts before showing them ... this way admin can login to admin panel , check the latest posts and approve them ( make approve = True ) then and only then they will be viewed in your

Re: No Reverse Match Error, When creating a new user (new user application) it should direct back to home (to the core application)

2020-04-19 Thread Motaz Hejaze
اعمل اسم الفانكشن الحقيقي مكان اسم ال url او استخدم redirect reverse On Sun, 19 Apr 2020, 6:35 am Ahmed Khairy, wrote: > For this project, I have made 2 applications: Core and Users > > Creating a new user is the 2nd application. > I am trying to direct the new user after registration to 'home'

Re: Issues with creating an app

2020-04-17 Thread Motaz Hejaze
Please try to follow the official tutorial of django ... 'Images.views.home' is not a string .. Try yo put without ' ' On Sat, 18 Apr 2020, 1:44 am Leonardo Salvador Diego Solis, < leonardo.diego110...@gmail.com> wrote: > Hello, this is the first time I use Django (I'm learning with free

Re: user visit count

2020-04-16 Thread Motaz Hejaze
Great On Thu, 16 Apr 2020, 6:53 am shreehari Vaasistha L, wrote: > Done > > On Wednesday, April 15, 2020 at 6:55:37 PM UTC+5:30, Motaz Hejaze wrote: >> >> no standard for this , but thinking out loud with you .. >> >> you can make a many to many model ( ta

Re: user visit count

2020-04-15 Thread Motaz Hejaze
no standard for this , but thinking out loud with you .. you can make a many to many model ( table ) of 3 columns , first column will be user id , second column will be object id , third column will be number of visits ( integer initial value 0 ) , every time the object view is called you'll

Re: django doughts

2020-04-12 Thread Motaz Hejaze
You need the Url in urls.py You missed some parts of the tutorial Try to complete the tutorial following every step On Sun, 12 Apr 2020, 2:39 pm Anonymous Patel, wrote: > Ask your query in Errormania they helped me they have django Developers > they provide within hour solutions to a problem >

Re: help with my signup API

2020-04-08 Thread Motaz Hejaze
Please check that the request body sent from Angular is correct .. For better debugging ... In registration view , try to print() the serializer object and the serializer.data dictionary .. On Wed, 8 Apr 2020, 3:36 pm ola neat, wrote: > yes i did, i tested it with post man and i'm getting

Re: Looking for Django developers to work on a new and an existing project with our team

2020-04-06 Thread Motaz Hejaze
Where is the post owner ??? Why you make a request and did not answer the people who show interest ?? Why you dont say the status of this post .. On Mon, 6 Apr 2020, 11:31 pm Julio Henrique Oliveira, wrote: > Hi, > > I'd like to know more about this job. I am available. > > Best Regards >

Re: seeking experts guidance

2020-04-05 Thread Motaz Hejaze
i think you need a team On Sun, Apr 5, 2020 at 2:05 PM Nouman Mehmood wrote: > hello there, > > Hope everyone doing great. I'm final year student of computer science and > from Pakistan. I need suggestion about learning django and angular for the > final year project. What should I start with

Re: problem with user autentication

2020-04-03 Thread Motaz Hejaze
authenticate take only 2 parameters : 1 - username_field ( default : username , if you changed it to email you need to pass email ) 2 - password On Sat, Apr 4, 2020 at 1:19 AM ahmed elabbasy wrote: > u must include the save method > > -- > You received this message because you are subscribed

Re: Mobile friendly admin

2020-04-03 Thread Motaz Hejaze
Thank you for your reply On Fri, 3 Apr 2020, 1:31 pm guettli, wrote: > Oh, sorry, I saw this on a very old django application. Thank you Graham > for this hint. > > Am Freitag, 3. April 2020 02:18:19 UTC+2 schrieb Tim Graham: >> >> What version of Django are you using? >> >>

Re: Mobile friendly admin

2020-04-01 Thread Motaz Hejaze
Why dont we implement bootstrap for better responsive view ? On Wed, 1 Apr 2020, 10:19 am Mike Dewhirst, wrote: > On 1/04/2020 7:02 pm, guettli wrote: > > I know there a several third party packages which try to improve the > > great django admin: > > > > See:

Re: Creating test databases in parallel

2020-04-01 Thread Motaz Hejaze
Long article somehow , but very informative ... https://realpython.com/python-concurrency/ On Wed, 1 Apr 2020, 11:25 am cool-RR, wrote: > Hi guys, > > I'm trying to optimize our Django testing workflow. > > We have 7 different databases, and Django spends a lot of time on these > lines: > > >

Re: CSS doesnt work deployed on Pythonanywhere

2020-03-31 Thread Motaz Hejaze
I remember that in pythonanywhere you need to tell the platform where you app folder is and where your static folder is ... You can do that from your account control panel i think .. On Tue, 31 Mar 2020, 11:07 pm Alexis Soko, wrote: > Hi. thanks for the answer. > > Yes I have an app/static/css

Re:

2020-03-31 Thread Motaz Hejaze
Search for one to one databass relationships .. Also checkout extending user model by making a one to one realationship with profile model On Tue, 31 Mar 2020, 11:25 am fahad rasool, wrote: > I am having a user model ( which include username,user email and password) > and have another model

Re: Forienkey to same table

2020-03-30 Thread Motaz Hejaze
What are the usages lf such a technique ?? On Mon, 30 Mar 2020, 11:16 am Metehan Gülaç, wrote: > first of all, you can remove the *1. id (pK)* line. django already create > this field for you in background. I think you want to reference id field of > A table to himself; it is known as

Re: Looking for Django developers to work on a new and an existing project with our team

2020-03-29 Thread Motaz Hejaze
Hi Lax .. Ready yo join your team as soon as we reach an agreement .. Please checkout my LinkedIn account : https://www.linkedin.com/in/al-motaz-hejazy/ On Sun, Mar 29, 2020 at 8:00 PM Shakil Ahmmed wrote: > Hello Lax Nayak, > I am a intermediate developer . I want to work with some team , >

Re: Is there any possibility integrate django and tkinter?

2020-03-29 Thread Motaz Hejaze
What exactly you want to do , without expose the core idea On Sun, Mar 29, 2020 at 7:29 PM Walter santos wrote: > Hi > > Is there any possibility integrate django and tkinter? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: Online money transfer

2020-03-27 Thread Motaz Hejaze
Man this is a great suggestion .. But first i think i am going to recieve all donates in one account , then transfer it using this service .. On Sat, 28 Mar 2020, 5:03 am o1bigtenor, wrote: > On Fri, Mar 27, 2020 at 6:51 PM Motaz Hejaze wrote: > > > > Mike thats exactly wh

Re: Online money transfer

2020-03-27 Thread Motaz Hejaze
Good idea i will talk with them .. thanks mike On Sat, 28 Mar 2020, 3:22 am Mike Dewhirst, wrote: > On 28/03/2020 10:50 am, Motaz Hejaze wrote: > > Mike thats exactly what i want to do... > > > > I want to allow users to donate to many bank accounts .. > >

Re: Online money transfer

2020-03-27 Thread Motaz Hejaze
t their own exchange rate and paying it into my home bank > account. > > > ---- Original message > From: Motaz Hejaze > Date: 28/3/20 04:32 (GMT+10:00) > To: django-users@googlegroups.com > Subject: Re: Online money transfer > > Does stripe support transacti

Re: Online money transfer

2020-03-27 Thread Motaz Hejaze
Does stripe support transaction from a visa to a bank account? On Fri, 27 Mar 2020, 7:02 pm Andrew C., wrote: > Stripe is the best imo > > On Fri, Mar 27, 2020 at 12:49 PM Motaz Hejaze > wrote: > >> Any ideas guys >> >> On Fri, 27 Mar 2020, 3:07 pm Motaz

Re: Online money transfer

2020-03-27 Thread Motaz Hejaze
Any ideas guys On Fri, 27 Mar 2020, 3:07 pm Motaz Hejaze, wrote: > Hi friends , > What is the best and easiest way to implement money transfer from visa to > visa and from visa to bank account ?? > And how to link it with user accounts .. > > -- > You received thi

Online money transfer

2020-03-27 Thread Motaz Hejaze
Hi friends , What is the best and easiest way to implement money transfer from visa to visa and from visa to bank account ?? And how to link it with user accounts .. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: email": [ "Enter a valid email address." ]

2020-03-27 Thread Motaz Hejaze
I think django doesnt recognize your custom user model .. Did you your app to installed app and put AUTH_USER_MODEL = 'myapp.MyUser' in settings.py ? On Fri, 27 Mar 2020, 3:33 am devyen, wrote: > Hi > > Do know how to whitelist an email domain name? It seems odd that I would > have to go

Re: django search page not found error

2020-03-25 Thread Motaz Hejaze
irst_name is 'Omid', when i search 'o' or 'm', search works fine and > return 'Omid', but, when i search 'k', i get PageNotFound error > > On Wednesday, March 25, 2020 at 7:00:00 AM UTC+4:30, Motaz Hejaze wrote: >> >> Add null=True to manytomany field >> >> >>

Re: Help

2020-03-25 Thread Motaz Hejaze
ike 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 hop

Re: Help

2020-03-25 Thread Motaz Hejaze
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 > >

Re: no default manager for tables2 object

2020-03-25 Thread Motaz Hejaze
it will be much easier if you share your models and the error On Wed, Mar 25, 2020 at 8:06 PM Nader Elsisi wrote: > I have a tables2 table. And I got this error. I searched the net and > followed a lot > But couldn't fix it. > > The tables2 object is for a inherited model and linked through

Re: I have issue. I want to migrate database from sqlite3 to postgresql. With a table have 10M records. I need a solution for issue. Maybe help me?

2020-03-25 Thread Motaz Hejaze
cant be done directly from sqlite to postgres as there are differences between them ... safer to generate an intermediate file like a CSV or Excel file from the sqlite database .. create the new postgres database with proper column types .. make a python script to loop through each row in CSV or

Re: AWS API or EC2 for chat?

2020-03-24 Thread Motaz Hejaze
rl dev.to to setup your asgi.py file. That’s all I can freely > give out, though. Good luck! > > On Tue, Mar 24, 2020 at 10:40 PM Motaz Hejaze > wrote: > >> Any hint how you built the chat without channels ? Because i realy hate >> its complixity .. >> >> On Wed, 25

Re: AWS API or EC2 for chat?

2020-03-24 Thread Motaz Hejaze
Any hint how you built the chat without channels ? Because i realy hate its complixity .. On Wed, 25 Mar 2020, 4:30 am Yoo, wrote: > Hi all! I built a chat app without dj channels, but now I’m stuck with > pricing... and just AWS in general. Every time I look up Websockets, I’m > told to use

Re: django search page not found error

2020-03-24 Thread Motaz Hejaze
Add null=True to manytomany field On Wed, 25 Mar 2020, 2:02 am omid jahadi, wrote: > Hello everybody! I want to search in a ManyToManyField in the DetailView. > It works fine if a user with the same query exist, but if there isn't a > user, i get page not found error. > > models.py: > > class

Re: Testing my Django App

2020-03-23 Thread Motaz Hejaze
Delete the sqlite database and migrate again to remake it On Mon, 23 Mar 2020, 7:56 pm victor awakan, wrote: > Check your book.user_id. It shouldn’t be null. That’s what the last error > is saying. > > On Mon 23. Mar 2020 at 17.44, Ejike Enyinnaya > wrote: > >> Good day All, >> >> I am

Re: best way to display static python monitoring thread output

2020-03-23 Thread Motaz Hejaze
After that you can update the dom with the new result On Tue, 24 Mar 2020, 2:36 am Motaz Hejaze, wrote: > Dont know what you mean perfectly , but i think you can make a javascript > function that ( fetch() ) the api periodically maune using ( setinterval() > ) function ... > >

Re: best way to display static python monitoring thread output

2020-03-23 Thread Motaz Hejaze
Dont know what you mean perfectly , but i think you can make a javascript function that ( fetch() ) the api periodically maune using ( setinterval() ) function ... On Mon, 23 Mar 2020, 5:43 pm Phil Kauffman, wrote: > Hello, > > Wondering if I can bounce my problem off some folks for an idea of

Re: Study on annotation of design and implementation choices, and of technical debt

2020-03-23 Thread Motaz Hejaze
Out of topic , but i wish you all the best fighting corona virus .. On Mon, 23 Mar 2020, 9:23 pm Alexander Serebrenik, wrote: > Dear all, > > > As software engineering research teams at the University of Sannio (Italy) > and Eindhoven University of Technology (The Netherlands) we are interested

Re: Please help me while i am connecting mysql database to django lroject iam getting following error

2020-03-22 Thread Motaz Hejaze
There is a leading space in ' localhost'.. Remove it On Sun, 22 Mar 2020, 6:59 pm fahad rasool, wrote: > Please help me while i am connecting mysql database to django lroject iam > getting following error > > -- > You received this message because you are subscribed to the Google Groups >

Re: API Information for location tracking.

2020-03-21 Thread Motaz Hejaze
did you python manage.py makemigrations ? then python manage.py migrate On Sat, Mar 21, 2020 at 5:26 PM Vijasm gupbhan wrote: > hello sir, when fresh django project run then show error like shreenshot i > send > > On Sat, Mar 21, 2020 at 9:02 PM Luka Nik wrote: > >> Only native apps can send

Re: Asking for help

2020-03-19 Thread Motaz Hejaze
I did , thank you for caring .. On Fri, 20 Mar 2020, 3:34 am Saswat Ray, wrote: > Hi, > Please try to post on linkedin as well.It may help > > > *Thanks*, > *Saswat* > > > > > > On Fri, Mar 20, 2020 at 6:58 AM Motaz Hejaze wrote: > >> Hi guys ,

Asking for help

2020-03-19 Thread Motaz Hejaze
Hi guys , How are you all ? Hope you are all fine .. Guys i am now for 3 months without any job nor any income , and the news about corona make me fear that this period may increase , this will be very because i have a daughter to support .. I didnt want to write such a post , but anyone can

Re: i am trying to show the uploaded picture in html file but it's not showing there. #error d.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found) in inspecting elemen

2020-03-18 Thread Motaz Hejaze
Please upload models , urls , settings files On Thu, 19 Mar 2020, 3:33 am ANi, wrote: > I think maybe you should check your file upload settings, like the upload > path. > > - Ani > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: write a new app

2020-03-18 Thread Motaz Hejaze
Thats right , Make a web service for something important On Thu, 19 Mar 2020, 3:03 am ANi, wrote: > Well, you can write an integrated API service app. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and

Re: Blog project help

2020-03-18 Thread Motaz Hejaze
where is your forms.py file ??? you have to write the comments form .. using forms.Form write field by field or using forms.modelform class meta : model = Comment On Wed, Mar 18, 2020 at 8:10 PM sanka nanaji wrote: > I cannot see forms/serializers here. You have to make a >

Re: help

2020-03-12 Thread Motaz Hejaze
add your app to installed apps -> make migrations -> migrate but your user app routes before admin panel app routes On Thu, Mar 12, 2020 at 4:36 PM hajar Benjat wrote: > [image: image.png] > why redirect me to account/login and not users/login > because my app name is users > -- > > *HAJAR

Re: Mentor needed

2020-03-12 Thread Motaz Hejaze
What is GSOC ? On Thu, 12 Mar 2020, 8:32 am Naveen Arora, wrote: > Well, me too :) > > > On Wednesday, 11 March 2020 15:39:20 UTC+5:30, ola neat wrote: >> >> Hey guyz I'm applying for GSOC {django} & i pretty much need help >> (mentors), >> > -- > You received this message because you are

Re: HELP ME

2020-03-10 Thread Motaz Hejaze
What do you need ? On Tue, 10 Mar 2020, 4:34 pm LGBS fine soul coders, wrote: > hello am lugano mwakapuku from tanzania i'm a bigginer in django please i > need your help guy > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: greeting

2020-03-04 Thread Motaz Hejaze
l, my challenge is how do i save this selected services to django models > alongside the price for each service > > On Wed, Mar 4, 2020 at 11:46 AM Tosin Ayoola > wrote: > >> saving values of a checkbox to the database >> >> On Wed, Mar 4, 2020 at 1:23 AM Motaz

Re: greeting

2020-03-03 Thread Motaz Hejaze
Please let me know exactly the problem , i dont remember the case you talking about On Tue, 3 Mar 2020, 8:47 pm Tosin Ayoola, wrote: > halo. > good day to you, thank for you response to my question about checkbox with > django, i could really use your help on that, that why i messaged your >

Re: Integrating Django Rest Framework with Microsoft Office 365

2020-03-01 Thread Motaz Hejaze
This is a whole project you asking about On Sun, 1 Mar 2020, 2:56 pm Nosa Omorodion, wrote: > I am currently trying to consume the Microsoft Office365 API and Expose it > via DRF to my frontend. > > I want to be able to: > >1. > >Give Role/Permissions to authenticated Users based off of

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Motaz Hejaze
You should understand that extending a model will create a new table with columns existed in parent in addition to new columns you define , so yes you can extend .. On Fri, 28 Feb 2020, 3:03 pm Ol P, wrote: > What are you trying to achieve with this implementation? > > I want to achieve

Re: About Django performance

2020-02-28 Thread Motaz Hejaze
What is the type of data ?? What is the expected amount to be transfered by second ? Its not only django , its the server type and the database type .. On Fri, 28 Feb 2020, 1:36 pm Gil Obradors, wrote: > Hi ! > I 'm curious too! > > How much data? > > With CPU and RAM, may be the problem will

Re: How to create entire basic of website design without using django-admin panel

2020-02-28 Thread Motaz Hejaze
So all your problem is django admin ? Why ? On Fri, 28 Feb 2020, 9:02 am nrupesh08, wrote: > > > On Friday, February 28, 2020 at 12:19:55 PM UTC+5:30, nrupesh08 wrote: >> >> >> >> login page based on roles (user, admin). insert data, update data, delete >> data in (entire rows). only particular

Re: Api

2020-02-28 Thread Motaz Hejaze
Anything real time will be done by sockets , which i think is not the solution you need.. On Fri, 28 Feb 2020, 9:19 am Tosin Ayoola, wrote: > Good morning guyz, > I need help on this one, it on writing api that will Shows the product > count for each manufacturer as users add products real

Re: d

2020-02-24 Thread Motaz Hejaze
Ok i got it Mohammed , Kindly checkout PyInstaller Django is a web framework used to create websites and web services On Mon, Feb 24, 2020 at 3:56 PM Kasper Laudrup wrote: > Hi Muhammed, > > On 24/02/2020 13.22, Muhammad Abdullah Nabeel wrote: > > I

Re: d

2020-02-24 Thread Motaz Hejaze
You want to make a file sharing website ?? On Mon, 24 Feb 2020, 1:22 pm Muhammad Abdullah Nabeel, < muhammadabdullahnab...@gmail.com> wrote: > I have made few games and data storing and searching softwares using > tkinter turtle numpy pygame math random etc modules but I still can not > made a

Re: Asking about Django

2020-02-23 Thread Motaz Hejaze
your question is not clear to answer , please speak in your first language ( arabic ) or put more details in your question .. On Sun, Feb 23, 2020 at 3:51 PM nawal benmohamed < nawoulabenmoham...@gmail.com> wrote: > *Does Django contain a library with component for implementation* > > -- > You

Re: Study and project partner(s) needed

2020-02-14 Thread Motaz Hejaze
Hey scorpio .. Can you add me on skype Skype id : m3tz-hjze On Fri, 14 Feb 2020, 11:50 pm mohamed khaled, wrote: > I need to partner to work with me and I have another one help together to > build big apps. to each one of us improve our resume. and learn how to work > together using git and

  1   2   >