inchidi
nothing coming out!
what OS you are using?
Anonymous
mac
inchidi
then try log in to django shell and run this import os print(os.environ['DJANGO_SETTINGS_MODULE'])
Zed
HI DJANGO DEVELOPERS. I JUST MOVED TO DJANGO. SO I AM HAVING AN ERROR WHILE STARTING NEW DJANGO PROJECT.
Zed
COULD ANYONE HELP ME TO FIX IT.
Zed
so when I run: python manage.py migrate
Zed
command it returns error below
Jamshidjon
for this kind of simple stuff u can use google instead
Zed
I googled but found nothing
Mirco
Jamshidjon
maybe this is simple for u
sorry, i supposed it's just a simple error
Станислав
Hey everybody! did anyone do i18n for client? i have an frontend based on reactjs and i need to introduce a translation
Anonymous
that sounds like some guy just asked me how to open a can
Станислав
Django i18n ?
Should I get it via api?
Станислав
In my case I have to be able to update this in admin using rosetta or smth else
Mirco
Should I get it via api?
Have a look here if you are using DRF to expose apis http://www.django-rest-framework.org/topics/internationalization/
Станислав
Nooo)) I have texts in react app like agreement, privacy, or single words like “login” or “signup”
Станислав
I have to translate react app but I want to update texts in Django admin.
Jimmies San
you need to do this on react
Jimmies San
if text for this pages in generated by backend
Jimmies San
you need to do this on django
Станислав
you need to do this on react
But how can I easily edit it?
Jimmies San
But how can I easily edit it?
idk react, i'm not a fronteneder, sorry :\
Jimmies San
maybe this? https://github.com/i18next/react-i18next
Jimmies San
So am I)
so, talk with your frontender about this issue and evaluate with him
Leonardo
guys, which bootstrap files mut i install in my base.html? just bootstrap.min.css and bootstrap.min.js?
Jimmies San
put bootstrap on static dir, or link it from internet cdn then load inside template where needed
Leonardo
@JimmySan yes, i know how to configure static_files dir, but idk which of them i really need to call
Станислав
so, talk with your frontender about this issue and evaluate with him
I am looking for different ways and this package is one of my ideas... well, I will discuss it
Jimmies San
'cause some feature are on css but work only with js too
Станислав
@JimmySan thanks)
Jimmies San
Combot
Jimmie San Karming Karma (4) has increased reputation of Станислав Казанцев (1)
Leonardo
uhum, but i'm talking about that
Jimmies San
oooh i'm full of karma!!! :D
Leonardo
i have a bunch of them
Leonardo
all of css files are inside of bootstrap.min.css?
Станислав
Jimmies San
you need to load them
Leonardo
all of them??? omg
Jimmies San
something like this inside base.html [it's just an example, adapt it]
Jimmies San
<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/bootstrap.css' %}"/> <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/lightbox.css' %}"/> <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/style.css' %}"/> <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/ken-burns.css' %}"/> <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/owl.carousel.css' %}"/>
Jimmies San
all of them??? omg
if you need them: yes.
Jimmies San
it depends on what feature you need
Leonardo
hmm... i was doing cdn link
Leonardo
but i wanna install that locally you know...
Jimmies San
hmm... i was doing cdn link
if you use the cdn link you don't need to have it inside static dir
Leonardo
but idk what i have to use exactly
Jimmies San
but idk what i have to use exactly
have you read some docs about bootstrap?
Jimmies San
it depends on bootstrap, not django
Jimmies San
so you need to know a bit bootstrap
Leonardo
what's the deal between use CDN and install locally source files?
Leonardo
performance?
Jimmies San
if you have them locally you can work without internet connection, for example
Leonardo
huh
Jimmies San
without internet, if you load them from cdn, you can't load the page in the right way
Leonardo
yeah i'll keep they locally, i'll just import the .min files
Jimmies San
yes, for development purpose is better to have them locally
Jimmies San
on production is better if use the cdn [less requests to your server and better client side caching]
Leonardo
hmmm
Leonardo
i think that i'll keep with cdn on production then...
Jimmies San
yep, usually is better
Leonardo
do you use crispy_forms app too?
Jimmies San
sometime, yes. but i'm not skilled on it :D
Leonardo
someone help me install fontawesome
Leonardo
https://pastebin.com/p07c25Eh
Mirco
Leonardo
my is not showing