from django.conf.urls.static import static
from django.conf import settings
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
>>> import sys
>>> setattr(sys.modules[__name__], 'x', 5)
>>> setattr(sys.modules[__name__], 'y', 10)
>>> x
5
>>> y
10
>>> vars()['z'] = 10
>>> z
10
>>> globals()['n'] = 80
>>> n
80
locate .mp3
class ServiceCourse(models.Model):
class Meta:
db_table = 'service_courses'
usd = models.IntegerField()
euro = models.IntegerField()
gbr = models.IntegerField()