Re: help me

2023-09-23 Thread ASAMOAH EMMANUEL
Try fly.io On Sat, Sep 23, 2023 at 7:17 PM ALINDA Fortunate wrote: > You can as well try render > > +256774339676 > > "If you want to live a happy life, tie it to a goal, not to people or > things." > > A graduate of Bachelors Degree of Science in Computer Science of Gulu > University. > >

Re: Postgres connection error

2023-10-10 Thread ASAMOAH EMMANUEL
I often come across this issue, run this code but before you do, log in into the postgres shell with a database with all privileges, let's say postgre user and switch with your new database created and run: GRANT CREATE ON SCHEMA public TO your_user; On Tue, Oct 10, 2023 at 3:47 PM Joyce Mumbi

Re: Road Map for a newbie

2023-08-18 Thread ASAMOAH EMMANUEL
do lots of projects and refer to the documentation when you need to understand concepts in detail. Here is my private channel where I upload django premium resources with ton of projects. here is the invite link if you want to avoid the frustration of finding organized tutorials and hands on to

Re: Need Work

2022-07-16 Thread ASAMOAH EMMANUEL
Hi lightning emperor! I am glad to see you post this message. I am also a backend django developer and I belong to a startup company. I think that it would be a perfect idea to connect and work together since even the basics you know about django, restful services and frontend technologies would

Re: tech newbie

2022-09-28 Thread ASAMOAH EMMANUEL
Ok, I'll help you. Email me privately. On Tue, Sep 27, 2022 at 2:40 PM Edward Deus Misogoro wrote: > Ok, your welcome. > > On Mon, 26 Sept 2022, 23:43 Jay Jay, wrote: > >> Hello bro, I hope you’re doing well? I’m a Jerry, a newbie in software >> development, I have basic knowledge in HTML,

Re: Help

2022-09-28 Thread ASAMOAH EMMANUEL
Hi! I'm willing to help you. Message me privately for the resources. On Wed, Sep 28, 2022 at 1:02 AM Abdul Qoyyuum Haji Abdul Kadir < abdul.qoyy...@gmail.com> wrote: > That Udemy link is no longer valid. > > The Django official docs has a tutorial and is more relevant to the latest > version

Re: Combining django apps

2022-10-20 Thread ASAMOAH EMMANUEL
Register all your apps in the settings.py file and ensure the namespace is set to the app name in the urls.py in the project directory On Tue, Oct 18, 2022 at 10:01 AM Jun Tanaka wrote: > > mysite/ > > manage.py > > config/ > > __init__.py > > settings.py > >

Re: error extending base template

2022-10-10 Thread ASAMOAH EMMANUEL
Make sure the template directory is located in the app directory or if it is in a different directory, ensure the location is specified at the template section in the settings.py file On Mon, Oct 10, 2022 at 3:11 PM Namanya Daniel wrote: > hello, someone help me out. am new to django and i

Re: any solutions guys on the ERROR admin E108 on list_display[2] attributes not callable

2023-01-10 Thread ASAMOAH EMMANUEL
The problem here is that list_display[2] is referring to an attribute or method that does not exist. You will need to either add the attribute or method to the Product class, or remove the item from list_display. If you are looking to display the stock of a product, you could add a method to the

Re: If Statement django template

2023-01-12 Thread ASAMOAH EMMANUEL
You can't compare the `contract.supplier` attribute directly to a string like 'IBM', because it is a foreign key to a `Supplier` model instance. Instead, you need to access the related `Supplier` model's attributes to compare them. For example, if the `Supplier` model has a `name` attribute, you

Re: Upgrading Django from 3.2.16 to 4.1.x

2023-01-16 Thread ASAMOAH EMMANUEL
Yes, you should be able to upgrade from Django 3.2.16 to 4.1.x by simply installing the Django 4.1.x software and running the makemigrations command. It's always a good practice to make a backup of your database and application before upgrading, just in case any errors occur during the upgrade

Re: Multitenant app // Validation / constraints for related fields

2023-01-19 Thread ASAMOAH EMMANUEL
One other approach you could consider is using Django's built-in form and model validation. You could create a custom form class that inherits from the built-in Django `ModelForm` and override the `clean` method to perform your tenant check. For example: class BlogPostForm(forms.ModelForm):

Re: Runtime decision on language support

2023-04-24 Thread ASAMOAH EMMANUEL
> > > To achieve this, you can create a custom middleware that inherits from > `LocaleMiddleware`. In your custom middleware, you can override the > `process_request` method to check for the tenant's allowed languages and > set the request's language accordingly. > > 1. Create a new model field

Re: Advice for a beginer(I am new)

2023-07-13 Thread ASAMOAH EMMANUEL
Here are list of curated resources to get you from beginner to pro. It's a telegram private channel. https://t.me/+VXTu7RXQ47VlM2Q0 On Wed, Jul 5, 2023 at 2:36 AM Vairamuthu Puvanachandran < vai.pu...@gmail.com> wrote: > I followed the django tutorials by Telusko. > Very useful. > > Vai Puvan >

Re: i learnt django basics but i want to learn django for become a master in django where can i get resourse

2023-08-11 Thread ASAMOAH EMMANUEL
Here are premium resources for you: https://t.me/+VXTu7RXQ47VlM2Q0 On Thu, Aug 10, 2023 at 8:36 PM Chisom Iheanacho wrote: > hello chief.. I have Django 3 by example, can I follow the projects in it > too? > pls can I get your WhatsApp number too? > > On Thu, Aug 10, 2023, 6:05 PM Peter

Re: reg: Django custom middleware

2024-01-24 Thread ASAMOAH EMMANUEL
class RetryCal: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): try: session = Session() retries = Retry(total=5, backoff_factor=2, status_forcelist=[500, 502, 503, 504])

Re: Get experience letter and job opportunities

2024-02-06 Thread ASAMOAH EMMANUEL
What's your django project about? On Tue, Feb 6, 2024 at 8:03 AM machine learning wrote: > anyone here to help me in our django project and in return we will give > you access to software that will apply 100s of job for you and also hand on > work experience. > > -- > You received this message

Re: Exciting Opportunity: Join Our Django WhatsApp Bulk Messaging Project!

2024-02-18 Thread ASAMOAH EMMANUEL
add my number +34642063760 On Sun, Feb 18, 2024 at 4:54 PM muhammed yayi wrote: > I will love to join the djano group > -- > *From:* django-users@googlegroups.com on > behalf of SURAJ TIWARI > *Sent:* Sunday, February 18, 2024 1:04 PM > *To:* Django users >

Static assets receives 403 on digital ocean.

2024-01-03 Thread ASAMOAH EMMANUEL
Hi, please help. I have been trying to deploy my App to digital ocean but after deploying, my static assets do not show. I have set file and directory permissions but still in vain. this is what outputs when inspecting the browser console. help would be highly appreciated: Error logo.png:1 Request

Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread ASAMOAH EMMANUEL
ne 843, in exec_module > File "", line 219, in > _call_with_frames_removed > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoproj/urls.py", > line 24, in > path('djangoapp/', include('djangoapp.urls')), > File > "/home/project/xr

Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread ASAMOAH EMMANUEL
check your urls.py file to make sure you haven't imported circularly. or better still, paste your urls.py here On Wed, Apr 17, 2024 at 4:47 PM Ana Jiménez wrote: > hi guys, so i'm doing a project and there's a part that says i need to do > the migrations but when i do that i get this error >

Re: Why would a deployed site shows up with distorted layout

2024-02-29 Thread ASAMOAH EMMANUEL
Replace your username with this and run this code: sudo usermod -aG username www-data sudo chown -R :www-data /home/username/projects/personal On Thu, Feb 29, 2024 at 2:15 PM Amitesh Tripathi wrote: > Your website is in debug mode?? > > On Thu, 29 Feb 2024, 11:54 Ram, wrote: > >> Hi, >> >> We

Re: Why would a deployed site shows up with distorted layout

2024-02-29 Thread ASAMOAH EMMANUEL
I faced this issue before and I know how frustrating it can be. after sifting through several results, this worked. sudo usermod -aG username www-data sudo chown -R :www-data /home/username/projects/personal On Thu, Feb 29, 2024 at 6:37 PM ASAMOAH EMMANUEL < emmanuelasamoah...@gmail.com>