Re: JOB

2023-10-15 Thread Peter Benjamin Ani
Join and participate in hackathon On Sun, 15 Oct 2023 at 19:42, Dev Femi Badmus wrote: > Eyaaa > > -- > 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

Re: Help on Error while deploying a django app on render.

2023-08-25 Thread Peter Benjamin Ani
Where are you hosting? On Thu, 24 Aug 2023 at 22:37, ALINDA Fortunate wrote: > Hello family some help i have this error > > Aug 25 12:28:30 AM ImportError: Couldn't import Django. Are you sure it's > installed and available on your PYTHONPATH environment variable? Did you > forget to activate a

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

2023-08-10 Thread Peter Benjamin Ani
234811513 that’s my WhatsApp On Thu, 10 Aug 2023 at 19:35, 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 Benjamin Ani < > benj

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

2023-08-10 Thread Peter Benjamin Ani
Try getting the ebook (Django 4 by example) and build projects in it, from there u are good to go On Thu, 10 Aug 2023 at 18:01, Basith wrote: > Any sample projects? any free resources? > > On Thursday, 10 August 2023 at 22:25:30 UTC+5:30 John Ayodele wrote: > >> Build a good portfolio and push t

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

2023-08-10 Thread Peter Benjamin Ani
Build more projects On Thu, 10 Aug 2023 at 14:23, Peram Ashokkumar wrote: > i have been learning python fullstack since in the 3 months in our > institute that mentor tought only basic but i want to get job as > experience candidate because i have three years of gap please any respond > to t

Re: Problem with my website

2023-07-12 Thread Peter Benjamin Ani
Chat me up let’s look into it On Wed, 12 Jul 2023 at 21:20, Chetan Ganji wrote: > Have you set the default url for the website? > > Sharing your urls.py file will help someone guide you better. > > Regards, > Chetan Ganji > +91-900-483-4183 > ganji.che...@gmail.com > http://ryucoder.in > > > On

Re: Trainer Job

2023-06-30 Thread Peter Benjamin Ani
Check ur inbox On Fri, 30 Jun 2023 at 12:43, Srikanth K wrote: > Hi, Anybody here experienced in training Python, Machine learning, Django > etc. just reply back to this email. (srikopan...@gmail.com) with your CV > and contact details.This is a Full time job and we have an urgent > requirement.

Re: associate Developers for Google

2023-06-17 Thread Peter Benjamin Ani
I know it might be a scam normally, but am not dropping any confidential info On Sat, 17 Jun 2023 at 16:34, John Ayodele wrote: > Yes Muhammed! > I also thought of it. I think it's a scam. > > On Sat, Jun 17, 2023 at 4:30 PM Muhammad Juwaini Abdul Rahman < > juwa...@gmail.com> wrote: > >> Be care

Re: associate Developers for Google

2023-06-17 Thread Peter Benjamin Ani
Yes please, how can I hit you hit for the application please On Sat, 17 Jun 2023 at 15:11, Ashish Rawat wrote: > Yes i am looking > > On Sat, Jun 17, 2023, 7:39 PM Lucifer Black > wrote: > >> Is there anyone that wants a job at google developer at home looking for >> three people >> >> >> Get Ou

Re: Looking for a Learning Buddy

2023-06-16 Thread Peter Benjamin Ani
Have you tried working on a project? On Fri, 16 Jun 2023 at 23:00, John Ayodele wrote: > Hi! It's John. > > I am currently looking for a learning buddy💡, for Machine Learning. > I have little experience in Django🕸 and I code in Python🐍. > > The learning buddy would have one-on-one meetings with

Re: CSV file

2023-06-08 Thread Peter Benjamin Ani
Try using Python anywhere On Fri, 9 Jun 2023 at 07:15, Muhammad Juwaini Abdul Rahman < juwa...@gmail.com> wrote: > Probably you need to show the code snippet on where you generate the csv > file. > > On Fri, 9 Jun 2023 at 13:51, Percy Masekwameng < > percymasekwameng...@gmail.com> wrote: > >> It

Re: Setting recipient name in EmailMultiAlternatives

2023-03-27 Thread Peter Benjamin Ani
I don't fully understand the error, can you describe it more please On Mon, 27 Mar 2023, 13:54 Sylvain, wrote: > Hello, > > I’m using the following code to send mails to my users, with their name > appearing in the `To` header: > > msg = EmailMultiAlternatives(subject=subject, body=body, > to=f"

Re: If Statement django template

2023-01-12 Thread Peter Benjamin Ani
Have you figured out a solution to it? On Thu, 12 Jan 2023, 15:52 Namanya Daniel, wrote: > > Replace supplier with related_name > > On Thu, 12 Jan 2023 at 16:13, 'dtdave' via Django users < > django-users@googlegroups.com> wrote: > >> I have the following relationship in a model >> >> class Cont

Re: If Statement django template

2023-01-12 Thread Peter Benjamin Ani
why using a foreignkey then? what type of relationship is existing between the supplier and the On Thu, Jan 12, 2023 at 2:13 PM 'dtdave' via Django users < django-users@googlegroups.com> wrote: > I have the following relationship in a model > > class Contract(models.Model): > supplier = model

Re: In need of a Technical Mentor

2022-10-28 Thread Peter Benjamin Ani
nt > help then write Back. Then you can get more experience. Also yoz should > make a upworks account as developer. On beginning with low hourly rate to > get good Reviews. And after a time you have more experience and get higher > hourly rates... > > Regards > > Peter Benj

Re: In need of a Technical Mentor

2022-10-27 Thread Peter Benjamin Ani
> basic C and Python. > Internship will brush up your knowledge and bring you up to speed. > My 2 cent. ✌️ > > On Thu 27. Oct 2022 at 16:31, Peter Benjamin Ani > > wrote: > >> Hi everyone, >> >> My name is Peter and am a computer science student, I have been cod

Re: Resources to learn

2022-10-27 Thread Peter Benjamin Ani
Follow www.dj4e.com by Dr chucks On Thu, 27 Oct 2022, 02:56 Nitesh Mint, wrote: > I am new to Django and i have some basic knowledge of it. I completed a > book: Django for beginners. Now i need some help with resources to follow > and some great projects ideas to help me learn more. Please prov

In need of a Technical Mentor

2022-10-27 Thread Peter Benjamin Ani
Hi everyone, My name is Peter and am a computer science student, I have been coding for a while now, majorly in C and Python, and am desperately in need of a technical mentor to help me out on Django, I don't mind if he gives me projects and sets deadline for me, am ready for it, I need someone wh

Re: Credentials fail from custom Auth backend

2021-07-04 Thread ANi
What does the error message say? guitard...@gmail.com 在 2021年7月4日 星期日下午1:48:58 [UTC+8] 的信中寫道: > Hello, I am using a custom auth backend and everything displays properly, > except I cannot login with the credentials in my model. I have spent 5 > hours on this and cannot figure it out. Please hel

Re: reusable App XOR custom user model?

2020-11-04 Thread ANi
Hi Thomas, The first one focuses on "project" and the second one focuses on "apps". They don't contradict with each, a project may use many apps, they are different. If you want a reusable app then don't include a custom user model in it. Ani. guettli 在 2020年11

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 eleme

2020-03-18 Thread ANi
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 unsubscribe from this group and stop receiving emails from it, send an email to django-user

Re: write a new app

2020-03-18 Thread ANi
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 stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discus

Re: django.db.utils.OperationalError: no such table:

2019-09-10 Thread ANi
You have to look into your previous migrations, to find the problem find which migration you are stuck on from console log or, if it doesn't matter to you, kill all the migrations and start over. (it is the fastest way) Arnav Rastogi於 2019年9月7日星期六 UTC+8下午9時00分34秒寫道: > > 1. i remove the db.sqlit

Re: Meta question

2019-09-10 Thread ANi
:-) glad to help Mike Dewhirst於 2019年9月10日星期二 UTC+8下午4時27分06秒寫道: > > Given a model instance and the name of one of its fields as a string, > how can I get/put a value in that field? > > The methods might look like this ... > > def get_value(obj, fldname): > > ... > > return value

Re: Relation between different database?

2019-09-10 Thread ANi
Thanks, Jason. I was trying to connect a table to a view from another database. But it is not allowed to have a foreign key on a view unless I use a materialized view! Problem is solved. ANi於 2019年9月10日星期二 UTC+8上午11時54分28秒寫道: > > Hi, > > I have my asset table in local db w

Re: django-import-export problem with relation of two databases

2019-09-10 Thread ANi
mport tells me this: no such table: main.View_EmpAX or the relation is not allowed. so I am thinking it is the problem of allow_relation method. but I don't get the concept about how to write it.. [image: 擷取.PNG] ANi於 2019年9月10日星期二 UTC+8上午11時54分28秒寫道: > > Hi, > > I have m

Re: Meta question

2019-09-10 Thread ANi
getattr(instance, key) to get the value setattr(instance, key ,value) to put the value, and remember to do instance.save() otherwise it won't actually be changed. Mike Dewhirst於 2019年9月10日星期二 UTC+8下午4時27分06秒寫道: > > Given a model instance and the name of one of its fields as a string, > how can

Re: migrate error

2019-09-09 Thread ANi
Another piece of advice, please prettify your code or take a screenshot, not just paste it directly. It is not easy to read to you as well, right? what had you done in this migration? Was the original value in that column a datetime and you want to change it into another data format? Prad

Re: 404 error

2019-09-09 Thread ANi
The fastest way to know why is to read your error messages. arpit Dubey於 2019年9月7日星期六 UTC+8下午11時38分38秒寫道: > > I have followed all the steps for creating our first app polls but it is > showing the error of 404 > could you please help me to finding it out why it is happening there after > co

Re: Relation between different database?

2019-09-09 Thread ANi
the key point is about the relation in* different databases*, if it is possible to have relations, then I don't need to write additional code to access data from the remote one. ANi於 2019年9月10日星期二 UTC+8上午11時54分28秒寫道: > > Hi, > > I have my asset table in local db which need to

Re: Relation between different database?

2019-09-09 Thread ANi
my real situation as an example. *local database* AssetModel(id, employee, name, barcode, location, value) *remote database* EmployeeView(id, name, department) I am thinking to set employee in AssetModel as an ForeignKey which references to EmployeeView. but it seems to be not allowed -- You

Relation between different database?

2019-09-09 Thread ANi
achieve? many thanks, ANi -- 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 vi

Re: Enter valid date error

2019-08-07 Thread ANi
om django.forms.widgets import DateInput as djangoDateInput class DateInput(djangoDateInput): input_type = 'date' or consider what sachin said, simply set format_key = '%Y-%m-%d' ANi於 2019年8月6日星期二 UTC+8下午2時28分24秒寫道: > > I've change the default date fi

Enter valid date error

2019-08-05 Thread ANi
I've change the default date field widget slightly, but only like this and also define the DATE_INPUT_FORMATS class DateInput(DateTimeBaseInput): input_type = 'date' format_key = 'DATE_INPUT_FORMATS' DATE_INPUT_FORMATS = [ '%Y-%m-%d', ] but still get error on the date field, only success at

Multiple models files under a folder may cause error when makemessages

2019-05-29 Thread ANi
As I only have one app but with many models, so I split the models into separate files under a model folder. It works well until I run makemessages and it gives out error messages sort of like this: CommandError: errors happened while running msguniq E:\Projects\as\locale\django.pot:353:3: synt

Re: Settings file for multiple environments?

2019-04-17 Thread ANi
yes, it is "abcd.*settings*.hk". And I think it will show error if it's wrong (? Ayser shuhaib於 2019年4月18日星期四 UTC+8下午1時10分04秒寫道: > > Are you sure about the directory? > I mean is it “ abcd.setting.hk” or “abcd.settings.hk” ? > > On Thu, 18 Apr 2019 at 06:00, ANi >

Re: Need assistance! I want to create a list box that displays records that can be selected (single or multiple) from a PGSQL table.

2019-04-17 Thread ANi
Can you provide the code you've done so far? Darryl Dillman於 2019年4月17日星期三 UTC+8下午9時51分16秒寫道: > > I have tried various methods including MVC, but cannot seem to get it > right. I thought the MVC method would work, but it seems the database > connection part was missing from the example I followe

Settings file for multiple environments?

2019-04-17 Thread ANi
Hi, I divided my settings into different files, but I think it's not working on Heroku, here are my code: # This is abcd/setting/hk.py from .base import * import dj_database_url DATABASES = { 'default': dj_database_url.config() } ALLOWED_HOSTS.append('abcdmyapp.herokuapps.com') WSGI_APPLICA

Re: I Am A Begginer Web Developer - Need Help With Finding A Term

2019-04-01 Thread ANi
Just query the data maybe by filtering and set the results in different variables, then pass them and you can get different data in one template. for querying you can see the document https://docs.djangoproject.com/en/2.1/topics/db/queries/ hope it helps Rok Klancar於 2019年4月2日星期二 UTC+8上午9時22分

Re: Translation doesn't work?

2019-03-25 Thread ANi
Oooops, it's a typo. Thanks! Gourav Sardana於 2019年3月26日星期二 UTC+8下午2時04分11秒寫道: > > Use the correct spelling in your html > Its {%trans%} > Please use this. Hope so this will fine working ! > Have a good day! > > On Tue, 26 Mar 2019, 11:29 am ANi, > > wrote: >

Re: Translation doesn't work?

2019-03-25 Thread ANi
Does anyone have clue about it? I'll appreciate your help! ANi於 2019年3月22日星期五 UTC+8上午11時12分07秒寫道: > > Hello. > The only word that has been translated is "name", but it seems that it is > the default one in Django. > So basically my translation does not work

Re: Translation doesn't work?

2019-03-21 Thread ANi
That's right, nothing changed. Aldian Fazrihady於 2019年3月22日星期五 UTC+8上午11時49分29秒寫道: > > Even after you rerun these commands? > > python manage.py makemessages -l zh_Hant > > python manage.py compilemessages > > > On Fri, Mar 22, 2019 at 11:41 AM ANi > >

Re: Translation doesn't work?

2019-03-21 Thread ANi
Oh yes, thank you, Aldian. But it doesn't work, either. :-\ Aldian Fazrihady於 2019年3月22日星期五 UTC+8上午11時20分54秒寫道: > > Hi ANi, > > I think the settings should you lower case letter like this: > > LANGUAGE = [ > ('en-us', 'English'), > (&#x

Translation doesn't work?

2019-03-21 Thread ANi
Hello. The only word that has been translated is "name", but it seems that it is the default one in Django. So basically my translation does not work at all.. please help Here is what I've done so far... settings.py MIDDLEWARE = [ ... 'django.contrib.sessions.middleware.SessionMiddlew

Re: User profile

2019-01-17 Thread ANi
Do you mean you want to create your custom user model? Two ways to do it, 1. create a profile model and use foreign key to the user model that Django provided. 2. create a custom user model like this https://wsvincent.com/django-custom-user-model-tutorial/ senthu nithy於 2019年1月17日星期四 UTC+8下午8時4

Re: No module named django.core.wsgi, Apache+ CentOS

2019-01-16 Thread ANi
the mod_wsgi myself using the python I've installed, get it done in a few minutes.lol Now I am dealing with another mysterious problem. ˊ___>ˋ seems endless... ANi於 2019年1月16日星期三 UTC+8下午12時04分23秒寫道: > > Hey guys. > I am trying to deploy my Django project on CentOS 7 with Apach

Re: Installed Python 3.7; installed Django 2.1.5. Django folder open, now what?

2019-01-16 Thread ANi
What commands have you done so far? LinkSnakeGeralt於 2019年1月17日星期四 UTC+8上午6時37分03秒寫道: > > Hi everyone > > First timer, > > Basically what the post says; I have installed it, tried running it > through the Terminal of the MacBook Pro I have. But it did not recognise > any module called Django. >

No module named django.core.wsgi, Apache+ CentOS

2019-01-15 Thread ANi
Hey guys. I am trying to deploy my Django project on CentOS 7 with Apache. and I got an error of *ImportError: No module named django.core.wsgi* I think it is because the Apache did not use the python version inside the virtualenv However I dont know where the problem is. this is my httpd.conf

Re: Getting one single entry from model via ajax

2019-01-14 Thread ANi
You need to make it iterable, so there are two ways to do it. One is to let it become a list with single object while another one is to use filter so the result will be a QuerySet. In your case will be the first one. Stéphane Manguette於 2019年1月15日星期二 UTC+8上午9時26分14秒寫道: > > Hello Django community

Re: migrate failed due to Permission

2019-01-14 Thread ANi
Okay, > > *those queries that you're executing in module scope should go into > functions and methods that you only call when you actually need that data.* This is enough to me. lol I did query outside the functions, I didn't notice that it would be a problem. Thank you very

Re: how to connect mysqlclient on my pc

2019-01-14 Thread ANi
https://medium.com/@bencleary/django-mysql-for-windows-528272b3169b As easy as this goes. DIPU SARKER於 2019年1月13日星期日 UTC+8上午11時03分06秒寫道: > > hello i use windows10.How i use mysql in my django project and how to > install mysqlclient in my pc. > -- You received this message because you are sub

migrate failed due to Permission

2019-01-13 Thread ANi
Hello. I want to migrate all tables into new database but bumped into an error that it said "auth_permission" is not found. Then I searched for the possible causes, it turned out that it is because I accessed the auth model "Permission" in my code before the migrate creating table in database.

Re: Problems from writing test cases.

2018-12-13 Thread ANi
er approach. > > Hope this is what you wanted to know (; > > > W dniu wtorek, 11 grudnia 2018 05:00:07 UTC+1 użytkownik ANi napisał: >> >> Hello, >> I am now trying to write test cases for my project, but I find some >> problems. >> >> 1. >

Re: Problems from writing test cases.

2018-12-13 Thread ANi
er approach. > > Hope this is what you wanted to know (; > > > W dniu wtorek, 11 grudnia 2018 05:00:07 UTC+1 użytkownik ANi napisał: >> >> Hello, >> I am now trying to write test cases for my project, but I find some >> problems. >> >> 1.

Re: Problems from writing test cases.

2018-12-12 Thread ANi
> > This is my first time. lol > > I thought we can access the data by using ORM as we usually do rather than set it to a class variable. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Problems from writing test cases.

2018-12-10 Thread ANi
Oh. ok :) Then I tried to call again the item object by its pk, and it works. item = Item.objects.get(pk=self.item.pk) and sorry for the test_item_delete(). I passed the wrong parameter so the view got a None to retrieve the item object, that's why it returns 404. thank you so much. -- You

Problems from writing test cases.

2018-12-10 Thread ANi
Hello, I am now trying to write test cases for my project, but I find some problems. 1. class FirstTest(TestCase): @classmethod def setUpTestData(cls): User.objects.create(username = 'johndoe', password = 'goodtobehere123') ... def test_case_one(self): user =

Deploy Django with Apache on Windows

2018-11-13 Thread ANi
Hi, I come across a problem when I want to deploy Django using Apache on Windows. I separated some configurations into production.py and local.py, like database configurations. And each files will read the actual setting data from a another file config.json. I try to set the environment varia

Re: Django Admin Redesign

2018-11-13 Thread ANi
Yes, you can redesign how it looks like, but I am not sure about how much you can do. You can check out the project Django JET. -- 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,

Re: pycaptcha help needed

2007-08-28 Thread Ani Nair
THANK YOU > It's working fine now.. . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this grou

pycaptcha help needed

2007-08-28 Thread Ani Nair
Hi... I am using python2.5 with django 0.97 pre on windows xp.I am new to this and I have to use captcha... I can't find any source. Can anybody help? Thanking you all... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Help needed

2007-08-24 Thread Ani Nair
Hi I'm new to this.. I want to know whether django restricts the use of '?' in urls. I am unable to use it in the url config --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou