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
inchidi
Django Bot
>> Links
- 24-Gypsy-Jazz-Standards-Notation-Only.pdf
Abhi
Abhi
i am supposed to write it from scratch
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
inchidi
Anonymous
No relationship c
A to B and B to a
But create c
To collect a and b
Anonymous
b = models.Manytomany(A, related_name=“a_set”)
Anonymous
👆🏻 example
inchidi
Anonymous
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
Anonymous
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
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
Anonymous
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)
Jimmies San
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
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?
inchidi
inchidi
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
Jimmies San
Anonymous
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
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 :)
Anonymous
Jimmies San
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 ]
Anonymous
Jimmies San
you're welcome :) maybe later some django-dev can help you better. that are just my two satoshis :D