Re: Memcache

2020-02-12 Thread maninder singh Kumar
So memcache for caching is the advised way to go for it.
It involves setting up setting.py for memcache, you would have to work out
locations on the computer where it would be stored.  Also strongly
advisable, don't cache all your site, just the : difficult parts,
reusable parts.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Tue, Feb 11, 2020 at 10:38 PM Soumen Khatua 
wrote:

> Hi Folks,
> Actually I want to implement memcache service into my project but I don't
> know How to implement it with proper scalability. If anyone have any idea
> or code snippet, please share with me.
>
> Thank you
>
> Regards,
> Soumen
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/CAPUw6WbsnhpajNaOFs1xd2f5%3DQ3wzqcRP2vXzrZxNShHPjY7bQ%40mail.gmail.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, 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/CABOHK3QzaL4mo_nYUEiL78wWfpKOCXf6K1jDSq--sxsRJfJPyA%40mail.gmail.com.


Unit Testing POST request

2020-02-12 Thread onlinejudge95
Hi Devs,

I was implementing unit-tests in my Django project and stumbled upon the
following issue.

I want to unit-test my POST route. I do not want to use the test client
already shipped with Django (using it in my e2e tests). I want to know how
do I prepare my request object to pass to my view. Here is what I have done
currently.

test_views.py

> class CreateBlogTest(BaseViewTest):

@classmethod
> def setUpClass(cls):
> cls.request.method = "POST"

def test_create_valid_blog(self):
> self.request.content_type = "application/json"
> self.request._body = json.dumps({"title": "new title", "body":
> "new body"})
>
> response = views.blog_collection(self.request)
> self.assertEqual(response.status_code, 201)
>

In my view, I am accessing the data through *request.data* and passing it
to a serializer.

In my current setting, I am getting a 400 error message when I have checked
that the user does not exist.

Any suggestions regarding the same?

Thanks,
onlinejudge95

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/CAD%3DM5eSYo5vSZc8SNGnCET-A10%2B%2Bz6q9j0vqy85TU6r0tE957A%40mail.gmail.com.


Re: Memcache

2020-02-12 Thread Infinity Developer
https://devcenter.heroku.com/articles/django-memcache

Refer this link

On Tue, Feb 11, 2020 at 10:37 PM Soumen Khatua 
wrote:

> Hi Folks,
> Actually I want to implement memcache service into my project but I don't
> know How to implement it with proper scalability. If anyone have any idea
> or code snippet, please share with me.
>
> Thank you
>
> Regards,
> Soumen
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/CAPUw6WbsnhpajNaOFs1xd2f5%3DQ3wzqcRP2vXzrZxNShHPjY7bQ%40mail.gmail.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, 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/CAJRbE36FqvxCVrurNzqPJrFUC4Jx0oGESq9nyBO8Fz0KkBKxVg%40mail.gmail.com.


Django images to pdf conversion

2020-02-12 Thread Infinity Programmer
Dear folks 

You have to easily know them

https://youtu.be/8IQuhH50bqc
https://youtu.be/8IQuhH50bqc

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/26f6cb68-4712-4b34-9998-06c7b2e2f91b%40googlegroups.com.


Re: field not editable after saving the first record

2020-02-12 Thread Infinity Programmer
https://youtu.be/8IQuhH50bqc
https://youtu.be/8IQuhH50bqc
https://youtu.be/8IQuhH50bqc
https://youtu.be/8IQuhH50bqc

Please refer this video

On Wednesday, January 15, 2020 at 11:04:25 PM UTC+5:30, Harold A wrote:
>
> Hi everyone
> I require your contributions to do the following.
>
> I have a form with some fields, what I need is that it allows saving the 
> first time but when the form is to be edited, it does not allow the editing 
> of the support field which is where a pdf file is loaded.
>
> try like this
>
> def __init__(self, *args, **kwargs):
> super(IngresoUtematicaForm, self).__init__(*args, **kwargs)
> self.fields['soportenota'].widget.attrs['disabled'] = 'disabled'
>
> but it blocks the field and does not allow saving from the first time
>
> I would appreciate your ideas and contributions to solve this problem.
>
> Thank you...
>

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/cb877783-05de-42d6-9893-22df34e8dc1a%40googlegroups.com.


Re: installation of django

2020-02-12 Thread Sathiya S
try

pip install --upgrade django


On Wed, Feb 12, 2020 at 1:00 PM paarull shukla 
wrote:

> Ok so virtual environment I have  to search in cmd or like google
>
> On Wed, 12 Feb, 2020, 12:50 PM Mehul Anshumali, <
> mehulanshumali...@gmail.com> wrote:
>
>> Try install virtual environment and in that install django.
>> You can search - setup Virtual environment and install django .
>>
>> On Tue, Feb 11, 2020, 9:43 PM paarull shukla 
>> wrote:
>>
>>> heloo guys i m not able to install django please help me it .i m facing
>>> issue last 10 days . i m getting collecting django after tht installation
>>> not started
>>>
>>> --
>>> 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 visit
>>> https://groups.google.com/d/msgid/django-users/879c4e25-5ff9-4858-bf6d-b794bef3aed7%40googlegroups.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, 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/CAL115XzmaW2V-qJbVX8YVWvyQm6_-F3e%3D%3DfKbpwYD8sB93EKbQ%40mail.gmail.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, 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/CACLQzse9WTVTopU9jHS2%3DE8OAYB9xW8_WWxVXXum7vyXyWAP8Q%40mail.gmail.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, 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/CA%2BvZhbMgNdg-roj%3D7j7JXwExEZu3DKAzwJ05HVO9YOvrBRhZEg%40mail.gmail.com.


Re: installation of django

2020-02-12 Thread Mehul Anshumali
Follow this link

https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/development_environment

On Wed, Feb 12, 2020, 1:00 PM paarull shukla 
wrote:

> Ok so virtual environment I have  to search in cmd or like google
>
> On Wed, 12 Feb, 2020, 12:50 PM Mehul Anshumali, <
> mehulanshumali...@gmail.com> wrote:
>
>> Try install virtual environment and in that install django.
>> You can search - setup Virtual environment and install django .
>>
>> On Tue, Feb 11, 2020, 9:43 PM paarull shukla 
>> wrote:
>>
>>> heloo guys i m not able to install django please help me it .i m facing
>>> issue last 10 days . i m getting collecting django after tht installation
>>> not started
>>>
>>> --
>>> 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 visit
>>> https://groups.google.com/d/msgid/django-users/879c4e25-5ff9-4858-bf6d-b794bef3aed7%40googlegroups.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, 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/CAL115XzmaW2V-qJbVX8YVWvyQm6_-F3e%3D%3DfKbpwYD8sB93EKbQ%40mail.gmail.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, 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/CACLQzse9WTVTopU9jHS2%3DE8OAYB9xW8_WWxVXXum7vyXyWAP8Q%40mail.gmail.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, 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/CAL115XwgV2DAG6rG2OTfNVhZC8nuhb5T1CXR7cRvzcbYUb5DAQ%40mail.gmail.com.


Re: AutoField & auto-incrementing

2020-02-12 Thread Bruckner de Villiers
Thanks Mike - I have just become cleverer.

Bruckner de Villiers
083 625 1086

On 2020/02/12, 09:55, "Mike Dewhirst"  wrote:

On 12/02/2020 6:11 pm, Bruckner de Villiers wrote:
> Mike,
> Clever.  The save function seems to write a string of the id.  So, 
self.formulation_no = "50-" + str(self.id) could also work?

Fact is you can do anything you like. Instead of what I showed you could 
call any method you care to write either before or after the super() 
call in model.save()

You can also use pre_save and post_save signals to do much the same thing.

Where I need to do such things my preference is a model save method 
which looks like this ...

def save(self, *args, **kwargs):
 self._pre_save()# stuff to be computed pre-save
 super().save(*args, **kwargs)
 self._post_save()   # stuff to be done after the save

Specifically, yes my requirement was to have a models.CharField so 
str(self.id) was the way to satisfy that.

Cheers

Mike

>
> Bruckner de Villiers
> +27 83 625 1086
>
> On 2020/02/12, 00:27, "Mike Dewhirst"  wrote:
>
>  On 11/02/2020 7:06 pm, Bruckner de Villiers wrote:
>  >
>  > Jason,
>  >
>  > Thank you.  I have changed the title of this mail.  If I have read 
the
>  > 10 year old ticket 8576 correctly, it seems to be a DB restriction 
and
>  > I imagine that there are good reasons for this.  However, then I 
don’t
>  > understand the purpose of the AutoField given the restrictions and
>  > that the Django documentation is somewhat ambiguous/vague.
>  >
>  > The options seem to be:
>  >
>  >   * Your uuid suggestion (which I have never worked with, but will
>  > explore)
>  >   * a function in the model that does the incrementing before
>  > committing – (anyone have some example code for this?).  The
>  > challenge would be to keep track of the last used ticket no.  I
>  > haven’t thought this through yet, but it does occur to me that 
one
>  > could use the id (maybe prefix the id with some starting 
digits)
>  > and write the record twice. Probably barking up the wrong tree.
>  >
>  
>  I have a need for a unique identifier in one of my models. I save 
the id
>  to a separate field in the same model. In my case I don't need to see
>  the value. It just needs to be unique and never change. It is used 
for
>  generating the equivalent of a bar-code in a different model.
>  
>   def save(self, *args, **kwargs):
>   if self.id:
>   if not self.formulation_no:
>   self.formulation_no = str(self.id)
>   super().save(*args, **kwargs)
>  
>  A downside to this is the formulation number stays blank until the 
next
>  save after creating the record. The upside is that the id isn't 
going to
>  change so uniqueness isn't lost. Another way of doing this is to copy
>  the id when it is first required and formulation_no is still blank.
>  
>  I have also been known to use a weird mechanism for user-resequencing
>  records in a display. In that case they are lesson sequences within a
>  course and question sequences within a lesson. I use floats and 
strings
>  in a pair of fields so if that is of interest just ask.
>  
>  Cheers
>  
>  Mike
>  
>  >  *
>  >
>  > Regards,
>  >
>  > Bruckner de Villiers
>  >
>  > +27 83 625 1086
>  >
>  > *From: * on behalf of Jason
>  > 
>  > *Reply to: *
>  > *Date: *Monday, 10 February 2020 at 14:55
>  > *To: *Django users 
>  > *Subject: *Re: Adding a verbose_name to id field
>  >
>  > Hmm.  TIL about https://code.djangoproject.com/ticket/8576
>  >
>  > Would a a uuid for this, rather than an integer?  If not, you'll 
have
>  > to implement a save override to handle the incrementing yourself.
>  >
>  > In addition, it might be worthwhile bringing this ticket up for
>  > discussion at 
https://groups.google.com/forum/#!forum/django-developers
>  >
>  > --
>  > 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 visit
>  > 
https://groups.google.com/d/msgid/django-users/dc

Images and pdfs for production level

2020-02-12 Thread Soumen Khatua
Hi Folks,
Where I need to store images and pdfs for production level.

Thank you in advance

regards,
Soumen

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/CAPUw6WY-jq3bbC%3DxnreXGMf8c0k_0TDb%3DXXG5Czc6kC_-Q%3D0aQ%40mail.gmail.com.


Re: AutoField & auto-incrementing

2020-02-12 Thread J. Guadalupe Chavez
El mar., 11 de febrero de 2020 4:27 p.m., Mike Dewhirst <
mi...@dewhirst.com.au> escribió:

> On 11/02/2020 7:06 pm, Bruckner de Villiers wrote:
> >
> > Jason,
> >
> > Thank you.  I have changed the title of this mail.  If I have read the
> > 10 year old ticket 8576 correctly, it seems to be a DB restriction and
> > I imagine that there are good reasons for this.  However, then I don’t
> > understand the purpose of the AutoField given the restrictions and
> > that the Django documentation is somewhat ambiguous/vague.
> >
> > The options seem to be:
> >
> >   * Your uuid suggestion (which I have never worked with, but will
> > explore)
> >   * a function in the model that does the incrementing before
> > committing – (anyone have some example code for this?).  The
> > challenge would be to keep track of the last used ticket no.  I
> > haven’t thought this through yet, but it does occur to me that one
> > could use the id (maybe prefix the id with some starting digits)
> > and write the record twice. Probably barking up the wrong tree.
> >
>
> I have a need for a unique identifier in one of my models. I save the id
> to a separate field in the same model. In my case I don't need to see
> the value. It just needs to be unique and never change. It is used for
> generating the equivalent of a bar-code in a different model.
>
>  def save(self, *args, **kwargs):
>  if self.id:
>  if not self.formulation_no:
>  self.formulation_no = str(self.id)
>  super().save(*args, **kwargs)
>
> A downside to this is the formulation number stays blank until the next
> save after creating the record. The upside is that the id isn't going to
> change so uniqueness isn't lost. Another way of doing this is to copy
> the id when it is first required and formulation_no is still blank.
>
> I have also been known to use a weird mechanism for user-resequencing
> records in a display. In that case they are lesson sequences within a
> course and question sequences within a lesson. I use floats and strings
> in a pair of fields so if that is of interest just ask.
>
> Cheers
>
> Mike
>
> >  *
> >
> > Regards,
> >
> > Bruckner de Villiers
> >
> > +27 83 625 1086
> >
> > *From: * on behalf of Jason
> > 
> > *Reply to: *
> > *Date: *Monday, 10 February 2020 at 14:55
> > *To: *Django users 
> > *Subject: *Re: Adding a verbose_name to id field
> >
> > Hmm.  TIL about https://code.djangoproject.com/ticket/8576
> >
> > Would a a uuid for this, rather than an integer?  If not, you'll have
> > to implement a save override to handle the incrementing yourself.
> >
> > In addition, it might be worthwhile bringing this ticket up for
> > discussion at https://groups.google.com/forum/#!forum/django-developers
> >
> > --
> > 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 visit
> >
> https://groups.google.com/d/msgid/django-users/dc686528-0a8d-43ff-9973-d478cc765959%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/django-users/dc686528-0a8d-43ff-9973-d478cc765959%40googlegroups.com?utm_medium=email&utm_source=footer
> >.
> >
> > --
> > 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 visit
> >
> https://groups.google.com/d/msgid/django-users/7C1BE52B-AFAE-4D38-9003-8A454A284A39%40gmail.com
> > <
> https://groups.google.com/d/msgid/django-users/7C1BE52B-AFAE-4D38-9003-8A454A284A39%40gmail.com?utm_medium=email&utm_source=footer
> >.
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/99dbcba0-22bd-7c1d-5fe6-68984353bfb1%40dewhirst.com.au
> .
>

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/CAAGnT0hafj5viY5bYw5HioFxGX6dMgCc3yVSZ2CPA_DkqYS4sA%40mail.gmail.com.


makemessages fails

2020-02-12 Thread Yves de Champlain
Hi

When I run 

django-admin makemessages -l fr

I get 

Traceback (most recent call last): 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
, line 323, in run_from_argv 

 self.execute(*args, **cmd_options) 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
, line 364, in execute 

 output = self.handle(*args, **options) 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/commands/makemessages.py"
, line 353, in handle 

 if self.settings_available: 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/utils/functional.py"
, line 80, in __get__ 

 res = instance.__dict__[self.name] = self.func(instance) 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/commands/makemessages.py"
, line 413, in settings_available 

 settings.LOCALE_PATHS 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
, line 79, in __getattr__ 

 self._setup(name) 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
, line 66, in _setup 

 self._wrapped = Settings(settings_module) 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
, line 157, in __init__ 

 mod = importlib.import_module(self.SETTINGS_MODULE) 

 File "/opt/miniconda3/envs/cert_tool/lib/python3.7/importlib/__init__.py", 
line 127, in import_module 

 return _bootstrap._gcd_import(name[level:], package, level) 

 File "", line 1006, in _gcd_import 

 File "", line 983, in _find_and_load 

 File "", line 953, in _find_and_load_unlocked 

 File "", line 219, in 
_call_with_frames_removed 

 File "", line 1006, in _gcd_import 

 File "", line 983, in _find_and_load 

 File "", line 953, in _find_and_load_unlocked 

 File "", line 219, in 
_call_with_frames_removed 

 File "", line 1006, in _gcd_import 

 File "", line 983, in _find_and_load 

 File "", line 965, in _find_and_load_unlocked 

ModuleNotFoundError: No module named 'config' 


During handling of the above exception, another exception occurred: 


Traceback (most recent call last): 

 File "/opt/miniconda3/envs/cert_tool/bin/django-admin", line 10, in 
 

 sys.exit(execute_from_command_line()) 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/__init__.py"
, line 381, in execute_from_command_line 

 utility.execute() 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/__init__.py"
, line 375, in execute 

 self.fetch_command(subcommand).run_from_argv(self.argv) 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
, line 336, in run_from_argv 

 connections.close_all() 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
, line 219, in close_all 

 for alias in self: 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
, line 213, in __iter__ 

 return iter(self.databases) 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/utils/functional.py"
, line 80, in __get__ 

 res = instance.__dict__[self.name] = self.func(instance) 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
, line 147, in databases 

 self._databases = settings.DATABASES 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
, line 79, in __getattr__ 

 self._setup(name) 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
, line 66, in _setup 

 self._wrapped = Settings(settings_module) 

 File 
"/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
, line 157, in __init__ 

 mod = importlib.import_module(self.SETTINGS_MODULE) 

 File "/opt/miniconda3/envs/cert_tool/lib/python3.7/importlib/__init__.py", 
line 127, in import_module 

 return _bootstrap._gcd_import(name[level:], package, level) 

 File "", line 1006, in _gcd_import 

 File "", line 983, in _find_and_load 

 File "", line 953, in _find_and_load_unlocked 

 File "", line 219, in 
_call_with_frames_removed 

 File "", line 1006, in _gcd_import 

 File "", line 983, in _find_and_load 

 File "", line 953, in _find_and_load_unlocked 

 File "", line 219, in 
_call_with_frames_removed 

 File "", line 1006, in _gcd_import 

 File "", line 983, in _find_and_load 

 File "", line 965, in _find_and_load_unlocked 

ModuleNotFoundError: No module named 'config'

"config" is the name of the root-level folder where my settings are.

Everything works OK : makemigrations, migrate, --version, help, runserver, 
... all except compilemessages that generates the same error.

Django 2.2.8


Thanks for any hint !

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" grou

Re: Images and pdfs for production level

2020-02-12 Thread Devender Kumar
Some CDN

On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, 
wrote:

> Hi Folks,
> Where I need to store images and pdfs for production level.
>
> Thank you in advance
>
> regards,
> Soumen
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/CAPUw6WY-jq3bbC%3DxnreXGMf8c0k_0TDb%3DXXG5Czc6kC_-Q%3D0aQ%40mail.gmail.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, 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/CALZ%3DbEL1tD5FwY27i8OgK4iYgcnmzbzE3-FtHAP4GFqNKGe2XA%40mail.gmail.com.


Looking for an Intern Position

2020-02-12 Thread Jin
Hi, everyone.
I've finished Django online course a few days ago and want to make it use 
in the industry.
If you are in search of an intern for your project, kindly drop me a 
message.
I will be fully available for next 2 months.
Thanks in advance

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/3c1f3659-7567-4bfd-ad8b-df628a974931%40googlegroups.com.


Re: Looking for an Intern Position

2020-02-12 Thread Anonymous Patel
Hey Jin
This is Raj Here you have posted about internship in django we have project
for you
Kindly reply if you are interested
Thank you

On Wed, 12 Feb, 2020, 9:48 PM Jin,  wrote:

> Hi, everyone.
> I've finished Django online course a few days ago and want to make it use
> in the industry.
> If you are in search of an intern for your project, kindly drop me a
> message.
> I will be fully available for next 2 months.
> Thanks in advance
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/3c1f3659-7567-4bfd-ad8b-df628a974931%40googlegroups.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, 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/CAF_9CivFoPNqtc691JwMfTeaE8-CCZg8FRmUdYfWKvybv0xv2A%40mail.gmail.com.


Re: makemessages fails

2020-02-12 Thread Yash Garg
Have you specified path to Locale directory in settings.py?

On Wednesday, February 12, 2020 at 7:51:53 PM UTC+5:30, Yves de Champlain 
wrote:
>
> Hi
>
> When I run 
>
> django-admin makemessages -l fr
>
> I get 
>
> Traceback (most recent call last): 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
> , line 323, in run_from_argv 
>
>  self.execute(*args, **cmd_options) 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
> , line 364, in execute 
>
>  output = self.handle(*args, **options) 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/commands/makemessages.py"
> , line 353, in handle 
>
>  if self.settings_available: 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/utils/functional.py"
> , line 80, in __get__ 
>
>  res = instance.__dict__[self.name] = self.func(instance) 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/commands/makemessages.py"
> , line 413, in settings_available 
>
>  settings.LOCALE_PATHS 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
> , line 79, in __getattr__ 
>
>  self._setup(name) 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
> , line 66, in _setup 
>
>  self._wrapped = Settings(settings_module) 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
> , line 157, in __init__ 
>
>  mod = importlib.import_module(self.SETTINGS_MODULE) 
>
>  File "/opt/miniconda3/envs/cert_tool/lib/python3.7/importlib/__init__.py"
> , line 127, in import_module 
>
>  return _bootstrap._gcd_import(name[level:], package, level) 
>
>  File "", line 1006, in _gcd_import 
>
>  File "", line 983, in _find_and_load 
>
>  File "", line 953, in 
> _find_and_load_unlocked 
>
>  File "", line 219, in 
> _call_with_frames_removed 
>
>  File "", line 1006, in _gcd_import 
>
>  File "", line 983, in _find_and_load 
>
>  File "", line 953, in 
> _find_and_load_unlocked 
>
>  File "", line 219, in 
> _call_with_frames_removed 
>
>  File "", line 1006, in _gcd_import 
>
>  File "", line 983, in _find_and_load 
>
>  File "", line 965, in 
> _find_and_load_unlocked 
>
> ModuleNotFoundError: No module named 'config' 
>
>
> During handling of the above exception, another exception occurred: 
>
>
> Traceback (most recent call last): 
>
>  File "/opt/miniconda3/envs/cert_tool/bin/django-admin", line 10, in 
>  
>
>  sys.exit(execute_from_command_line()) 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/__init__.py"
> , line 381, in execute_from_command_line 
>
>  utility.execute() 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/__init__.py"
> , line 375, in execute 
>
>  self.fetch_command(subcommand).run_from_argv(self.argv) 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
> , line 336, in run_from_argv 
>
>  connections.close_all() 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
> , line 219, in close_all 
>
>  for alias in self: 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
> , line 213, in __iter__ 
>
>  return iter(self.databases) 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/utils/functional.py"
> , line 80, in __get__ 
>
>  res = instance.__dict__[self.name] = self.func(instance) 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
> , line 147, in databases 
>
>  self._databases = settings.DATABASES 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
> , line 79, in __getattr__ 
>
>  self._setup(name) 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
> , line 66, in _setup 
>
>  self._wrapped = Settings(settings_module) 
>
>  File 
> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
> , line 157, in __init__ 
>
>  mod = importlib.import_module(self.SETTINGS_MODULE) 
>
>  File "/opt/miniconda3/envs/cert_tool/lib/python3.7/importlib/__init__.py"
> , line 127, in import_module 
>
>  return _bootstrap._gcd_import(name[level:], package, level) 
>
>  File "", line 1006, in _gcd_import 
>
>  File "", line 983, in _find_and_load 
>
>  File "", line 953, in 
> _find_and_load_unlocked 
>
>  File "", line 219, in 
> _call_with_frames_removed 
>
>  File "", line 1006, in _gcd_import 
>
>  File "", line 983, in _find_and_load 
>
>  File "", line 953, in 
> _find_and_load_unlocked 
>
>  File "", line 219, in 
> _call_with_frames_removed 
>
>  File "", line 1006, in _gcd_import 
>
>  File "", line 983, i

send django channels 2 messages to an individual user who might have more than one browser tab or device connected

2020-02-12 Thread Levent Engin
Hi all.
I want to send Channels2  messages to an individual user who might have
more than one browser tab or device connected.  How can I do that. In
documents it is said that "group_send"  structure  can be used. how can i
implement that?  Is there a sample code for this?

Best  Regards.

Levent

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/CANQNAiS6-CY2%3D2qDmc3Mcv7icKGLH0H4Hmm7ox0KVoc_L3HE%3DA%40mail.gmail.com.


Re: Unit Testing POST request

2020-02-12 Thread onlinejudge95
Hi Guys,

Any leads would be appreciated


On Wed, Feb 12, 2020 at 6:22 PM onlinejudge95 
wrote:

> Hi Devs,
>
> I was implementing unit-tests in my Django project and stumbled upon the
> following issue.
>
> I want to unit-test my POST route. I do not want to use the test client
> already shipped with Django (using it in my e2e tests). I want to know how
> do I prepare my request object to pass to my view. Here is what I have done
> currently.
>
> test_views.py
>
>> class CreateBlogTest(BaseViewTest):
>
> @classmethod
>> def setUpClass(cls):
>> cls.request.method = "POST"
>
> def test_create_valid_blog(self):
>> self.request.content_type = "application/json"
>> self.request._body = json.dumps({"title": "new title", "body":
>> "new body"})
>>
>> response = views.blog_collection(self.request)
>> self.assertEqual(response.status_code, 201)
>>
>
> In my view, I am accessing the data through *request.data* and passing it
> to a serializer.
>
> In my current setting, I am getting a 400 error message when I have
> checked that the user does not exist.
>
> Any suggestions regarding the same?
>
> Thanks,
> onlinejudge95
>

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/CAD%3DM5eS3nFRxHm_aSqSt8YxFhaZGahF%3DP6Uj0Zco7wafM1%2BHOQ%40mail.gmail.com.


Re: Unit Testing POST request

2020-02-12 Thread onlinejudge95
On Wed, Feb 12, 2020 at 6:22 PM onlinejudge95 
wrote:

> Hi Devs,
>
> I was implementing unit-tests in my Django project and stumbled upon the
> following issue.
>
> I want to unit-test my POST route. I do not want to use the test client
> already shipped with Django (using it in my e2e tests). I want to know how
> do I prepare my request object to pass to my view. Here is what I have done
> currently.
>
> test_views.py
>
>> class CreateBlogTest(BaseViewTest):
>
> @classmethod
>> def setUpClass(cls):
>> cls.request.method = "POST"
>
> def test_create_valid_blog(self):
>> self.request.content_type = "application/json"
>> self.request._body = json.dumps({"title": "new title", "body":
>> "new body"})
>>
>> response = views.blog_collection(self.request)
>> self.assertEqual(response.status_code, 201)
>>
>
> In my view, I am accessing the data through *request.data* and passing it
> to a serializer.
>
> In my current setting, I am getting a 400 error message when I have
> checked that the user does not exist.
>
> Any suggestions regarding the same?
>
> Thanks,
> onlinejudge95
>

In case if someone needs it in the future, go and look at
*django.test.RequestFactory *
https://docs.djangoproject.com/en/3.0/topics/testing/advanced/#django.test.RequestFactory

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/CAD%3DM5eTN3M5iAEvkPoB1fAi%3Du%3DOAXv8kr7S51HmaBsNd8Tubyg%40mail.gmail.com.


filter objects dynamically on page render based on button click (beginner question)

2020-02-12 Thread Phil Kauffman
Hello, I am struggling with trying to filter child objects based on parent 
object selection on index.html (sites.html in example). On my sites.html, I 
list the office sites and a button to click for each, upon clicking I want 
to load the profile list for users only at that site, presently it's 
loading all profiles for all sites, which I assume is because the profiles 
are loaded statically no matter which button is clicked on sites.html.

I'm thinking I need a JS onclick event? 

models.py:
class Site(models.Model):

name = models.CharField(max_length=50)
date = models.DateField()
manager = models.CharField(max_length=50)

def save(self, *args, **kwargs):
super(Site, self).save(*args, **kwargs)
 
class Profile(models.Model):
Days = '1st'
Mids = '2nd'
Nights = '3rd'
Work_Schedule_Choices = [
  (Days, 'Day Shift'),
  (Mids, 'Mid Shift'),
  (Nights, 'Night Shift'),
]   
sitename = models.ForeignKey(Site, on_delete=models.CASCADE)
title = models.CharField(max_length=100)
schedule = models.CharField(max_length=3,choices=Work_Schedule_Choices,
default=Days)
totalusers = models.PositiveSmallIntegerField(default=1, validators=[
MinValueValidator(1), MaxValueValidator(50)])



views.py:
def sites(request):
sitelist = Site.objects.all()
return render (request, 'App/sites.html', {'sitelist' : sitelist})

def sitedetail(request):
site = Site.objects.filter()
if request.method == 'GET':
return render(request, 'App/site-detail.html', {'site': site, 
'profile_set': Profile.objects.all()})


sites.html (index)
{% extends 'App\base.html' %}
{% load crispy_forms_tags %}
{% block title %}Site Home{% endblock %}
{% block content %}
{% for Site in sitelist %}


{{ Site.name }}
View
  

{% empty %}

  Sorry, you haven't created any sites yet.
  
Add Site
Add Site
  

{% endfor %}
  
{% endblock %}


site-detail.html
{% extends 'App\base.html' %}
{% load crispy_forms_tags %}
{% block title %}Site Detail{% endblock %}
{% block content %}
This web form sucks
 
  {% for profile in profile_set  %}
  {{ profile.title }}
  {% endfor %}
 
{% endblock %}






-- 
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 visit 
https://groups.google.com/d/msgid/django-users/b4bd97c3-1a36-436d-823a-b4f7003a29d0%40googlegroups.com.


Re: AutoField & auto-incrementing

2020-02-12 Thread Mike Dewhirst

On 12/02/2020 6:54 pm, Mike Dewhirst wrote:

def save(self, *args, **kwargs):
    self._pre_save()    # stuff to be computed pre-save
    super().save(*args, **kwargs)
    self._post_save()   # stuff to be done after the save


Also of occasional value ...

def save(self, *args, **kwargs):
    whatever = self._pre_save()    # returns something needed by 
_post_save()

    super().save(*args, **kwargs)
    self._post_save(whatever)  # gets input across the super () 
boundary


Cheers

Mike


--
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 visit 
https://groups.google.com/d/msgid/django-users/c012d154-fb3a-046a-5e48-0a9d838e2119%40dewhirst.com.au.


404 error

2020-02-12 Thread mahshid asadi
Hi everyone. Im a beginner. i use this sites tutorial and still i cant fix 
the 404 error,please someone help me.

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/d7ce0e72-20a3-40eb-9f9c-a910389b09f0%40googlegroups.com.


Re: 404 error

2020-02-12 Thread Jorge Gimeno
On Wed, Feb 12, 2020 at 2:29 PM mahshid asadi 
wrote:

> Hi everyone. Im a beginner. i use this sites tutorial and still i cant fix
> the 404 error,please someone help me.
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/d7ce0e72-20a3-40eb-9f9c-a910389b09f0%40googlegroups.com
> 
> .
>

Errors are frustrating!  As much as we may want to, we can't help without
some further information.  Since a 404 indicates that the page cannot be
found, we need at minimum the urls.py files involved.  Also, the traceback
in the terminal would be useful.  Cut and paste, please.  This list strips
attachments.

-Jorge

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/CANfN%3DK9yc%2BUvdn%2B4MTf4rKPk3A%2Bh7ARGBHp1dAMpJ0GquCRDHw%40mail.gmail.com.


Re: filter objects dynamically on page render based on button click (beginner question)

2020-02-12 Thread Bill Freeman
What happens in the browser stays in the browser, unless you do something
about it.

Forgive me if I'm being too basic below:

There are three approaches to click and see a filtering change, with trade
offs in performance, complexity, and the impact if the user's browser is on
a humble box.

   1. When the user clicks, it's on a link, and you reload the page with
   the filter applied.  No JavaScript required.  Pretty slow.  more network
   load, more browser load, and more load on the server.  (I'm not going into
   the old approach of having an iframe and the link reloads the iframe
   because iframes are tricky, and if you're showing a big table, it's most of
   the page anyway.)  Do be sure that your images, CSS files, and JavaScript
   files are set to encourage the browser and/or the network to cache them,
   but the HTML will load every time, and the URL will likely show the filter
   settings (though you can do things with cookies and/or session store, but
   you will surprise your users someday.
   2. Load all the data in the first place, and use JavaScript in
   combination with CSS to hide the stuff that's filtered out.  If you go this
   way, do arrange to use CSS controlled by a class on a single containing
   element to control visibility, because doing big DOM modifications in
   JavaScript performs poorly.  This is the snappiest approach, but you have
   to have loaded everything, at cost of network and server load, even if you
   expect the user to filter later, and at the cost of RAM in the browser.  If
   the data's not that big, this is fine.  But if it's the catalog of a
   hardware chain or something else huge, you probably be doing it in pages.
   Sometimes it's natural.  For example, I once did and event calendar for a
   school system.  I loaded a month at a time, and filtering within the month
   was peppy, but to go to a different month required a reload, and you
   couldn't show stuff from multiple months at one time.
   3. Use an AJAX request to replace part of the DOM with filtered data.
   (The iframe hack is very much like this.)  If the data is most of your
   page, this isn't much more light weight than option 1, but the user doesn't
   see the page reload, which seems to count for style points.

There are JavaScript "frameworks" (e.g. VueJS) that will help you with 2
and especially 3, but you have to learn how to use the framework, and how
to connect it to Django.  Those are useful things to learn, but they're not
overnight reads, and can have performance pitfalls.

Good luck, Bill

On Wed, Feb 12, 2020 at 3:17 PM Phil Kauffman 
wrote:

> Hello, I am struggling with trying to filter child objects based on parent
> object selection on index.html (sites.html in example). On my sites.html, I
> list the office sites and a button to click for each, upon clicking I want
> to load the profile list for users only at that site, presently it's
> loading all profiles for all sites, which I assume is because the profiles
> are loaded statically no matter which button is clicked on sites.html.
>
> I'm thinking I need a JS onclick event?
>
> models.py:
> class Site(models.Model):
>
> name = models.CharField(max_length=50)
> date = models.DateField()
> manager = models.CharField(max_length=50)
>
> def save(self, *args, **kwargs):
> super(Site, self).save(*args, **kwargs)
>
> class Profile(models.Model):
> Days = '1st'
> Mids = '2nd'
> Nights = '3rd'
> Work_Schedule_Choices = [
>   (Days, 'Day Shift'),
>   (Mids, 'Mid Shift'),
>   (Nights, 'Night Shift'),
> ]
> sitename = models.ForeignKey(Site, on_delete=models.CASCADE)
> title = models.CharField(max_length=100)
> schedule = models.CharField(max_length=3,choices=Work_Schedule_Choices
> ,default=Days)
> totalusers = models.PositiveSmallIntegerField(default=1, validators=[
> MinValueValidator(1), MaxValueValidator(50)])
>
>
>
> views.py:
> def sites(request):
> sitelist = Site.objects.all()
> return render (request, 'App/sites.html', {'sitelist' : sitelist})
>
> def sitedetail(request):
> site = Site.objects.filter()
> if request.method == 'GET':
> return render(request, 'App/site-detail.html', {'site': site,
> 'profile_set': Profile.objects.all()})
>
>
> sites.html (index)
> {% extends 'App\base.html' %}
> {% load crispy_forms_tags %}
> {% block title %}Site Home{% endblock %}
> {% block content %}
> {% for Site in sitelist %}
> 
> 
> {{ Site.name }}
> View
>   
> 
> {% empty %}
> 
>   Sorry, you haven't created any sites yet.
>   
> Add Site
> Add Site
>   
> 
> {% endfor %}
>   
> {% endblock %}
>
>
> site-detail.html
> {% extends 'App\base.html' %}
> {% load crispy_forms_tags %}
> {% block title %}Site Detail{% endblock %}
> {% block content %}
> This web form sucks
>  
>   {% for profile in profile_set  %}
>   {{ profile.title }}
>   {% endfor %}
>  
> {% endblock 

Re: installation of django

2020-02-12 Thread Dimitri Forster
Hey Paarul,

The problem is that you are trying to call pip from the command prompt
directly.
Try *py -m pip install django* and it should work.

Better yet you could:

   1. first create a new directory in a location of your choice ; >* md
   directory_name*
   2. Go to the newly created directory; >* cd directory_name*
   3. Create a virtual environment to test everything in a sandbox
   environment: > *py -m venv .venv*
   4. Activate the virtual environment: > *.venv\Scripts\activate*
   5. Install any python package with pip directly: venv > *pip install
   python_package* (example: *pip install django*)
   6. Start a new dango project: .venv >* django-admin startproject
   your_project_name*

Met vriendelijke groeten | Kind regards,

Dimitri Forster


On Tue, Feb 11, 2020 at 1:14 PM paarull shukla 
wrote:

> heloo guys i m not able to install django please help me it .i m facing
> issue last 10 days . i m getting collecting django after tht installation
> not started
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/879c4e25-5ff9-4858-bf6d-b794bef3aed7%40googlegroups.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, 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/CAAVjHbNGJoUk4RY-rQgF8j5ofqsZXBt1BxACH%3D45wZCk-zd%2Bjw%40mail.gmail.com.


Re: 404 error

2020-02-12 Thread Chucky Mada Madamombe
Hi,

404 error means Django searched your urls.py file and cannot find the
requested page. Take screen shot of your urls.py and views.py and
traceback. That may help us to figure out the problem.

Regards

Chuck G. Madamombe
NAM: +264 81 842 1284
RSA: +27 78 208 7034
Twitter: @chuckygari
Skype: chuckygari
Facebook: Chucky Mada Madamombe
LinkedIn: Chucknorris Garikayi Madamombe

On Thu, 13 Feb 2020, 00:29 mahshid asadi  wrote:

> Hi everyone. Im a beginner. i use this sites tutorial and still i cant fix
> the 404 error,please someone help me.
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/d7ce0e72-20a3-40eb-9f9c-a910389b09f0%40googlegroups.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, 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/CAJaKOsdXX5Ronp9orv0%2B1uHNa%3Dg0_-jdSVwk34j33T-G6K_9EA%40mail.gmail.com.


Re: makemessages fails

2020-02-12 Thread Yves de Champlain
Hi

I have

ROOT_DIR = environ.Path(__file__) - 3  # 
(base_dir/config/settings/common.py - 3 = base_dir/)
PROJ_DIR = ROOT_DIR

LOCALE_PATHS = [
PROJ_DIR('locale'),
]

Could it be the source of the problem ?

Thanks !



Le mercredi 12 février 2020 12:53:06 UTC-5, Yash Garg a écrit :
>
> Have you specified path to Locale directory in settings.py?
>
> On Wednesday, February 12, 2020 at 7:51:53 PM UTC+5:30, Yves de Champlain 
> wrote:
>>
>> Hi
>>
>> When I run 
>>
>> django-admin makemessages -l fr
>>
>> I get 
>>
>> Traceback (most recent call last): 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
>> , line 323, in run_from_argv 
>>
>>  self.execute(*args, **cmd_options) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
>> , line 364, in execute 
>>
>>  output = self.handle(*args, **options) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/commands/makemessages.py"
>> , line 353, in handle 
>>
>>  if self.settings_available: 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/utils/functional.py"
>> , line 80, in __get__ 
>>
>>  res = instance.__dict__[self.name] = self.func(instance) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/commands/makemessages.py"
>> , line 413, in settings_available 
>>
>>  settings.LOCALE_PATHS 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>> , line 79, in __getattr__ 
>>
>>  self._setup(name) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>> , line 66, in _setup 
>>
>>  self._wrapped = Settings(settings_module) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>> , line 157, in __init__ 
>>
>>  mod = importlib.import_module(self.SETTINGS_MODULE) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/importlib/__init__.py", 
>> line 127, in import_module 
>>
>>  return _bootstrap._gcd_import(name[level:], package, level) 
>>
>>  File "", line 1006, in _gcd_import 
>>
>>  File "", line 983, in _find_and_load 
>>
>>  File "", line 953, in 
>> _find_and_load_unlocked 
>>
>>  File "", line 219, in 
>> _call_with_frames_removed 
>>
>>  File "", line 1006, in _gcd_import 
>>
>>  File "", line 983, in _find_and_load 
>>
>>  File "", line 953, in 
>> _find_and_load_unlocked 
>>
>>  File "", line 219, in 
>> _call_with_frames_removed 
>>
>>  File "", line 1006, in _gcd_import 
>>
>>  File "", line 983, in _find_and_load 
>>
>>  File "", line 965, in 
>> _find_and_load_unlocked 
>>
>> ModuleNotFoundError: No module named 'config' 
>>
>>
>> During handling of the above exception, another exception occurred: 
>>
>>
>> Traceback (most recent call last): 
>>
>>  File "/opt/miniconda3/envs/cert_tool/bin/django-admin", line 10, in 
>>  
>>
>>  sys.exit(execute_from_command_line()) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/__init__.py"
>> , line 381, in execute_from_command_line 
>>
>>  utility.execute() 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/__init__.py"
>> , line 375, in execute 
>>
>>  self.fetch_command(subcommand).run_from_argv(self.argv) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
>> , line 336, in run_from_argv 
>>
>>  connections.close_all() 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
>> , line 219, in close_all 
>>
>>  for alias in self: 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
>> , line 213, in __iter__ 
>>
>>  return iter(self.databases) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/utils/functional.py"
>> , line 80, in __get__ 
>>
>>  res = instance.__dict__[self.name] = self.func(instance) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
>> , line 147, in databases 
>>
>>  self._databases = settings.DATABASES 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>> , line 79, in __getattr__ 
>>
>>  self._setup(name) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>> , line 66, in _setup 
>>
>>  self._wrapped = Settings(settings_module) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>> , line 157, in __init__ 
>>
>>  mod = importlib.import_module(self.SETTINGS_MODULE) 
>>
>>  File 
>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/importlib/__init__.py", 
>> line 127, in import_module 
>>
>>  return _bootstrap._gcd_import(name[level:], p

Re: makemessages fails

2020-02-12 Thread Yash Garg
Go through i18n official documentation and specify path according to that.

On Thu 13 Feb, 2020, 10:25 AM Yves de Champlain,  wrote:

> Hi
>
> I have
>
> ROOT_DIR = environ.Path(__file__) - 3  #
> (base_dir/config/settings/common.py - 3 = base_dir/)
> PROJ_DIR = ROOT_DIR
>
> LOCALE_PATHS = [
> PROJ_DIR('locale'),
> ]
>
> Could it be the source of the problem ?
>
> Thanks !
>
>
>
> Le mercredi 12 février 2020 12:53:06 UTC-5, Yash Garg a écrit :
>>
>> Have you specified path to Locale directory in settings.py?
>>
>> On Wednesday, February 12, 2020 at 7:51:53 PM UTC+5:30, Yves de Champlain
>> wrote:
>>>
>>> Hi
>>>
>>> When I run
>>>
>>> django-admin makemessages -l fr
>>>
>>> I get
>>>
>>> Traceback (most recent call last):
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
>>> , line 323, in run_from_argv
>>>
>>>  self.execute(*args, **cmd_options)
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
>>> , line 364, in execute
>>>
>>>  output = self.handle(*args, **options)
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/commands/makemessages.py"
>>> , line 353, in handle
>>>
>>>  if self.settings_available:
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/utils/functional.py"
>>> , line 80, in __get__
>>>
>>>  res = instance.__dict__[self.name] = self.func(instance)
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/commands/makemessages.py"
>>> , line 413, in settings_available
>>>
>>>  settings.LOCALE_PATHS
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>>> , line 79, in __getattr__
>>>
>>>  self._setup(name)
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>>> , line 66, in _setup
>>>
>>>  self._wrapped = Settings(settings_module)
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>>> , line 157, in __init__
>>>
>>>  mod = importlib.import_module(self.SETTINGS_MODULE)
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/importlib/__init__.py",
>>> line 127, in import_module
>>>
>>>  return _bootstrap._gcd_import(name[level:], package, level)
>>>
>>>  File "", line 1006, in _gcd_import
>>>
>>>  File "", line 983, in _find_and_load
>>>
>>>  File "", line 953, in
>>> _find_and_load_unlocked
>>>
>>>  File "", line 219, in
>>> _call_with_frames_removed
>>>
>>>  File "", line 1006, in _gcd_import
>>>
>>>  File "", line 983, in _find_and_load
>>>
>>>  File "", line 953, in
>>> _find_and_load_unlocked
>>>
>>>  File "", line 219, in
>>> _call_with_frames_removed
>>>
>>>  File "", line 1006, in _gcd_import
>>>
>>>  File "", line 983, in _find_and_load
>>>
>>>  File "", line 965, in
>>> _find_and_load_unlocked
>>>
>>> ModuleNotFoundError: No module named 'config'
>>>
>>>
>>> During handling of the above exception, another exception occurred:
>>>
>>>
>>> Traceback (most recent call last):
>>>
>>>  File "/opt/miniconda3/envs/cert_tool/bin/django-admin", line 10, in
>>> 
>>>
>>>  sys.exit(execute_from_command_line())
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/__init__.py"
>>> , line 381, in execute_from_command_line
>>>
>>>  utility.execute()
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/__init__.py"
>>> , line 375, in execute
>>>
>>>  self.fetch_command(subcommand).run_from_argv(self.argv)
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py"
>>> , line 336, in run_from_argv
>>>
>>>  connections.close_all()
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
>>> , line 219, in close_all
>>>
>>>  for alias in self:
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
>>> , line 213, in __iter__
>>>
>>>  return iter(self.databases)
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/utils/functional.py"
>>> , line 80, in __get__
>>>
>>>  res = instance.__dict__[self.name] = self.func(instance)
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py"
>>> , line 147, in databases
>>>
>>>  self._databases = settings.DATABASES
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>>> , line 79, in __getattr__
>>>
>>>  self._setup(name)
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>>> , line 66, in _setup
>>>
>>>  self._wrapped = Settings(settings_module)
>>>
>>>  File
>>> "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py"
>>> , line 

Re: installation of django

2020-02-12 Thread paarull shukla
Sir please help me out. I m not able to install it.. Getting trouble  since
5 days back

On Thu, 13 Feb, 2020, 5:29 AM Dimitri Forster, 
wrote:

> Hey Paarul,
>
> The problem is that you are trying to call pip from the command prompt
> directly.
> Try *py -m pip install django* and it should work.
>
> Better yet you could:
>
>1. first create a new directory in a location of your choice ; >* md
>directory_name*
>2. Go to the newly created directory; >* cd directory_name*
>3. Create a virtual environment to test everything in a sandbox
>environment: > *py -m venv .venv*
>4. Activate the virtual environment: > *.venv\Scripts\activate*
>5. Install any python package with pip directly: venv > *pip install
>python_package* (example: *pip install django*)
>6. Start a new dango project: .venv >* django-admin startproject
>your_project_name*
>
> Met vriendelijke groeten | Kind regards,
>
> Dimitri Forster
>
>
> On Tue, Feb 11, 2020 at 1:14 PM paarull shukla <
> shukla.paarull...@gmail.com> wrote:
>
>> heloo guys i m not able to install django please help me it .i m facing
>> issue last 10 days . i m getting collecting django after tht installation
>> not started
>>
>> --
>> 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 visit
>> https://groups.google.com/d/msgid/django-users/879c4e25-5ff9-4858-bf6d-b794bef3aed7%40googlegroups.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, 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/CAAVjHbNGJoUk4RY-rQgF8j5ofqsZXBt1BxACH%3D45wZCk-zd%2Bjw%40mail.gmail.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, 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/CACLQzseTvirGVKSpUCS9tUv9MiqX2FRJMwi1O8Amv5XfDiSzBQ%40mail.gmail.com.


Re: Looking for an Intern Position

2020-02-12 Thread paarull shukla
Heloo sir.  I m looking for intern.. Please help me.. I want to  start my
carrier.. Please help me.. I will be very thankful to you

On Wed, 12 Feb, 2020, 11:06 PM Anonymous Patel, 
wrote:

> Hey Jin
> This is Raj Here you have posted about internship in django we have
> project for you
> Kindly reply if you are interested
> Thank you
>
> On Wed, 12 Feb, 2020, 9:48 PM Jin,  wrote:
>
>> Hi, everyone.
>> I've finished Django online course a few days ago and want to make it use
>> in the industry.
>> If you are in search of an intern for your project, kindly drop me a
>> message.
>> I will be fully available for next 2 months.
>> Thanks in advance
>>
>> --
>> 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 visit
>> https://groups.google.com/d/msgid/django-users/3c1f3659-7567-4bfd-ad8b-df628a974931%40googlegroups.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, 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/CAF_9CivFoPNqtc691JwMfTeaE8-CCZg8FRmUdYfWKvybv0xv2A%40mail.gmail.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, 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/CACLQzsewc%3Du%2BDUwS89dLxNmCG7saHdJxB9Z5J61XPxy-eSd-1A%40mail.gmail.com.


Re: Looking for an Intern Position

2020-02-12 Thread paarull shukla
Heloo, sir I m looking for intern. Please help me..i will be very thankful
to you

On Wed, 12 Feb, 2020, 9:48 PM Jin,  wrote:

> Hi, everyone.
> I've finished Django online course a few days ago and want to make it use
> in the industry.
> If you are in search of an intern for your project, kindly drop me a
> message.
> I will be fully available for next 2 months.
> Thanks in advance
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/3c1f3659-7567-4bfd-ad8b-df628a974931%40googlegroups.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, 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/CACLQzsdhzR-CzSFFrkc1-z3gYJAr2Wp%3D00_9SzL0j1r9P%2BGcvQ%40mail.gmail.com.


Re: AutoField & auto-incrementing

2020-02-12 Thread Bruckner de Villiers
Useful, thanks Mike.

Bruckner de Villiers
083 625 1086

On 2020/02/12, 23:18, "Mike Dewhirst"  wrote:

On 12/02/2020 6:54 pm, Mike Dewhirst wrote:
> def save(self, *args, **kwargs):
> self._pre_save()# stuff to be computed pre-save
> super().save(*args, **kwargs)
> self._post_save()   # stuff to be done after the save

Also of occasional value ...

def save(self, *args, **kwargs):
 whatever = self._pre_save()# returns something needed by 
_post_save()
 super().save(*args, **kwargs)
 self._post_save(whatever)  # gets input across the super () 
boundary

Cheers

Mike


-- 
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 visit 
https://groups.google.com/d/msgid/django-users/c012d154-fb3a-046a-5e48-0a9d838e2119%40dewhirst.com.au.



-- 
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 visit 
https://groups.google.com/d/msgid/django-users/AF58CFD3-61EC-4399-BA00-4FD7CE2C7496%40gmail.com.


Django Hands On with Industry Oriented application

2020-02-12 Thread Saswat Ray
Hi,

I am starting a new online batch to make student or professional to learn
this most sought after web development experience.Let me know if anyone
interested.Its a weekend online paid session.After successfully completed
the session with task, i can refer candidates to my connections(please note
i am not guarantee any job, i will help candidate to make right decision
and make them industry ready).


*Thanks*,
*Saswat*

https://www.linkedin.com/in/saswat-ray-27313316/
https://www.quora.com/profile/Saswat-Ray
https://github.com/raysaswat

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/CAEhPkLHPJM3-umuZs45GOviCPXdziVOCd%2BsnaHxHjLw-Jr2VaA%40mail.gmail.com.


Re: Django Hands On with Industry Oriented application

2020-02-12 Thread paarull shukla
Heloo sir I want to join ur session please let me know how much charge I
have to make and where.

On Thu, 13 Feb, 2020, 11:50 AM Saswat Ray,  wrote:

> Hi,
>
> I am starting a new online batch to make student or professional to learn
> this most sought after web development experience.Let me know if anyone
> interested.Its a weekend online paid session.After successfully completed
> the session with task, i can refer candidates to my connections(please note
> i am not guarantee any job, i will help candidate to make right decision
> and make them industry ready).
>
>
> *Thanks*,
> *Saswat*
>
> https://www.linkedin.com/in/saswat-ray-27313316/
> https://www.quora.com/profile/Saswat-Ray
> https://github.com/raysaswat
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/CAEhPkLHPJM3-umuZs45GOviCPXdziVOCd%2BsnaHxHjLw-Jr2VaA%40mail.gmail.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, 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/CACLQzsc0wbtrCpJy_%3DR6%2BiaE89bSwuym7CdHqhyh_79cM%2BcM%2BA%40mail.gmail.com.


Re: Images and pdfs for production level

2020-02-12 Thread Soumen Khatua
Yes,I want to use CDN for my static files. But I don't know how to
implement it.

On Wed, Feb 12, 2020 at 9:04 PM Devender Kumar  wrote:

> Some CDN
>
> On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, 
> wrote:
>
>> Hi Folks,
>> Where I need to store images and pdfs for production level.
>>
>> Thank you in advance
>>
>> regards,
>> Soumen
>>
>> --
>> 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 visit
>> https://groups.google.com/d/msgid/django-users/CAPUw6WY-jq3bbC%3DxnreXGMf8c0k_0TDb%3DXXG5Czc6kC_-Q%3D0aQ%40mail.gmail.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, 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/CALZ%3DbEL1tD5FwY27i8OgK4iYgcnmzbzE3-FtHAP4GFqNKGe2XA%40mail.gmail.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, 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/CAPUw6WZEzjT7nz3mVWyacLUs8k4C8jZBfmDOi-CPWEkJvTziXg%40mail.gmail.com.


Re: Django Hands On with Industry Oriented application

2020-02-12 Thread Saswat Ray
Please contact to 8885505922 for detail or direct mail me your contact
number

*Thanks*,
*Saswat*

https://www.linkedin.com/in/saswat-ray-27313316/
https://www.quora.com/profile/Saswat-Ray



On Thu, Feb 13, 2020 at 12:30 PM paarull shukla 
wrote:

> Heloo sir I want to join ur session please let me know how much charge I
> have to make and where.
>
> On Thu, 13 Feb, 2020, 11:50 AM Saswat Ray,  wrote:
>
>> Hi,
>>
>> I am starting a new online batch to make student or professional to learn
>> this most sought after web development experience.Let me know if anyone
>> interested.Its a weekend online paid session.After successfully completed
>> the session with task, i can refer candidates to my connections(please note
>> i am not guarantee any job, i will help candidate to make right decision
>> and make them industry ready).
>>
>>
>> *Thanks*,
>> *Saswat*
>>
>> https://www.linkedin.com/in/saswat-ray-27313316/
>> https://www.quora.com/profile/Saswat-Ray
>> https://github.com/raysaswat
>>
>> --
>> 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 visit
>> https://groups.google.com/d/msgid/django-users/CAEhPkLHPJM3-umuZs45GOviCPXdziVOCd%2BsnaHxHjLw-Jr2VaA%40mail.gmail.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, 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/CACLQzsc0wbtrCpJy_%3DR6%2BiaE89bSwuym7CdHqhyh_79cM%2BcM%2BA%40mail.gmail.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, 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/CAEhPkLGWxxQd24Jm4XAk1E_-%2BLHdjVtTrqNv5hri3v8ZdGutjg%40mail.gmail.com.