Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread eric paul
t; the pitfalls and the way around them so that's out of the way. > > Regards. > > > On 7/14/24 12:32, eric paul wrote: > > In whatever way possible use the Django ORM for security purposes and also > efficiency . I won't recommend to use Raw queries if you don

Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread eric paul
In whatever way possible use the Django ORM for security purposes and also efficiency . I won't recommend to use Raw queries if you don't know what you are doing On Sun, Jul 14, 2024, 7:34 AM Enock Deghost wrote: > 🙄 > > On Sun, 14 Jul 2024, 6:15 am Krishnakant Mane, > wrote: > >> Hello. >> >>

Django Model Image as background image in css

2024-05-11 Thread Paul Magadi
How do we use a model image as a background image for static css -- 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 vi

Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-11 Thread Clinton Paul
hello is the position still available? On Tue, Apr 2, 2024 at 8:19 PM Abhishek J wrote: > Dear Developers, > > I need to build an android and IOS phone dialer similar to Truecaller. > > We are seeking experienced and dedicated candidates who are proficient in > Django and possess a keen interest

Re: Redesign of agricultural project with python django and next.js technologies.

2024-02-19 Thread Paul Kirui
Hi I am also interested in contributing to this project. GitHub name: paul-kirui My WhatsApp number :- +254710778763 On Monday 19 February 2024 at 09:50:10 UTC+3 Enamul Majid wrote: > I'm interested to contribute in the project. > WhatsApp: +8801917739840 <+880%201917-739840> &

Re: Agricultural and livestock project using python, django and next technologies.

2024-02-19 Thread Paul Kirui
Hi I am interested in contributing to this project. My WhatsApp number :- +254710778763 GitHub name :paul-kirui On Sunday 18 February 2024 at 20:43:17 UTC+3 Jorge Bueno wrote: > I wrote about the same thing before but I only sent the title XD. > The project: > > I'm working

SimpleJWT and Oauth

2023-12-13 Thread attah paul
Hello I'm currently using SimpleJWT in my DRF API can i merge SimpleJWT with OAuth or any other Auth liberties for Social login -- 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, s

Django 5.0

2023-12-13 Thread attah paul
any review on the Django from you guys -- 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

Re: Suggestions for Reducing Spam

2023-06-18 Thread Paul Kudla
Happy Sunday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3 Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 Email p...@scom.ca On 6/18/2023 12:04 PM, Abhishek Choudhury wrote: Hi Django

Re: got url error in app/urls.py file

2023-06-06 Thread Paul Haguet
It's extremely basic error... File urls.py line 3 the import is invalid as it say into the trace. cretae??? Where is this function? I think "create" is the good function name: canno't import name crétin from 'audio_api.views... Le mardi 6 juin 2023 à 14:15:25 UTC+2, AKHIL KORE a écrit : > I'm

Re: uwsgi

2023-06-05 Thread Paul Haguet
I like uwsgi because it run natively for example: "service uwsgi start" on Debian Then I don't like how supervisor manage the environement vars. Notice if you want to use supervisor I suggest you to use dotenv library: https://pypi.org/project/python-dotenv/ Le dimanche 4 juin 2023 à 22:14:31 U

Django dpahne prod

2023-06-05 Thread Paul Haguet
Hello everyone, I'am looking to deploy Django ASGI project in production. This is the actual setup. Because Daphne is installed into the project python manage.py runserver use the asgi.py file instead of wsgi. Si with this config the project run with asgi on port 8000 and wsgi on port 5000. Is

Re: Unpaid Internship

2023-04-30 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
sorry for using the list John Diginee please see scom.ca for my info Happy Sunday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3 Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 E

Re: Unpaid Internship

2023-04-30 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
ok please see scom.ca for contact info did not realize email was blocked by django users list Happy Sunday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3 Toronto 416.642.7266 Main 1.866.41

Re: Unpaid Internship

2023-04-24 Thread Paul Kudla ( SCOM )
Pls contact me directly at p...@scom.ca please have an idea thanks - paul Paul Kudla SCOM.CA Internet Services Inc.004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 On Apr 24

Re: Django Admin

2023-03-13 Thread Paul Kudla
_path /www/admin.scom.ca/tmp/ php_admin_value soap.wsdl_cache_dir /www/admin.scom.ca/tmp/ php_admin_value upload_tmp_dir /www/admin.scom.ca/tmp AllowOverride All php_value session.save_path "/www/admin.scom.ca/" Happy Monday !!! Thanks - paul Paul Kudla Scom.ca Int

Re: it is very hard to find both email and phone number as username to login

2023-02-26 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
ne if user.check_password(password): return user ________ Happy Sunday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3 Toronto

Re: Need help Scraping a couple of websites

2022-12-16 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
please contact me directly i am familiar with all sorts of databases and have had to migrate data across multiple platforms. Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 Email p...@scom.ca Happy Friday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <h

Re: how can i create databases, routers and install apps in runtime?

2022-10-31 Thread Paul Kudla
just add them using a text editor (vi etc) when you need to access them an import settings (already shoud be done) will present them python 101 stuff more then django fyi Happy Monday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron

Re: secret api keys

2022-10-27 Thread Rajesh Kr. Paul
If you set debug=true, that's show only errors in url, views, and templates. Have no chance to show your secret key, which you placed in settings.py file. On Thu, 27 Oct, 2022, 5:04 am Muhammad Juwaini Abdul Rahman, < juwa...@gmail.com> wrote: > People can't see it straight away. > > However, let

Re: Django call_command from Admin

2022-10-24 Thread Paul Kudla
the current object then set new & date obj.new_invoice = False obj.save() copy = True Happy Monday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-

Re: Django call_command from Admin

2022-10-24 Thread Paul Kudla
s else : send_subject = 'Email Account Updated : %s' %(self.username) #Send update email send_from = 'moni...@scom.ca' send_file

Re: Why I love Django

2022-09-11 Thread Paul Onteri
Thanks! On Sunday, 11 September 2022 at 05:06:58 UTC+3 robbi...@gmail.com wrote: > Hello Paul > > On 10/9/2022 9:15 pm, Paul Onteri wrote: > > Choosing a web framework is hard. Especially now when there are a lot of > > frameworks on the market, each designed to addr

Re: django deploy on IIS

2022-09-10 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
reasons. too many lib issues to mention a few. if you are running any kind of production server you really should look at a linux flavor (i use freebsd as it has several enhancements to the network layer) Again not an answer but maybe it is ! Happy Saturday !!! Thanks - paul Paul Kudla

Why I love Django

2022-09-10 Thread Paul Onteri
Choosing a web framework is hard. Especially now when there are a lot of frameworks on the market, each designed to address different project needs. Here is why I think that when building a large database-driven application, I would honestly pay to use Django. https://paulonteri.com/thoughts/lo

Re: What do you do with large project and forms?

2022-08-30 Thread Paul serubombwe
You need to work with model forms, but not forms, in your templates implement crispy forms to avoid over coding On Wed, Aug 31, 2022, 03:03 Mike Dewhirst wrote: > 1. Create a forms directory > 2. Create ../forms/__init__.py > 3. Move your forms.py into the forms directory > 4. In ./__init__.py

Re: Guys i have issue while loading sub module in django app

2022-08-28 Thread Paul serubombwe
Elaborate more bro, what do you mean by sub model On Sat, Aug 27, 2022, 23:56 देव Hingu wrote: > Please check here for my problem > > https://stackoverflow.com/questions/73499743/cant-find-load-sub-module-inside-django-appmodule-dynamically > > -- > You received this message because you are subs

Re: Why do we need Django rest framework when our conventional django do what we want?

2022-08-26 Thread Paul serubombwe
Its a requirement if your application is using 1. a fronted framework, 2. If your going to integrate APIs for instance payment APIs etc. And its also good in authentication. On Aug 26, 2022 6:19 AM, "Ryan Nowakowski" wrote: > On Sun, Jul 31, 2022 at 12:55:46AM -0700, Joseph Bashorun wrote: > > I

Re: I need help with saving data to django database.

2022-08-17 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
phonenumber = '' for self.item in Contacts.objects.get(pk=self.accountid).phone_number.all(): if str(self.item.phone_number) == '' or str(self.item.phone_number) == 'None' or str(self.item.phone_type) == 'Fax' : pa

Re: Static Code analysis and Security Scanning tools for Django Web Applications

2022-07-13 Thread Paul Tiplady
I also use safety to scan for package vulnerabilities in the pipeline. This is similar to a repo-scanning app like Dependabot or Snyk. Prospector is decent, although I found it preferable to use pre-commit to wire up individual tools

Using activate() to set the timezone in Model Admin

2022-07-13 Thread Paul Tiplady
I'd like to have my Admin site use a different default timezone than the rest of my django app. I prefer the backend and API to operate in UTC, because this is a general good practice for geographically distributed teams. However admin users (based in a specific timezone) find this confusing, a

Re: Fetch email from google

2022-07-08 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
dea how of an iPhone, Android device, or Outlook could all be set up to work with MFA with a standard dovecot/postfix setup. Are there any practical solutions for easily implementing MFA that could work across multiple devices? >> Disclaimer: I work for Auth0 (now Okta) On 7/3/22 9:40 AM,

Re: server can't connect in browser

2022-06-23 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
telneting to the server as a test to verify ip & ports are correct. example : telnet 192.168.0.2 8000 for example if you get a response then you are good to go. ie "telnet 192.168.0.2 8000" Happy Thursday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http:/

Re: ?? question ,its urgent

2022-06-20 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
Just an fyi your email showed up as suspect ?? spf=softfail (google.com: domain of transitioning abhinan...@snakescript.com does not designate 2607:f8b0:4864:20::62b as permitted sender) might want to get that fixed Happy Monday !!! Thanks - paul Paul Kudla Scom.ca Internet Services

Re: Django email | Gmail | Outlook

2022-06-02 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
and busilding some sort of connect library per provider. Afterwhich i save the device key in a local database for future use? Happy Thursday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3 T

Re: POS Printer

2022-05-31 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
reportlab.lib.colors import PCMYKColor, PCMYKColorSep, Color, black, blue, red, orange please understand that this is very rough approach if you need more info a can send my django code if nessesary but is tailered to my system fyi Happy Tuesday !!! Thanks - paul Paul Kudla Scom.ca Internet

Re: Django email | Gmail | Outlook

2022-05-30 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
on (if you are in unix) is to start up a postfix / dovecot email server instance where you are in control of the protocol's used? this way your in complete control of your emails in both directions. Its a bit of work but leaving things to the main stream providers isn't Happy

Re: What do they mean, exactly

2022-05-28 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
table entries This can happen when syntax errors, migrations errors occured on the last run and it did not make it far enough to add the fields? hope this helps. Happy Saturday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whit

Re: OperationalError at /admin/login database or disk is full

2022-05-28 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
out where your database, dhango etc lives and go from there keep in mind that default locations usually work but sometimes not pending how your system was formatted. Happy Saturday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street

tutorial 1 problems from djangoproject website - not working, do not exactly understand

2022-03-22 Thread Paul Kagan
root@videotron:~ # django-admin startproject mysite root@videotron:~ # python manage.py runserver python: can't open file 'manage.py': [Errno 2] No such file or directory root@videotron:~ # ls .Xauthority .elinks .nn .viminfogit .cache .emacs.d.npm

Re: Where are you deploying Django App? How much does it cost for a hobby project

2021-10-04 Thread Paul Tiplady
You can deploy to Heroku, there's a free tier and it's very low maintenance. https://devcenter.heroku.com/articles/deploying-python I've had a free Django app running there that I set up almost 10 years ago without any work required to keep it up since then. Heroku is somewhat expensive if you

I am using django with DRF and dj_rest_auth

2021-06-12 Thread Manas Paul
I have made my custom user model. The dj_rest_auth returning the response after successfull login { "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjIzdXJfaWQiOjZ9.4yjIBxXhe5grxCe18huamgj1qP44A-zOkUHxZ61wXao" , "refresh_token": "eyJ0eXAiOiJKV1QiLC

Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
e, lazy="dynamic")) space_commercial_products=db.relationship("SpaceCommercialProduct", backref=db.backref( "spaces", uselist=True, lazy="dynamic")) space_document=db.relationship("SpaceDocument", backref=db.backref( "spaces

Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
nko hinglish kaisa samjhenga? 😂 >>> >>> Teko field pe unique constraint lagana padenga >>> >>> Teko no wapas 1 se start karneke liye query maarana padenga >>> >>> last_no = Model.objects.filter(categorycode="blah", >>> citycode=

Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
st_no = Model.objects.filter(categorycode="blah", >> citycode="blah-blah").count() >> >> unique_code ="LM" + categorycode >> + citycode + str(last_no + 1) >> >> >> Aisa code likkha toh result milenga 😋 >> >> >>

Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
t; Teko no wapas 1 se start karneke liye query maarana padenga > > last_no = Model.objects.filter(categorycode="blah", > citycode="blah-blah").count() > > unique_code ="LM" + categorycode > + citycode + str(last_no + 1) > > > Aisa code likkha t

Immediately Need Help

2021-02-19 Thread Kritika Paul
I have to create a unique code for each space saved in dbAb db me save krne k lie, wo multiple part me save ho rha hai, multiple models bhi hai uske.1st model se mujhe space category ka name uthana hai 2nd se city code Category alag alg ho skti hai To code genrate hoga LM-categorycode-citycode-0

Project setup

2020-09-04 Thread Kritika Paul
someone reply soon. -- Regards, Kritika Paul rkritikapau...@gmail.com +91-7905147674 -- 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

What will be best option

2020-08-14 Thread Manas Paul
I have been working on a project, where the project has a Model called Competition and under each completion I have a model called Artwork ( in foreign key relationship). I am using DRF and the problem I am facing is each artwork has a field called approved ( boolean ) and I want to retrieve a

Re: HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-12 Thread Kuntal Paul
ase check this answer >> https://stackoverflow.com/questions/16824004/django-conditional-login-redirect >> >> On Sat, 11 Jul 2020, 18:22 Kuntal Paul, wrote: >> >>> Thank you for your response. I did this way and it was giving me a 405 >>> error. I couldn&#x

Re: HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread Kuntal Paul
ephen wrote: > You can consider redirecting to a URL that handles the request. > > That is a View function that checks if the user is a student or teacher, > then renders the respective profiles. > > Regards > > On Sat, Jul 11, 2020 at 5:58 PM Kuntal Paul wrote: > &

HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread Kuntal Paul
The *LOGIN_REDIRECT_URL* only allowing to redirect to a particular profile page. But in scenarios like where there are *students* and *teachers*, both of them need their specific profile page after login. Using* LOGIN_REDIRECT_URL*, both the teachers and the students are getting redirected to

Re: Python Django Training

2020-02-03 Thread Manas Paul
Hope this help you a lot to learn django in depth https://manascode.com/ On Saturday, 1 February 2020 19:12:52 UTC+5:30, 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). Memb

Re: using Django to create/build enterprise e-commerce system

2020-02-03 Thread Manas Paul
Contact at cont...@manacode.com On Saturday, 1 February 2020 22:43:29 UTC+5:30, Henry Udoye wrote: > > I need the following: > > *ENTERPRISE E-COMMERCE APPLICATIONS COMPONENTS OUTLINED OR MENTIONED OR > LISTED BELOW AND THE ENTERPRISE E-COMMERCE APPLICATIONS COMPONENTS > INTEGRATOR(S) TO PUT OR

Django - Heavy Databse Usage

2019-11-18 Thread Paul Onteri
Let's say you are building a SAAS application system in which every user will use the database heavily, for example, a hospital management system. Should you have separate databases for each user? And how do you implement this in Django? -- You received this message because you are subscribed

Re: JSONField filter fails with TypeError: can only concatenate tuple (not "list") to tuple

2019-11-12 Thread John-Paul Navarro
Django 2.2.7 fixed the problem. Thanks! On Friday, November 1, 2019 at 4:59:11 PM UTC-5, Raffaele Salmaso wrote: > > On Fri, Nov 1, 2019 at 10:38 PM John-Paul Navarro > wrote: > >> The following fails with Django 2.2.6 but works with Django 1.11.x. >> > https://co

JSONField filter fails with TypeError: can only concatenate tuple (not "list") to tuple

2019-11-01 Thread John-Paul Navarro
The following fails with Django 2.2.6 but works with Django 1.11.x. Did filter() of JSONfield change in 2.2.6 and the query needs to change, or could this be a bug? Goal: Select model rows where the related AbstractService.EntityJSON contents “Capability" list includes the value 'data.transf

Re: list records of another app in another app

2019-09-24 Thread Paul Barber
I was actually thinking of doing the same thing On Tuesday, September 24, 2019 at 3:10:46 PM UTC-4, Perceval Maturure wrote: > > > Hi awesome django users > i want to list model records of App1 in a detail view of App2 > any ideas? > Regards > > -- > *Perceval Maturure* > > *083 303 9423* > --

Re: Collapsible elements in admin stopped working with latest release

2019-07-12 Thread Paul Michalski
I can confirm this bug also occurs when using the minified file, collapse.min.js. I just updated our production server and the same bug popped up. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Collapsible elements in admin stopped working with latest release

2019-07-12 Thread Paul Michalski
l (or something) was removed in the most recent Django version. Does anyone know what might have changed? If something was changed, I think this is a bug – we shouldn’t have to modify the templates in the admin package to use IE11. This is my first post. Thanks for any comments or suggestions.

If you run my server code

2019-07-10 Thread Paul Gureghian
do you get redirected to a results page after voting in the poll ? my /Django repo. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: How to set timezone in Django.

2019-07-09 Thread Paul Gureghian
I used "America / Los_Angeles , and it worked. thanks On Tuesday, July 9, 2019 at 1:43:20 PM UTC-7, M. A wrote: > > 'PST' is not available in pytz > > The Pacific available timezones are : > > 'PST8PDT' > 'Pacific/Apia' > 'Pacific/Auckland' > 'Pacific/Bougainville' > 'Pacific/Chatham' > 'Pacific

Hi

2019-07-09 Thread Paul Gureghian
Can I ask a Django question here ? -- 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 post to this group, send email t

How to set timezone in Django.

2019-07-09 Thread Paul Gureghian
Specifically in the official 'polls' tutorial from the docs. In the 'mysite.settings.py' file. I changed from 'UTC' to 'PST' and 'pst' and both faulted. thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gro

template {% url %} tag is giving server's absolute path

2018-12-27 Thread Paul Lanza
I have recently changed my django project (using A2 hosting) from fcgi to wsgi. I have successfully gotten the project to work, but I am experiencing a minor caveat I am trying to solve. Now, when I use the {% url %} tag in the templates to form a link, I get the absolute path of the server (

Re: Django Channels - core.py error

2018-11-06 Thread Paul Whipp
I've just had trouble with exactly the same error. In my case I was building from the tutorial ChatConsumer with my own XChatConsumer and I hadn't referenced it in the routing.py. As a result the tutorial async chat consumer was receiving a scope that did not contain a room_name in its url_rout

Handling multiple timezones in Django Admin

2018-10-02 Thread Paul Tiplady
he admin? Or perhaps a clean way of storing a User.time_zone config property that could be used to localize the admin cleanly. Cheers, Paul -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Security Check in Django

2018-06-20 Thread Jerrina Paul
Hi, We started migrating a java project to Django .Our present code we are using different filters for security. Mainly we are checking below filters · Session hijacking check · XSS attach check · CSRF check · Path manipulation check(directory traversal attack) ·

about the integration of Django with ionic

2018-05-29 Thread sujan paul
I am a beginner in using Django and i'm integrating it to my ionic application . I have the python code and Ionic application but i need to know how can i integrate each other -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re:

2018-05-05 Thread Paul Baforh
alright!! No problem!! feel free On Thu, May 3, 2018 at 12:26 PM, Muwanguzi Derrick < muwanguziderri...@gmail.com> wrote: > Hlo am a new django user I want be your friend for help > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsub

Re: A first time programmer

2018-04-17 Thread Paul Baforh
Thanks everyone for your replies so far. I have another prob: I'm trying to create a new file (.py) in my app using vscode but I get the error "permission denied writing to file" then followed by the directory of the base file -- You received this message because you are subscribed to the Goo

no styling

2018-04-09 Thread Paul Baforh
Please, my django development page is without css. How do I go about it. Thanks -- 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...@googleg

A first time programmer

2018-04-06 Thread Paul Baforh
Please programmers, how do I engage django because i get syntax error i type in this code - $ django-admin startproject mySite --- -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving ema

Re: In the Admin, Is it possible to make filters on foreign keys usable with lots of related objects?

2018-02-02 Thread Paul Tiplady
I've used that in a few admin pages, as far a I understand it just restricts the allowed values for a model's foreignkey field when editing a model instance. I don't see any way to use that to change how the `list_filter` functions -- am I missing something? Thanks, Paul On Fri, F

Re: In the Admin, Is it possible to make filters on foreign keys usable with lots of related objects?

2018-02-02 Thread Paul Tiplady
That's a pretty inflexible solution though; what if I want to filter on multiple foreign keys, e.g. Tenant=Foo(id=1), Customer=Bar(id=200)? On Fri, Feb 2, 2018 at 12:57 PM, Andy wrote: > You should rather use search_fields instead of filtering together with the > sorting ability of the admin. Th

Re: Newbie - Microservice in Django - Best place to start learning

2018-02-02 Thread Paul Tiplady
Assuming you're trying to build a REST API and not a HTML website, you should look at http://www.django-rest-framework.org/ as it provides a lot of djangonic convenience methods for building REST APIs with the Django ORM. On Thursday, February 1, 2018 at 9:16:47 AM UTC-8, pratibha sharma wrote:

In the Admin, Is it possible to make filters on foreign keys usable with lots of related objects?

2018-02-02 Thread Paul Tiplady
Currently it's simple to configure a filter on a foreign key in the admin: `list_filter = ['theforeignkeyfield']` However in practice this is barely usable in most cases that I've encountered, since the admin uses RelatedFieldListFilter, which fetches the full list of objects from the DB and lo

InlineFormset Updating issues, after changing the value in the input

2018-01-18 Thread Paul
I have 2 models Product and Image: class Image(models.Model): product = models.ForeignKey(Product, related_name='images', on_delete= models.CASCADE) parent = models.ForeignKey('self', blank=True, null=True, verbose_name='original image', on_delete=models.CASCADE) image = models.Ima

Re: Issues with image.path being reported wrong causing failing of a Celery task

2018-01-17 Thread Paul
I did, is not celery related. The only thing, that maybe is influencing the path, is that the Image model is used in an inlineformset. On Wednesday, January 17, 2018 at 6:37:40 PM UTC+2, Matemática A3K wrote: > > > b > On Wed, Jan 17, 2018 at 12:17 PM, Paul > > wrot

Issues with image.path being reported wrong causing failing of a Celery task

2018-01-17 Thread Paul
I have the following model: class Image(models.Model): image = models.ImageField(upload_to= file_upload_to) I have a dynamic file_upload function: def file_upload_to(instance, filename): base = '_'.join([str(instance.item.pk), instance.item.slug]) return os.path.join('accounts', base,

ManytoMany Relation and Custom widget in Django

2017-11-17 Thread Paul
I have two models Category and Products. - a Product can have multiple Categories - a Category can have multiple Products. - Categories have a circular Foreign key, to itself. - not all Categories have the same depth level Example: Category A - Category A_1 - category A_2

ManytoMany Relation and Custom widget in Django

2017-11-13 Thread Paul
I have two models Categories and Products. A Product can have multiple Categories, a Category can have multiple Products. The Categories have a circular Foreign key, to itself. class Product: categories = models.ManyToManyField(Category) name = models.CharField(max_length=2

Re: Django raising error - hostname doesnot match.

2017-11-10 Thread Rahul Paul
Thanks James for your suggestion. So according to you, I must use the domain name and not the IP address anymore in my request. Thanks again. On Friday, November 10, 2017 at 11:09:59 PM UTC+5:30, James Schneider wrote: > > > > On Nov 10, 2017 3:45 AM, "Rahul Paul" > &

Re: Django raising error - hostname doesnot match.

2017-11-10 Thread Rahul Paul
In some place I wrote that "However the very same API is returning proper result with both --- IP address and domain name". I would like to correct hat this scenario is working when I am hitting the API from POSTMAN. On Friday, November 10, 2017 at 5:15:20 PM UTC+5:30, Rahul Paul wro

Django raising error - hostname doesnot match.

2017-11-10 Thread Rahul Paul
Hi, I am using requests package to send a post request to an API within my application. I am using the request as : *requests.post("https://xx.xxx.xxx.xxx/my-admin/api/api2";, data=data)* where "xx.xxx.xxx.xxx" is the IP of my server on which this API is hosted. When I am trying to call thi

What is the role of __deepcopy__ in Python class and Django widget

2017-11-04 Thread Paul
First, I know how copy and deepcopy from copy module work for a list. I'm interested the role of __deepcopy special method inside a class. I need to create custom widgets in Django and I try to understand the python code behind. class Widget(metaclass=MediaDefiningClass): needs_multi

ManytoMany field in Django admin not appearing

2017-11-03 Thread Paul
I have a Product model, an Image Model and a Category Model. A Product can have multiple Images(Foreign Key) and a Product can be in multiple Categories a Category can contain multiple Products. A Category can have multiple subcategories(key to itself). class Category(MetaData): parent =

Re: Possible Bug Regarding model choices and form hidden input?

2017-10-28 Thread Paul Kenjora
*I use: * Django version 1.7.0 - I know I know :) Python 2.7.13 - Paul On Sat, Oct 28, 2017 at 6:01 AM, Etienne Robillard wrote: > Which Python and Django versions do you use? > > Etienne > > Le 2017-10-27 à 23:27, Paul Kenjora a écrit : > > Hi, > > Wh

Possible Bug Regarding model choices and form hidden input?

2017-10-27 Thread Paul Kenjora
#x27;:0,* *}, follow=True)* *banner_xSelect a valid choice. 0 is not one of the available choices.* Anyone else seeing this? Works fine via browser, just unit tests are not coming back right. -- - Paul Kenjora - 602-214-7285 -- You received this message because you are subscribed to

How Django inlineformsets works internally

2017-10-10 Thread Paul
I have a form with two inline formsets. . At the HTML level Django use the hidden fields for the formset management, and use the prefix to know which fields are related to a formset. Also it has ids in the html id, to group like in a virtual form the fields. On retrieve by default I

Django InlineFormset : Customize inputs and widget

2017-10-04 Thread Paul
I’m using inlineformsets for an Image Model in combination with a Product Model. For the Image Model (using javascript): 1) a remove/delete button will be available to remove an image; the image can be remove not only on edit, but also on creation(the use upload the image, but before savin

Implementation Advice: Categories and Product Specifications

2017-10-02 Thread Paul
I have Product and Categories. A product can be in multiple categories and off course a Category have multiple products. The Categories can have Subcategories’ which can have Subcategories. I used a Category Model with a circular Foreign Key. Each Product can have specifications/attributes

Django: Form validation strange behaviour

2017-09-29 Thread Paul
I want to do file validation(size,type) on a field on inlineformset. class ProductDocumentModelForm(ModelForm): class Meta: model = ProductDocument fields = ['document'] def clean_document(self): file = self.cleaned_data['document'] validate_file(file, 'document') Becau

Django - Best option to check file types, even fake or without extensions

2017-09-21 Thread Paul
I'm trying to validate mime types of files uploaded with a predefined list of validate mime types. I need to do the check the file in the buffer before save, even if they are faked or no extensions. 1. python own mimetypes package seems to "guess" only base on extension 2. magic-pytho

Django - Image crop using a widget as a field in the form

2017-08-23 Thread Paul
I have a Product Model and Image Model with a Foreign key to the product model. So in a form for Product creation I will have/need multiple Image File Upload inputs. I want to replace the default Image file-upload form field with a Image (like a plus sign, like add a new image, using a w

Re: django.db.utils.OperationalError: server closed the connection unexpectedly

2017-06-01 Thread Bobby Paul
Thank you Antonis, Yeah, We have installed postgresql-8.4.20-7.el6.x86_64 Now we are checking the permission. Will touch you once it done. Thanks, Bobby Paul On Wednesday, May 31, 2017 at 5:14:29 PM UTC+5:30, Bobby Paul wrote: > > Dear All, > > I am getting this error message whi

Restricting the user from closing the browser tab so that the server side APIs are called.

2017-05-31 Thread Rahul Paul
Hi, We are working on a django project in which we are developing a two way audio visual solution for the users. Now we have certain set of APIs that need to be called from JavaScript through ajax request when user ends the call through our end-call button. Some of these ajax calls are sequenti

Re: django.db.utils.OperationalError: server closed the connection unexpectedly

2017-05-31 Thread Bobby Paul
? Thanks and Regards Bobby Paul On Wednesday, May 31, 2017 at 5:14:29 PM UTC+5:30, Bobby Paul wrote: > > Dear All, > > I am getting this error message while trying to install psql database. > > File "setup.py", line 18, in > execute_from_command_line([

django.db.utils.OperationalError: server closed the connection unexpectedly

2017-05-31 Thread Bobby Paul
nalError: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. == DATABASES_DEFAULT = { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME'

Some reversible migrations cannot be reversed in practice?

2017-04-19 Thread paul
I've just hit a tricky migration case, and I'd like to check I'm not missing something. The summary is that merge migrations make it possible to add migrations which cannot be unapplied, even if they are the latest migration to be run. With the migration graph: M1 | +--+ | | M2a M2b

  1   2   3   4   5   6   >