Using elastic beanstalk, I run the command manage.py collectstatic in a
.config file during deployment. The config file is located in the
.ebextensions
folder.
In settings.py
STATIC_URL = '/static/' STATIC_ROOT = 'static'
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python
An article I wrote on this topic last year for fellow developers at work
who were similarly confused.
HTH!
*Django - Statically Confusing*
I started learning Django several years ago (and am still doing so today!),
and for some time had a real sense of confusion as to how static files
worked. S
As a recent Django new user I was having a lot of trouble with static files
as well. Basically couldn't get Admin CSS to work.
We are using whitenoise now. Apparently that is helping solve the problem.
On Saturday, November 5, 2022 at 12:35:31 AM UTC-7 nishan...@gmail.com
wrote:
> Hi all,
>
>
On 05/11/2022 16.38, Balogun Awwal wrote:
I don’t understand what you mean
That you made a typo in your settings.
Using an editor that can highlight such mistakes can be quite
convenient. Not only would it have saved you from having to post a
question here, you wouldn't even have to (re)sta
It's literally there.
Vpziew in your middleware settings.
On Sat, 5 Nov 2022 at 23:07, Balogun Awwal wrote:
> everything was working perfectly befor until i installed django debug
> toolbar
> Exception in thread django-main-thread:
> Traceback (most recent call last):
> File
> "/home/leo/Docu
everything was working perfectly befor until i installed django debug
toolbar
Exception in thread django-main-thread:
Traceback (most recent call last):
File
"/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/module_loading.py",
line 30, in import_string
return cach
I want to show Location-region in v-select like mumbai-India.
How can I access region_name from response and How can I show in v-select .
You can use sebuckets to store your static files...
On Sat, Nov 5, 2022, 13:04 Nishant Sagar wrote:
> Hi all,
>
> I deployed the django project to AWS ec2 instance using nginx and gunicorn
> but the static file is not loading at all.
>
> Can someone suggest where did I do wrong?
>
> Note - I've
I had faced same problem but collectstatic worked for me,,
On Sat, 5 Nov, 2022, 1:15 pm Nishant Sagar, wrote:
> Hi Ashutosh,
>
> Yeah I tried that as well, still not working.
>
> On Sat, 5 Nov 2022 at 1:10 PM, Ashutosh Mishra <
> ashutoshmishra...@gmail.com> wrote:
>
>> Did you tried, python man
Hi Ashutosh,
Yeah I tried that as well, still not working.
On Sat, 5 Nov 2022 at 1:10 PM, Ashutosh Mishra
wrote:
> Did you tried, python manage.py collectstatic?
>
> On Sat, 5 Nov, 2022, 1:05 pm Nishant Sagar,
> wrote:
>
>> Hi all,
>>
>> I deployed the django project to AWS ec2 instance using
Did you tried, python manage.py collectstatic?
On Sat, 5 Nov, 2022, 1:05 pm Nishant Sagar, wrote:
> Hi all,
>
> I deployed the django project to AWS ec2 instance using nginx and gunicorn
> but the static file is not loading at all.
>
> Can someone suggest where did I do wrong?
>
> Note - I've no
Hi all,
I deployed the django project to AWS ec2 instance using nginx and gunicorn
but the static file is not loading at all.
Can someone suggest where did I do wrong?
Note - I've not created Profile before deploying
Here is my settings.py file
STATIC_URL = 'static/'
STATIC_ROOT = os.path.join(
12 matches
Mail list logo