Anonymous
Please I need help on building a GIS web app using Google earth engine and django... Am kinda lost how to begin with this.
Anonymous
Any help?
Django Bot
>> Links - Tutorial: Django REST with React (Django 2.0)
inchidi
has anyone worked on making bot in django
you are using certain package? which one is it?
inchidi
José Luis: Is there any tool like scrutinizer-ci for Django?
never heard that, its something like django-debug-toolbar?
inchidi
Please I need help on building a GIS web app using Google earth engine and django... Am kinda lost how to begin with this.
already visit official docs? https://docs.djangoproject.com/en/2.0/ref/contrib/gis/
Django Bot
>> Links - 24-Gypsy-Jazz-Standards-Notation-Only.pdf
Abhi
Abhi
i am supposed to write it from scratch
inchidi
i am supposed to write it from scratch
you wanna make telegram bot wrapper like ptb but with django?
Anonymous
@inchidi what's the best create three class model Relationship class a class b class c: a = models.manytomany b = models. manytomany Or create two class Class a(models.Model): pass Class b (models.Model): Manytomany(a) 👆🏻 Not code this ex
Anonymous
No relationship c A to B and B to a But create c To collect a and b
inchidi
No relationship c A to B and B to a But create c To collect a and b
for that you dont need c tho, you can dirrectly get c from any b, just add related_name there
Anonymous
b = models.Manytomany(A, related_name=“a_set”)
Anonymous
👆🏻 example
inchidi
@inchidi what's the best create three class model Relationship class a class b class c: a = models.manytomany b = models. manytomany Or create two class Class a(models.Model): pass Class b (models.Model): Manytomany(a) 👆🏻 Not code this ex
so in this case, Class B (models.Model): a = Manytomany(A, related_name='as') usage: b = B.objects.get(id=1) b.as #this is all of your a that have relationship with b
inchidi
b = models.Manytomany(A, related_name=“a_set”)
true, but a_set is default name of that, you have a_set even if you did not specify it
Anonymous
I understand
inchidi
youre welcome
Django Bot
>> Jobs - Full Stack Python / Django Developer (Remote) - Lead backend developer / Django >> Links - How to Extend Django User Model
Anonymous
(venv) C:\django\mysite>python manage.py migrate Traceback (most recent call last): File "manage.py", line 8, in <module> from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "manage.py", line 14, in <module> ) from exc ImportError: Couldn't import Django. Are you sure it's installed and available o n your PYTHONPATH environment variable? Did you forget to activate a virtual env ironment?
Jimmies San
yes i've installed
globally? o locally in venv?
Jimmies San
yes i've installed
maybe you installed globally [with yum/dnf/apt whatever] and then create/activate virtualenv: but you need to install inside venv, after create/activate it
Anonymous
i just to fill models
Jimmies San
but it worked
no it doesn't ImportError: Couldn't import Django. Are you sure it's installed and available o n your PYTHONPATH environment variable? Did you forget to activate a virtual env
Jimmies San
you can't migrate if python don't find django
Jimmies San
and that error message says: you have not django
Jimmies San
(venv) C:\django\mysite> looking this you have create/activate virtualenv
Jimmies San
do a pip list here
Jimmies San
and check if django is in the list, if don't: pip install django
Anonymous
(venv) C:\django\mysite>pip list DEPRECATION: The default format will switch to columns in the future. You can use —format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under th e [list] section) to disable this warning. pip (9.0.1) setuptools (38.2.5) wheel (0.30.0)
Jimmies San
well :) pip install django will solve your issue :)
Anonymous
pip install django Requirement already satisfied: django in c:\python364\lib\site-packages Requirement already satisfied: pytz in c:\python364\lib\site-packages (from djan go)
Anonymous
attrs (17.3.0) beautifulsoup4 (4.6.0) certifi (2017.11.5) chardet (3.0.4) Django (2.0) gTTS (1.2.2) gTTS-token (1.1.1) idna (2.6) mock (2.0.0) mongomock (3.8.0) pbr (3.1.1) pip (9.0.1) progressbar2 (3.34.3) pygame (1.9.3) pymongo (3.6.0) PyQt5 (5.9.2) pyTelegramBotAPI (3.5.1) python-utils (2.2.0) pytq (0.0.7) pytube (7.0.18) pytz (2017.3) requests (2.18.4) sentinels (1.0.0) setuptools (28.8.0) sip (4.19.6) six (1.11.0) SQLAlchemy (1.1.15) urllib3 (1.22) wget (3.2)
Jimmies San
is different
Jimmies San
check this @basilik01 http://www.pythonforbeginners.com/basics/how-to-use-python-virtualenv
Jimmies San
be careful if you are on local venv, or on global
Anonymous
thatx. successfully
Jimmies San
❤️❤️❤️
Django Bot
>> Links - Creating a CMS Website with Django - Full stack Django: Quick start with JWT auth and React/Redux (Part I) - Full stack Django: Quick start with JWT auth and React/Redux (Part II)
Django Bot
>> Links - godaddy/django-snow: ServiceNow Ticket Management App for Django based proj
Anonymous
Hello.. Guys i have a txt file and i want to populate my db. How can i do that?
Django Bot
>> Links - How to Add Social Login to Django - How a request becomes a response: Diving deeper into WSGI – Django Deconstr
Anonymous
<h1 class="cursive">{% blocktrans %}Mobile Application Security Check Website{% endblocktrans %}</h1> what's wrong with it? Invalid block tag on line 13: 'blocktrans', expected 'endblock'. Did you forget to register or load this tag?
Anonymous
already put {% load i18n %} on top of this template?
😄 nope, i solved it and deleted message but i don't know why it's still in group 😄 sorry, thank you
Anonymous
how is your txt file looks like?
Done with it... 😊i just wanted to know how can i input settings of a django project in an isolated file
Django Bot
>> Jobs - Software Engineer (multiple levels) >> Links - Django vs Laravel: Which Framework Should You Choose? - Tutorial: Django REST with React (Django 2.0)
Django Bot
>> Links - S3SQLite - A Serverless Relational Database
Anonymous
hi, guys, do you have groups about web-design, web-development and etc?
Jimmies San
Jimmies San
it's a very cool network. a lot of groups/channels about programming and IT
Anonymous
it's a very cool network. a lot of groups/channels about programming and IT
do you know how to browse html code in text editor Bracket like browser. I hope you have got me.
Anonymous
preview html for bracket
Anonymous
'couse it's very usefullly
Anonymous
Hi, I have 2 apps in 1 project, I want to use 1 model for this 2 apps, is it possible? because of gathering all data in one table i mean
Jimmies San
i'm not a brackets user, but you have something like live preview on it
Jimmies San
'couse it's very usefullly
check this if is what you need https://github.com/adobe/brackets/wiki/How-to-Use-Brackets#live-preview
Jimmies San
Hi, I have 2 apps in 1 project, I want to use 1 model for this 2 apps, is it possible? because of gathering all data in one table i mean
i don't understand your use case but ... maybe abstract base classes? https://docs.djangoproject.com/en/dev/topics/db/models/#abstract-base-classes
Anonymous
i don't understand your use case but ... maybe abstract base classes? https://docs.djangoproject.com/en/dev/topics/db/models/#abstract-base-classes
if you saw we have model.py for each app separately, i have 2 type users, who work with api and who work with website, i need to gather all data of their in one table and model
Anonymous
i create a model for api app and i need to get and store this information for website users
Anonymous
sorry english is not my first language :)
Jimmies San
if you saw we have model.py for each app separately, i have 2 type users, who work with api and who work with website, i need to gather all data of their in one table and model
If you want to use certain models in multiple apps, you can make a 'base' or 'core' app that holds those models and then other apps can import from it, for example
Anonymous
Jimmies San
🤔 is it necessary or you preferred this solution? i mean, is it okey to make an app just for models?
for what i know [but i'm not god, maybe you can wait for other idea/solutions] the options are: - If you want to use certain models in multiple apps, you can make a 'base' or 'core' app that holds those models and then other apps can import from it. [like i wrote before] - If you want to use the same tables between apps you should import the models from one app to the another. - If you want to have the same models (or very similar) used by multiple apps and NOT share tables you should use abstract base classes. [ https://docs.djangoproject.com/en/dev/topics/db/models/#abstract-base-classes ]
Jimmies San
i mean i need to browser in in text editer
do you try to search some extension to do that?
Jimmies San
you're welcome :) maybe later some django-dev can help you better. that are just my two satoshis :D