Re: Django won't update when i restart httpd.service on Fedora 23 virtual machine

2018-03-10 Thread Nick Saway
the site ip i use to connect to the site is not the same ip that i put the website files on. when i do the below stop service, i am still able to access the old version of the site. so i'm confused now. if i try to connect to the ip that is in the httpd.conf file, i get Bad Request 400. On

Django won't update when i restart httpd.service on Fedora 23 virtual machine

2018-03-10 Thread Nick Saway
HI, I have a Django site running on a Fedora 23 virtual machine via Apache, i believe it is using mod_wsgi. I updated the site files, and did "systemctl stop httpd.service " and "systemctl start httpd.service" but the old version of the site is still being served. I went into my project

Re: Use SQLite file database for tests (and not in-memory)

2018-03-10 Thread Daniel Gilge
Ok, I found it. You just have to define a name for your test database in your settings: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'mydatabase', 'TEST': { 'NAME': 'test_database', }, }, } Thanks! Am Samstag,

Use SQLite file database for tests (and not in-memory)

2018-03-10 Thread Daniel Gilge
Hi, *Introduction:* Django uses an in-memory database for testing when it finds a SQLite database in the settings. However, the ChannelsLiveServerTestcase (of Channels 2.0) cannot be used with an in-memory

Re: When to create a new app

2018-03-10 Thread ansh srivastav
Most amazing part about django is every stuff related to a new app! Suppose you may want to create a game and in that first the user have to intimate the move, so for that an app is created ! On 10 Mar 2018 21:40, "Cictani" wrote: > > Hi Andréas, > > thank you.

Re: When to create a new app

2018-03-10 Thread Cictani
Hi Andréas, thank you. Currently I am working on a db app for ant species (https://github.com/Cictani/antkeeping_info). Each ant species can be native to several countries and other regions (states for example). I created a separate regions up which contains the models for Country and Region

How to?

2018-03-10 Thread baginda . achmad13
I am a GSoC 2018 participant, and I want to ask about how to contact the mentor? Is the "Django users" group is the right place? Thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

django URLconf current path didn't match

2018-03-10 Thread Usman Gill
Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order: polls/ [name='index'] admin/ The current path, polls/, didn't match any of these. My code is... from (app)polls urls.py from django.urls import pathfrom . import views urlpatterns = [ path('',

how to give a user a model field to choose from during signup?

2018-03-10 Thread AJD
how to make a user registration form including a model field in it as a required field? like i want college field to show up on registration page as a drop-down menu my models.py class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) college =

Re: When to create a new app

2018-03-10 Thread Andréas Kühne
Hi Andreas, I would say that this depends on your use case. I try to group functionality or domains in my apps. So for example I have all of the invoicing views and models in one app, all of the user models and views in another app. There are some models that have relationships to other models in