Re: gettext vs ugettext lazy

2021-12-02 Thread Aldian Fazrihady
oglegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/fc6e8aa7-6206-4b01-bc3f-0bf02a24770en%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/fc6e8aa7-6206-4b01-bc3f-0bf02a24770en%40googlegroups.com?utm_medium=ema

Re: Using Admin to manage users that is not in django

2022-03-20 Thread Aldian Fazrihady
ES%2BqEBebpsVQg0wYrnM129W7jRyR50xSxA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CANbmKytFbGCezptTES%2BqEBebpsVQg0wYrnM129W7jRyR50xSxA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com

Re: 413 Payload Too Large on Django server

2019-03-15 Thread Aldian Fazrihady
Have you tried this setting? https://docs.djangoproject.com/en/2.1/ref/settings/#data-upload-max-memory-size Aldian Fazrihady On Sat, Mar 16, 2019 at 6:53 AM Manas Nikam wrote: > Check Django settings for maximum file upload size. Change it > > On Sat, Mar 16, 2019, 4:20 AM wrote:

Re: For what il8n is used?

2019-03-17 Thread Aldian Fazrihady
So we can use template tags related to internationalization, such as 'trans' and 'get_current_language' On Sun, 17 Mar 2019, 18:54 , wrote: > I used to many time {% load il8n %}. For what purpose it is used? > > > -- > You received this message because you are subscribed to the Google Groups >

Re: Channels - Updating client when the long running celery job finishes

2019-03-18 Thread Aldian Fazrihady
Hi Suresh, Yes, celery task can send websocket message to client/JS. My celery task uses websockets Python module to contact a Daphne channel belongs to JS client. On Mon, Mar 18, 2019 at 8:28 PM Manas Nikam wrote: > You can use firebase cloud messaging > > On Mon, Mar 18, 2019, 5:50 PM Suresh

Re: Channels - Updating client when the long running celery job finishes

2019-03-18 Thread Aldian Fazrihady
s message from celery tasks, to be sent back to JS: ... class MessageConsumer(JsonWebsocketConsumer): ... def receive_json(self, content, **kwargs): async_to_sync(self.channel_layer.group_send)("user-" + content["to"]["user"], content) def system_message(s

Re: Reusable Chat Application for Django Developers

2019-03-18 Thread Aldian Fazrihady
Hi Ahmed, Congratulations for the open source project. My website is also using Django Channels for its chatting feature. It is awesome that you can implement the ideas of a framework that simplifies websites to have chatting feature. When I have time, I will check if I can use this module for my

Re: Translation doesn't work?

2019-03-21 Thread Aldian Fazrihady
Hi ANi, I think the settings should you lower case letter like this: LANGUAGE = [ ('en-us', 'English'), ('zh-hant','繁體中文'), ] LANGUAGE_CODE = 'zh-hant' And the locale folder should use underscore instead of dash, and use uppercase 'H

Re: Translation doesn't work?

2019-03-21 Thread Aldian Fazrihady
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 wrote: > Oh yes, thank you, Aldian. > But it doesn't work, either. :-\ > > > Aldian Fazrihady於 2019年3月22日星期五 UTC+8上午11時20

Re: Create project in windows, but run it in Ubuntu

2019-03-22 Thread Aldian Fazrihady
Hi, That's is possible. On Fri, 22 Mar 2019, 19:28 Chafid Ahmad, wrote: > Hi, I have a client who wanted to run a Django project that can run in > Ubuntu. As I don't have a UX machine to developed it, is it possible to > developed the project in Windows, but later export it to Ubuntu? My initia

Re: Dispatching requests from one uwsgi to another uwsgi instance running Django Channels

2019-03-22 Thread Aldian Fazrihady
Does it really use Django channels? I am using Django channels and following its suggested package: ASGI provided by Daphne Regards, Aldian Fazrihady On Sat, 23 Mar 2019, 07:58 Adam Zedan, wrote: > I am currently using Django channels for websocket communication. I read > this &g

Re: Doubt in the creation of fields in the FrontEnd

2019-03-23 Thread Aldian Fazrihady
rly design your database schema. Regards, Aldian Fazrihady On Sun, Mar 24, 2019 at 12:46 AM Barkalez XX wrote: > > I would like to know if it is possible to create a new field in a table > from the FrontEnd. For example, in a form to create recipes, not all > recipes contain the same numb

Re: Doubt in the creation of fields in the FrontEnd

2019-03-23 Thread Aldian Fazrihady
Hi, Generating fields is possible, but for your recipe app, that's absolutely not a good thing to do. Regards, Aldian Fazrihady On Sun, Mar 24, 2019 at 1:54 AM Barkalez XX wrote: > Thank for you answer. > > > I did not know that fields could be generated in the databas

Re: Script for running Daphne and runworker in the background . runworker ends after session expires.

2019-03-23 Thread Aldian Fazrihady
Hi, Mine is like this. It is still running after exiting ssh: nohup daphne -v 2 -b $AFCOM_DAPHNE_HOST -p $AFCOM_DAPHNE_PORT afcom.asgi:application > $AFCOM_PROJECT_PATH/daphne/afcom.log 2>&1 & On Sun, Mar 24, 2019 at 10:52 AM Adam Zedan wrote: > I am trying to create a bash script that would r

Re: Script for running Daphne and runworker in the background . runworker ends after session expires.

2019-03-23 Thread Aldian Fazrihady
On Sun, Mar 24, 2019 at 11:41 AM Adam Zedan wrote: > Thanks Aldian , what about runworker ? > I don't use Daphne worker. However, I am using celery -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Lead Architect / CTO ( Hands on ) - Start Up - Cambridge - 3 Days remote working

2019-03-28 Thread Aldian Fazrihady
Visa sponsorship? On Thu, 28 Mar 2019, 18:34 , wrote: > Hi Everyone, > > I am looking for a candidate who has architectural experience in building > a Platform in Python Django. > > *Software Architect – Part Remote - (Python Django) – Start **Up * > > > > £65,000 - £75,000 depending on experien

Re: Unit-Testing Django Views

2019-03-28 Thread Aldian Fazrihady
There are several things you can try: 1. Mocking csrf token functions 2. Passing the csrf token context from first HTML generation to the second HTML generation 3. Wiping out the csrf token parts from both HTML before comparing them. On Thu, 28 Mar 2019, 23:54 Simon Charette, wrote: > This is ef

Re: Installation Question

2019-03-29 Thread Aldian Fazrihady
Starting from Python 3.6, we don't need 3rd party virtualenv library. We can just do this: python3.7 -m venv /path/to/env/ https://docs.python.org/3/library/venv.html Regards, Aldian Fazrihady On Thu, 28 Mar 2019, 23:32 Michael Achterberg, wrote: > I've installed Python 3.

Re: Complex query on inner join - case for __ne?

2019-04-12 Thread Aldian Fazrihady
What's the result of print(Foo.objects.exclude(bar__attribute=1).filter( bar__attribute_2=2).query) On Fri, 12 Apr 2019, 20:10 Michael Thomas, wrote: > Hello everyone, > > I've run into what I believe is a limitation of the ORM that other people > must be dealing with somehow, but I can't seem

Re: How to design a notification system using Django Channels 2? (architecture)

2019-04-13 Thread Aldian Fazrihady
Will the notifications still reach users when your app browser tab/window is closed? If yes, you need to use PWA push notifications instead of websocket. On Sat, 13 Apr 2019, 22:35 , <9co...@gmail.com> wrote: > I have a social network app and users can add posts and other users can > comment po

Re: Which Cloud Service Provider should be chosen to host Django Application

2019-05-02 Thread Aldian Fazrihady
Use AWS or GCP. You can automate the scaling. Regards, Aldian Fazrihady On Thu, 2 May 2019, 16:51 Balaji Shetty, wrote: > Hi > > I do not have any experience for cloud hosting. Can you please suggest > Cloud Service Provider to host Django Application. > > My Application

Re: Run Daphne as non-root on low ports

2019-05-02 Thread Aldian Fazrihady
Hi, I usually have SSL termination on nginx, or CDN, or Load Balancer. I never need to set SSL on Django or Daphne server. Probably you could try this architecture. Regards, Aldian Fazrihady On Thu, 2 May 2019, 20:32 BR, wrote: > I'm running a simple Django/Channels website usin

Re: Django permissions framework vs DRF permissions

2019-05-18 Thread Aldian Fazrihady
Hi, based on my experience, I can create DRF permission based on HTTP methods. Django permissions by default are tightly related to ORM models. DRF permission can be totally unrelated to ORM models. Regards, Aldian Fazrihady On Sat, 18 May 2019, 16:13 Rounak Jain, wrote: > Newbie here

Re: Occasional CSRF cookie not set django 1.11 -> 2.1

2019-05-21 Thread Aldian Fazrihady
ookie instead of CSRF in hidden form field. Regards, Aldian Fazrihady https://www.aldianfazrihady.com/en-us/ On Wed, 22 May 2019, 04:52 Yusuf Musleh, wrote: > Hello, > > We recently migrated from django 1.11.5 to 2.1.4. We performed all the > necessary changes needed for the migration an

Re: Occasional CSRF cookie not set django 1.11 -> 2.1

2019-05-22 Thread Aldian Fazrihady
opens the website (sometimes for their first time), > tries to submit a form, and they are not able to because it errors out with > "CSRF cookie not set." > > On Wednesday, May 22, 2019 at 2:31:43 AM UTC+3, Aldian Fazrihady wrote: >> >> The form page itself can expire

Re: set python 3.6.8 default in my ubuntu

2019-05-22 Thread Aldian Fazrihady
Omar, if you upgraded your system to Ubuntu 18.04, it will install Python 3.6 for you. Aldian Fazrihady https://www.aldianfazrihady.com/en-us/ On Wed, May 22, 2019 at 9:22 PM omar ahmed wrote: > ok .. i did it but it make my env with python3.5 > > > On Wednesday, May 22, 2019 a

Re: 1 project, X app = X subdomains (Django, Apache)

2019-05-23 Thread Aldian Fazrihady
o app representing that subdomain. Unofficial way: Create path rewriting rule in wsgi configuration. I have used those both ways in the past. If your machine has very limited RAM, such as 1 GB or below that, I suggest you to try the second way. Regards, Aldian Fazrihady https://www.aldianfazrihad

Re: Django channels on IIS

2019-05-23 Thread Aldian Fazrihady
IIS still exists? On Fri, 24 May 2019, 09:04 Daniel Butler, wrote: > First off I love this project. Django Channels is amazing! > > I just wanted to see if anyone has had any success with using iis with > Django-Channels since this post over 2 years ago. > > Thank you! > > -- > You received this

Re: Redirect on POST

2019-06-07 Thread Aldian Fazrihady
is no way other than setting JS window.location. Regards, Aldian Fazrihady. On Fri, Jun 7, 2019 at 6:30 PM Mark Davies Tan wrote: > Hi all, > > I have this scenario. I have a client who wants to call a POST API of mine > which then redirects to my site. So client has his own site

Re: Channel 2 no longer has Group object. If so, how can we know if a particular group is already created?

2019-06-09 Thread Aldian Fazrihady
Group is more like tagging to a channel. If you need the capability to check if a group name has been used or not, you need to add the capability by yourself. Regards, Aldian Fazrihady On Mon, 10 Jun 2019, 02:38 Arean Bbay, wrote: > I want certain users to have the ability to join a gr

Re: Mixing ListView and CreateView

2019-06-09 Thread Aldian Fazrihady
Here is a way to combine them: https://docs.djangoproject.com/en/2.2/topics/class-based-views/mixins/ If you are using Django Rest Framework, they already have it: "rest_framework.generics.ListCreateApiView" regards, Aldian Fazrihady http://www.aldianfazrihady.com/en-us/ On Mon, 1

Re: unable to import django packages

2019-06-18 Thread Aldian Fazrihady
Has the IDE used the same python environment with the one having Django module installed? Aldian Fazrihady On Wed, 19 Jun 2019, 05:42 KUMBHAGIRI SIVAKRISHNA, < kumbhagirish...@gmail.com> wrote: > hi, > I just django started ,when I run my application ,it gives errors as shown

Re: Wrong Redirect

2019-06-20 Thread Aldian Fazrihady
Hi Ramadhan, I think redirection is only needed on valid and successful POST. On invalid POST, I will re-render the current form + error message without redirection. Regards, Aldian Fazrihady On Thu, 20 Jun 2019, 16:11 ramadhan ngallen, wrote: > Hello Team > I created an app(called

Re: [Model, ORM] Disabling a field before actually removing it

2019-06-20 Thread Aldian Fazrihady
My solution to this problem was by adding more migrations steps: 1. Step to make the field nullable. 2. Backward step to fill value to the removed field. 3. Step to remove the field. Regards, Aldian Fazrihady On Thu, 20 Jun 2019, 19:37 Matthieu Rudelle, wrote: > Hi there! > > I am

Re: REST API social authentication

2019-06-21 Thread Aldian Fazrihady
If I want to use Facebook, Twitter, or Google login, I will use social-auth-app-django Regards, Aldian Fazrihady On Fri, 21 Jun 2019, 15:51 pastrufazio, wrote: > > Hi all, > > I need to implement social authentication in my set of REST API. > > I did some googling and f

Re: invalid literal for int() with base 10: ''

2019-06-21 Thread Aldian Fazrihady
Does the stack trace mention a template variable name? It looks like a template variable that is expected to have integer value is not properly initialized. Regards, Aldian Fazrihady On Fri, 21 Jun 2019, 22:42 Lutalo Bbosa joseph, wrote: > i as well have a models.py file for carts,

Re: Anyone is able to delete or update other's post through url

2019-06-24 Thread Aldian Fazrihady
I would implement get_queryset method that filter blog post by author=self.request.user Regards, Aldian Fazrihady On Sun, 23 Jun 2019, 20:55 Gaurav Sahu, wrote: > Hy, I am developing a Django Blog application. In this application, I > have a PostEdit view to edit the post, Delete pos

Re: Why I cannot save records into database?

2019-06-24 Thread Aldian Fazrihady
How do you render your form? Can I see the content of the template file? Regards, Aldian Fazrihady On Mon, 24 Jun 2019, 20:14 Alexandru Caplat, wrote: > I have a form that in past works good but after I change some data in the > models and add image field it doesn't work. >

Re: CSRF verification failed when I use smart phone

2019-06-25 Thread Aldian Fazrihady
Please make sure csrftoken cookie is returned to the Android app Regards, Aldian Fazrihady On Wed, 26 Jun 2019, 09:46 Robert F., wrote: > Make sure you aren't blocking cookies on whatever device is giving you > problems. You'll get this error if you are blocking them. > &g

Re: Minimum Hardware requirement - reg

2019-06-25 Thread Aldian Fazrihady
Can you convince your client to use clouds instead of self hosting? Cloud such as AWS or GCP is easily scriptable, allowing to create critical/important automation scripts. Regards, Aldian Fazrihady On Wed, Jun 26, 2019 at 1:19 AM Raja Sekar Sampath wrote: > Hi, > > What are the fa

Re:

2019-06-26 Thread Aldian Fazrihady
It is quite common that Django to be treated mostly as API backend and to deliver a very basic HTML template to inform the browser about the URL of the Angular JavaScript. Regards, Aldian Fazrihady On Wed, Jun 26, 2019 at 3:18 PM Pradeep Singh wrote: > Does it make sense to create

Re: Using OAuth2 with Django

2019-06-27 Thread Aldian Fazrihady
Hi Derek, If you are using Django OAuth Toolkit there is authorization URL in this path: /o/authorize Regards, Aldian Fazrihady On Thu, Jun 27, 2019 at 10:15 AM Derek Dong wrote: > So I've been trying to learn how to authenticate users in my Django > application with OAuth.

Re: Help me fix this chat feature

2019-06-30 Thread Aldian Fazrihady
I think if you run multiple users on the same PC, you should use different browsers, or at least private/incognito mode. It is because Django gave one browser session to one user. If you are still using one browser, Django thinks only one user accessing the app. Regards, Aldian Fazrihady On

Re: deploy django on AWS

2019-06-30 Thread Aldian Fazrihady
ecome expensive. You can prevent that if you are able to manage Database and Cache on your own EC2 instances. Once you comfortable with those items, you try to automate deployment by creating automation script based on git and AWS Command Line Interface. Regards, Aldian Fazrihady On Sun, 30 Jun 2019,

Re: Notification system using django channels

2019-07-01 Thread Aldian Fazrihady
itten any tutorial. Regards, Aldian Fazrihady https://www.aldianfazrihady.com/ On Tue, Jul 2, 2019 at 3:39 AM mintu wrote: > hello guys, > i want to know if is there any way where we can add notifications to our > app using channels > when ever a user clicks on a like button the p

Re: login page not working

2019-07-03 Thread Aldian Fazrihady
Redirection should only be done on successful login. Invalid login should directly render the form plus error message. Regards, Aldian Fazrihady On Wed, 3 Jul 2019, 18:03 KUMBHAGIRI SIVAKRISHNA, wrote: > I entered username and password ,and click submit ,then it directs same > login pag

Re: How to convert files from .bin to .png with Python or Django

2019-07-03 Thread Aldian Fazrihady
le.com/d/msgid/django-users/b74b0c80-3af6-4791-b010-751cfd47e373%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this message because you are subsc

Re: login page not working

2019-07-03 Thread Aldian Fazrihady
> > On Wed, 3 Jul 2019, 8:09 pm Aldian Fazrihady, wrote: > >> Redirection should only be done on successful login. >> Invalid login should directly render the form plus error message. >> >> Regards, >> >> Aldian Fazrihady >> >> On W

Re: Deploying a static website

2019-07-03 Thread Aldian Fazrihady
Why does a static website need help from a Python web app framework such as Django? On Thu, 4 Jul 2019, 08:47 Django Dojo, wrote: > I’ve created a static website in Django and i would like to know the > cheapest and best way to design ploy it. > > -- > You received this message because you are s

Re: Deploying a static website

2019-07-03 Thread Aldian Fazrihady
You can also use Amazon S3 to host static website. Regards, Aldian Fazrihady http://aldianfazrihady.com On Thu, 4 Jul 2019, 09:25 Django Dojo, wrote: > I’m just learning Django and was trying it out, but is it better to deploy > just using simple html, css and launch using a ftp

Re: Deploying a static website

2019-07-03 Thread Aldian Fazrihady
I have never used heroku. By the way, I am using 500 MB of S3 space. I am only billed 1 cent per month. On Thu, Jul 4, 2019 at 9:45 AM Django Dojo wrote: > Thanks, but what do you think about Heroku? > > On Wednesday, July 3, 2019, Aldian Fazrihady wrote: > >> You can als

Re: having problem in login rest API

2019-07-07 Thread Aldian Fazrihady
It is in user object instead of student object, right? Regards, Aldian Fazrihady http://aldianfazrihady.com On Mon, 8 Jul 2019, 11:12 laya, wrote: > Hi, > > Please help me in this part, I stuck in some days, > > My project is about a university system which professors and stud

Re: Template programming

2019-07-14 Thread Aldian Fazrihady
You need to create a template filter: https://docs.djangoproject.com/en/2.2/howto/custom-template-tags/ Or use existing template filter: https://docs.djangoproject.com/en/2.2/ref/templates/builtins/ Regards, Aldian Fazrihady http://aldianfazrihady.com On Mon, 15 Jul 2019, 00:49 Scyil sharma

Re: UserCreationForm decode str object has not decode attribute

2019-07-18 Thread Aldian Fazrihady
t to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0b4256b7-080a-4f85-b4e3-e741ec8447ac%40googlegroups.com > <https://gr

Re: Django i18n_patterns default language

2020-02-24 Thread Aldian Fazrihady
; "Accept-Language" header. I do not want to use the browser language. > > On Fri, Feb 21, 2020 at 4:14 PM Aldian Fazrihady > wrote: > >> A web browser has language preference setting. When a request made to >> your Django server, your browser reads its languag

Re: Translations & Internationalization in Django Rest Framework

2020-03-10 Thread Aldian Fazrihady
the web visit > https://groups.google.com/d/msgid/django-users/1f16cbdb-469e-4928-b971-0f6303703a90%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/1f16cbdb-469e-4928-b971-0f6303703a90%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regard

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Aldian Fazrihady
om. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b1031a40-e33c-4bca-8764-13849c75968e%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b1031a40-e33c-4bca-8764-13849c75968e%40googlegroups.com?utm_medium=email&utm_sou

Re: How to make Django Rest Apis Async

2020-04-20 Thread Aldian Fazrihady
this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAPSS-O%2Bm2vOS6D7c_fNFNDccmxBVMJqQZ58bNUtrjTd42Jdf%3Dw%40mail.gmail.com > <https://groups.google

Re: hosting django app on app engine

2020-04-22 Thread Aldian Fazrihady
roup and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAL8_rkG8qwM491qCcX18qgukA_ao4_ZjH8%2B-K01m17vOTcTTNw%40mail.gmail.com > <https://groups.goog

Re: How to glue Django and React together?

2020-05-06 Thread Aldian Fazrihady
ups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0f786aad-14cc-4c45-99a8-8b2b7cf4c1f7%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/0f786aad-14cc-4c45-99a8-8b2b7cf4c1f7%40googlegroups.com?utm_medium=email&a

Re: How to fork LocaleMiddleware? I need to make a small change.

2020-05-06 Thread Aldian Fazrihady
8-3b6e6cc0a641%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/75b39a9f-05b6-430c-bf78-3b6e6cc0a641%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this message because y

Re: TestCase failing when using transaction.atomic() inside test

2020-05-11 Thread Aldian Fazrihady
I don't think the subclass of TestCase need to use transaction.atomic. Why can't you just remove the transaction.atomic? Regards, Aldian Fazrihady http://aldianfazrihady.com Pada tanggal Sel, 12 Mei 2020 04.02, Uri Kogan menulis: > Hello, > > I am using TestCase and trying

Re: TestCase failing when using transaction.atomic() inside test

2020-05-11 Thread Aldian Fazrihady
ions. > From what I see in the documentation, there should be no problem to use > transactions within transactions in TestCase. > > On Tuesday, May 12, 2020 at 12:34:50 AM UTC+3, Aldian Fazrihady wrote: >> >> I don't think the subclass of TestCase need to use tran

Re: TestCase failing when using transaction.atomic() inside test

2020-05-12 Thread Aldian Fazrihady
course, I would not want to change, as this > is an external library. > > So I can't really remove usages of "transaction.atomic" > > > > On Tuesday, May 12, 2020 at 9:48:21 AM UTC+3, Aldian Fazrihady wrote: >> >> When testing django apps, my unit test usually

Re: Django foreign-key cannot assign must be a instance

2020-05-19 Thread Aldian Fazrihady
Use comp_id= instead of comp= Regards, Aldian Fazrihady http://aldianfazrihady.com Pada tanggal Sel, 19 Mei 2020 13.49, ratnadeep ray menulis: > Hi all, > > I am trying to add a row in the DB using the following views.py: > > # Create your views here. >> from django.sh

Re: Django foreign-key cannot assign must be a instance

2020-05-19 Thread Aldian Fazrihady
in so > many places I am using comp. So in all the places should I change that ? > > On Tuesday, 19 May 2020 12:36:19 UTC+5:30, Aldian Fazrihady wrote: >> >> Use comp_id= instead of comp= >> >> Regards, >> >> Aldian Fazrihady >> http://aldianf

Re: makemessages - unable to find a locale path

2020-06-12 Thread Aldian Fazrihady
from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/7a30a9cd-4538-3295-5dc5-6a0b1cee42ed%40gmail.com > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com --

Re: makemessages - unable to find a locale path

2020-06-12 Thread Aldian Fazrihady
t it.. > > Greetings > > bengoshi > > > On 6/12/20 10:26 AM, Aldian Fazrihady wrote: > > Hi, > > you need to set LOCALE_PATHS in the settings file point to your new folder. > For example, > > LOCALE_PATHS = [os.path.join(BASE_DIR, 'new_locale')]

Re: makemessages - unable to find a locale path

2020-06-12 Thread Aldian Fazrihady
makemessages should still extract texts from code and put it in po files and store the po files somewhere? Or should it do nothing? On Fri, Jun 12, 2020 at 4:03 PM Kai Kobschätzki wrote: > No error message anymore :) > On 6/12/20 11:00 AM, Aldian Fazrihady wrote: > > After django

Re: Need Covid 19 Database for Experiments

2020-07-04 Thread Aldian Fazrihady
-users/CAECSbOuuNCY58sB1g2f_ftHtpAs3FamSq%2BBJJZ%2BA5mv_3%3Dw3NQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Why passwords are not encrypted automatically in Django?

2020-07-18 Thread Aldian Fazrihady
07c-4899-8800-588826f82eb3o%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/46c902b1-007c-4899-8800-588826f82eb3o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this mes

Re: Intensive access and modification of database table

2020-07-19 Thread Aldian Fazrihady
partitioning. Regards, Aldian Fazrihady http://aldianfazrihady.com Pada tanggal Min, 19 Jul 2020 18.18, tristant menulis: > Hi, > > I am wondering if anyone could point me to any documents or readings on > how to big eCommerce sites such as Amazon or eBay implements the following > s

Re: DJANGO AWS: Failed to load resource: the server resp....403 (Forbidden)

2021-02-04 Thread Aldian Fazrihady
Everyone, Kasper's answer contains hint. Don't get offended. Regards, Aldian Fazrihady http://aldianfazrihady.com On Fri, Feb 5, 2021, 1:16 PM Kunal Solanke wrote: > Well, still its first time I read him being sarcastic or kind of fed > up.Its hilarious 🤣. > > On F

Re: Django/uWSGI/nginx under load

2021-02-20 Thread Aldian Fazrihady
scr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/4fcc006e-37bb-4497-a692-45dfb99bfad1n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/4fcc006e-37bb-4497-a692-45dfb99bfad1n%40googlegroups.com?utm_med

Re: LANGUAGE_CODE

2019-07-28 Thread Aldian Fazrihady
3154e%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/3a301603-3237-4674-9d8d-2f6362d3154e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this message because you are

Re:

2019-07-29 Thread Aldian Fazrihady
0bx4z_2pxMMiE57FD44kFn4hE%3DsSLaj66kw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAPjsHcE%2BMSVGHiQ0bx4z_2pxMMiE57FD44kFn4hE%3DsSLaj66kw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You receiv

Re:

2019-07-29 Thread Aldian Fazrihady
Multiple file uploads already there for many years. The link I shared above show you how to do that the Django way. Regards, Aldian Fazrihady http://aldianfazrihady.com On Mon, 29 Jul 2019, 21:52 Jani Tiainen, wrote: > Hi. > > TL; DR; you can't. > > You though can upload

Re: Only for specific region

2019-07-29 Thread Aldian Fazrihady
t, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/3191e21a-4b74-415a-ba1f-8c5dee0ed606%40googlegroups.com > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You rece

Re: forms - switch off the validation

2019-07-29 Thread Aldian Fazrihady
ail to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/41b2edc1-307a-a0e6-d389-a0051d38c787%40gmail.com > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this messag

Re:

2019-07-29 Thread Aldian Fazrihady
ultiple files >> to model. >> >> First part (uploading) is easy since docs do cover that. >> >> Second part is tricky since it requires data structure capable of storing >> multiple files and there are so many ways to do that. >> >> >> >>

Re: Getting data from the URL in Django get request

2019-08-13 Thread Aldian Fazrihady
gmail.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- 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: Django Redirect Not Working

2019-08-24 Thread Aldian Fazrihady
If that API is accessed via AJAX, then your JS code needs translate status 302 and Location header to JS code that sets "location.href" Regards, Aldian Fazrihady http://aldianfazrihady.com On Sat, 24 Aug 2019, 17:49 göktürk sığırtmaç, wrote: > Hello, my UserCreate class is cr

Re: How to customize admin page rendering?

2019-08-25 Thread Aldian Fazrihady
It is open source. Therefore, theoretically, you can customize everything. For admin page, I have customized many things, such as main templates, actions, validations, etc Regards, Aldian Fazrihady http://aldianfazrihady.com On Sun, 25 Aug 2019, 22:55 Jani Tiainen, wrote: > Hi. > >

Re: images in production mode. is pointed to a different path.

2019-08-26 Thread Aldian Fazrihady
16%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/f7105ee2-6236-44e5-99cc-4c2788a34e16%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this message because you are subs

Re: Is it a good practice to store all static data dynamically in database rather?

2019-08-31 Thread Aldian Fazrihady
/d/msgid/django-users/1b86e8d4-6d37-4c85-b3d4-fb7283565fed%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/1b86e8d4-6d37-4c85-b3d4-fb7283565fed%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.c

Re: Staticfiles on S3

2019-09-16 Thread Aldian Fazrihady
t; -- >> 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: convert python 3 to python2

2019-09-25 Thread Aldian Fazrihady
80-88fd-db197ca577dc%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/875549f9-5bca-4280-88fd-db197ca577dc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this message becaus

Re: Multiple user roles with permissions

2019-09-25 Thread Aldian Fazrihady
VT8H6tGOZz%3DbuVQw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAD83tOx6a4hftc9MAGeweDJ%3DfCuTBXSzc9VT8H6tGOZz%3DbuVQw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received t

Re: Entire Application in Django shuts down with single error

2019-10-01 Thread Aldian Fazrihady
1bae726a8879%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/7d81706a-2f84-4f55-a25c-1bae726a8879%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this message because you a

Re: How to generate a unique 9 digit random id for every registered user?

2019-10-04 Thread Aldian Fazrihady
https://groups.google.com/d/msgid/django-users/8eb92ef2-ffe0-431d-b4aa-3d6c5a119c3f%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/8eb92ef2-ffe0-431d-b4aa-3d6c5a119c3f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady htt

Re: getting error when i changed database sqllite3 to mysql

2019-10-05 Thread Aldian Fazrihady
8f010-5ea5-4d58-9033-2e83a3e1de06%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: How to prevent empty record in admin subform

2019-10-08 Thread Aldian Fazrihady
_ide','participante', 'com_dat',) > search_fields = ('participante','com_dat') > fieldsets = ( > ('SUIVI / APPUI COMMUNAUTAIRE', { > 'classes': ('opened',), > 'fields&

Re: How to increase file upload size in twitter in django rest api

2019-10-09 Thread Aldian Fazrihady
the web visit > https://groups.google.com/d/msgid/django-users/17cfe1bf-b9ee-012e-e76e-d661ed2920c4%40entityvibes.com > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Micro Service Architecture

2019-10-12 Thread Aldian Fazrihady
il.com > <https://groups.google.com/d/msgid/django-users/CAHV4E-fBYQQdmKMM%3D1OO8%3DMhP7YiVfTWsx2g-rhwHJRgU%3DxiWA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this message because you are subscribe

Re: Should there be separate django app for every user type in a django project?

2019-10-13 Thread Aldian Fazrihady
django-users/f7dc3b18-ab79-42ea-9ba2-7d3b2b8187fb%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/f7dc3b18-ab79-42ea-9ba2-7d3b2b8187fb%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You r

Re: User Password Automatically changes after 15 days

2019-10-14 Thread Aldian Fazrihady
4d7-4c1b-8422-f10bc01c598a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and s

Re: Django Admin templates not being overwritten by app templates

2019-11-10 Thread Aldian Fazrihady
visit > https://groups.google.com/d/msgid/django-users/c718299d-53f6-4e56-8976-a2040f3449ac%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/c718299d-53f6-4e56-8976-a2040f3449ac%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Aldian

Re: DRF UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6

2019-11-20 Thread Aldian Fazrihady
hread > self.handle_error(request, client_address) > File "C:\Python37\lib\site-packages\django\core\servers\basehttp.py", line > 73, in handle_error > super().handle_error(request, client_address) > File "C:\Python37\lib\socketserver.py", line 380, in

QuerySet.first() gives me unexpected result.

2019-11-22 Thread Aldian Fazrihady
ad of giving me the expected `12000`, it gives me `15000`. -- Regards, Aldian Fazrihady http://aldianfazrihady.com -- 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, se

Re: Suitable Frontend for Django Ract

2019-12-21 Thread Aldian Fazrihady
matwrial-ui Regards, Aldian Fazrihady http://aldianfazrihady.com Pada tanggal Min, 22 Des 2019 11.22, Balaji Shetty menulis: > Hi > > I want to know suitable frontend for Django. CURRENTLY I use bootstrap for > frontend. > > React or Angular or Vuejs or any other > >

  1   2   >