Dear Django community,--I have developed my django application but i am facing problem to deploy it on my "virtual private server". And tutorial of production deployment are making me so confuse so i am unable to deploy it.Can you please share with me the steps to deploy my django project on production with VPS.Your immediate action will be highly appreciated.ThanksKamal Sharma
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/095a451f-4b0a-49e6-8d2a-baa3f53832c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Saturday, June 30, 2018
Re: Django production deployment on my VPS
Django production deployment on my VPS
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/095a451f-4b0a-49e6-8d2a-baa3f53832c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Database
ABHISHEK PARMAR <150305105052@paruluniversity.ac.in> wrote:
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAErr1ZUERxGq26gkkhmPG_1iOdKwvMpHCoZdu2uJEhVhjNLXUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e060brfnkg2hen7383muowx6.1530400605221%40email.android.com.
For more options, visit https://groups.google.com/d/optout.
Re: Database
Use postgresql, but you can find reasons not to!, the choice between MySQL and postgresql is more or less personal! Both have their strengths and weakness!To view this discussion on the web visit https://groups.google.com/d/--On Jun 30, 2018 14:05, "ABHISHEK PARMAR" <150305105052@paruluniversity.ac.in > wrote:Should i use postgres or mysql ?--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAErr1ZUERxGq .26gkkhmPG_1iOdKwvMpHCoZdu2uJEh VhjNLXUQ%40mail.gmail.com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .msgid/django-users/ .CAEL9fCFf4MrrW3mPjXzUqYrwPxjbe 29boD6QHPZFALXm3F_gsw%40mail. gmail.com
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEqej2O%3DzFjqmpciDCu7ZvHTrsv6rZEVAQthDYQO0dRDdsjGDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: Database
Should i use postgres or mysql ?--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ .CAErr1ZUERxGq26gkkhmPG_ 1iOdKwvMpHCoZdu2uJEhVhjNLXUQ% 40mail.gmail.com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEL9fCFf4MrrW3mPjXzUqYrwPxjbe29boD6QHPZFALXm3F_gsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Cannot add choice filed with radio buttons in my model form using widget but only charfield.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMO5YApwyjBSZgFEKHc6F0c1NVJCwdPkpnr%3DY%2B%3DV00hZsPSCcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: django windows apache tell if apache is working
Hi,Thanks.Yes, I went thru the Mozilla library tutorial on a fedora dev machine to the point where I realized I needed to do more with the last mile, so to speak working on setup of the production server part on Windows and wamp.Seems most tuts end at manage.py runserver, or start into deployment from dev to production. I can't seem to locate a good uptodate tut for wamp that shows how to test everything is working properly in a simple manner for the wsgi part.I'm just trying to verify the plumbing (httpd.conf, settings.py wsgi.py) is working with apache, before spending too much more time building a site.On Sat, Jun 30, 2018 at 2:54 AM, Jason <jjohn...@gmail.com> wrote:appreciate the detailed report :-)--so, have you set up the django tutorial project? that application method in wsgi doesn't make any sense. you should have urls and views set up in your project
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/- .eJaLuJ85KE/unsubscribe
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6d241c04- .55be-4524-959e-09630a7bc21f% 40googlegroups.com
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6f5e5996-a85e-4eb6-b5e4-804f7379a2b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: django windows apache tell if apache is working
appreciate the detailed report :-)--so, have you set up the django tutorial project? that application method in wsgi doesn't make any sense. you should have urls and views set up in your project
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/- .eJaLuJ85KE/unsubscribe
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6d241c04- .55be-4524-959e-09630a7bc21f% 40googlegroups.com
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALWZDaPoCygU8hSSYcsEpQnHGE%2B52EUxAyOko3kPRhR12t6HCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: Queryset calculation and then filter/exclude/limit data rendered
On Friday, June 29, 2018 at 3:02:58 PM UTC-5, rod termaat wrote:
I totally get what you are saying and thanks. I tried a similar strategy. I do qs = Check.objects.all() and then I have to do the calculation as there is no balance in the model so I generate it on the fly in the for loop. My hope was to then filter qs like you show. It works, but my balance calculation is lost which is integral to the process.my filter code looks like:monthdata = check_list.filter(dater__gte=CalendarFromMonth, dater__lte=CalendarToMonth) After some research that seemed like expected behavior where filter goes back thru the OCR where as I was hoping it would just filter on check_list and therefore retain the balance amount.Thanks for your perspective, rod
On Friday, June 29, 2018 at 3:13:46 AM UTC-5, Derek wrote:Its not completely clear what you are doing.You need to avoid logic in your template; but you say "excluding data from the the queryset in the for loop which is easy in other languages, but this also seemed to be a no go". That is not the case if your logic is written in the correct way.In my case I need to present a month-by-month view of orders; the UI displays day-by-day entries for the selected month (defaults to current month) with two "buttons" (hyperlinks) that are set to a +1 and -1 delta relative to the current month number so the user can jump back and forth easily. The function in the views.py file accepts the month number as an argument and filters orders based on that month e.g. in your case you might do:qs = Check.objects.all()if selected_month: qs = qs.filter(created__month=int(
selected_month)) where selected_month would be a argument passed into your view. You can then apply other calculation logic on the list.
On Thursday, 28 June 2018 02:09:21 UTC+2, rod termaat wrote:I have a small checkbook application where I store transactions (expenses and income) amounts by date. I render these to a template using python to add the cumulative balance prior to render. This work fine for my little application, but not too sure how scalable it will be over time.
My goal is to have this displayed by month with the running balance. I first researched custom pagination, but found nothing on date pagination by month and year. I then started down the road of excluding data from the the queryset in the for loop which is easy in other languages, but this also seemed to be a no go. My current thought is to exclude the data from the queryset in the for loop and move the data into a dictionary or list, or json.
Any advice for me? Right now I need all objects from the Check model to get an accurate balance and then I need to filter that to limit the records by month.
Finally, I did tried to filter the check_list after the balance was added, but found out that does not work as the query goes back to the model and I loose the balance.
Here is my model
class Check(models.Model):
"""
Model representing a checkbook transaction.
"""
check_type = (('CR', 'credit'),('DR', 'debit'),('SV', 'savings'),('DT', 'debt reduction'),)
dater = models.DateField(help_text=' .the date of the transaction')
type = models.CharField(max_length=2, choices=check_type, help_text=' .credit or debit')
category = models.ForeignKey('Category', on_delete=models.SET_NULL, null=True)
name = models.CharField(max_length=
100, help_text=' .description') amount = models.IntegerField(default=0, help_text=' .amount')
cleared = models.BooleanField(help_text=
' .cleared with the bank?') created = models.DateTimeField(auto_now_
add=True)
Here is my function view
def checkbookList(request):
check_list = Check.objects.all()
#checks = Check.objects.all()
balance = 0
#for chk in checks:
for chk in check_list:
balance += chk.amount
chk.balance = balance
if chk.cleared:
chk.cleared = '\u221A'
else:
chk.cleared = '-'
return render(request, 'checkbook/checkbook.html', {'checks': check_list})
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/25ff02ac-5b44-4cde-94e7-142167214285%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: django windows apache tell if apache is working
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6d241c04-55be-4524-959e-09630a7bc21f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Can't access my django runserver
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/65a0ae6d-c957-4b65-b8f9-8c8ccffd58ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Can't access my django runserver
On Saturday, 30 June 2018, Umar Kambala <umarkambala@gmail.com> wrote:
--this are my codes...# SECURITY WARNING: don't run with debug turned on in production!DEBUG = TrueALLOWED_HOSTS = ['127.0.0.1', '.pythonanywhere.com']ALLOWED_HOSTS = ['localhost', '.pythonanywhere.com']# Application definitionINSTALLED_APPS = ['polls.apps.PollsConfig','django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles',]MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware. AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking. XFrameOptionsMiddleware', ]ROOT_URLCONF = 'mysite.urls'TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')]'APP_DIRS': True,'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ],},},]WSGI_APPLICATION = 'mysite.wsgi.application'# DatabaseDATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3','NAME': os.path.join(BASE_DIR, 'db.sqlite3'),}}# Password validationAUTH_PASSWORD_VALIDATORS = [{'NAME': 'django.contrib.auth.password_validation. UserAttributeSimilarityValidat or', },{'NAME': 'django.contrib.auth.password_validation. MinimumLengthValidator', },{'NAME': 'django.contrib.auth.password_validation. CommonPasswordValidator', },{'NAME': 'django.contrib.auth.password_validation. NumericPasswordValidator', },]# InternationalizationLANGUAGE_CODE = 'en-us'TIME_ZONE = 'GMT'USE_I18N = TrueUSE_L10N = TrueUSE_TZ = True# Static files (CSS, JavaScript, Images)STATIC_URL = '/static/'STATIC_ROOT = os.path.join(BASE_DIR, 'STATIC')MASSAGE_STORAGE = 'django.contrib.message.storage.session. SessionStorage' this what i get when i run python manage.py runserverline 371, in execute_from_command_lineutility.execute()File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\ lib\site-packages\django\core\ management\__init__.py", line 317, in execute settings.INSTALLED_APPSFile "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\ lib\site-packages\django\conf\ __init__.py", line 56, in __getattr__ self._setup(name)File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\ lib\site-packages\django\conf\ __init__.py", line 43, in _setup self._wrapped = Settings(settings_module)File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\ lib\site-packages\django\conf\ __init__.py", line 106, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\ lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_importFile "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "<frozen importlib._bootstrap_external>", line 674, in exec_module File "<frozen importlib._bootstrap_external>", line 781, in get_code File "<frozen importlib._bootstrap_external>", line 741, in source_to_code File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removedFile "C:\Users\Admin\Desktop\Djan Polls\mysite\mysite\settings.py", line 60 'APP_DIRS': True,^SyntaxError: invalid syntax--On Fri, Jun 29, 2018 at 6:00 AM, Mikhailo Keda <mriynuk@gmail.com> wrote:show your code--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3d5e9f26-3170 .-440f-b06b-9b9f7ef976d0%40goog legroups.com
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPkbFbZSz- .KFDZ1HdKCAgXCTb-noVmLWPUM- p2ijZxuK0Kjwow%40mail.gmail. com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHfehoXe-9Z5M92EbFmp8TtoGim4Tdd%2BObnXHbiFnd6GeF2B7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: Can't access my django runserver
this are my codes...# SECURITY WARNING: don't run with debug turned on in production!DEBUG = TrueALLOWED_HOSTS = ['127.0.0.1', '.pythonanywhere.com']ALLOWED_HOSTS = ['localhost', '.pythonanywhere.com']# Application definitionINSTALLED_APPS = ['polls.apps.PollsConfig','django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles',]MIDDLEWARE = ['django.middleware.security.SecurityMiddleware','django.contrib.sessions.middleware.SessionMiddleware','django.middleware.common.CommonMiddleware','django.middleware.csrf.CsrfViewMiddleware','django.contrib.auth.middleware.AuthenticationMiddleware','django.contrib.messages.middleware.MessageMiddleware','django.middleware.clickjacking.XFrameOptionsMiddleware',]ROOT_URLCONF = 'mysite.urls'TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates','DIRS': [os.path.join(BASE_DIR, 'templates')]'APP_DIRS': True,'OPTIONS': {'context_processors': ['django.template.context_processors.debug','django.template.context_processors.request','django.contrib.auth.context_processors.auth','django.contrib.messages.context_processors.messages',],},},]WSGI_APPLICATION = 'mysite.wsgi.application'# DatabaseDATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3','NAME': os.path.join(BASE_DIR, 'db.sqlite3'),}}# Password validationAUTH_PASSWORD_VALIDATORS = [{'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',},{'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',},{'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',},{'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',},]# InternationalizationLANGUAGE_CODE = 'en-us'TIME_ZONE = 'GMT'USE_I18N = TrueUSE_L10N = TrueUSE_TZ = True# Static files (CSS, JavaScript, Images)STATIC_URL = '/static/'STATIC_ROOT = os.path.join(BASE_DIR, 'STATIC')MASSAGE_STORAGE = 'django.contrib.message.storage.session.SessionStorage'this what i get when i run python manage.py runserverline 371, in execute_from_command_lineutility.execute()File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\__init__.py", line 317, in executesettings.INSTALLED_APPSFile "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\conf\__init__.py", line 56, in __getattr__self._setup(name)File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\conf\__init__.py", line 43, in _setupself._wrapped = Settings(settings_module)File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\conf\__init__.py", line 106, in __init__mod = importlib.import_module(self.SETTINGS_MODULE)File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py", line 126, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)File "<frozen importlib._bootstrap>", line 994, in _gcd_importFile "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "<frozen importlib._bootstrap_external>", line 674, in exec_moduleFile "<frozen importlib._bootstrap_external>", line 781, in get_codeFile "<frozen importlib._bootstrap_external>", line 741, in source_to_codeFile "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removedFile "C:\Users\Admin\Desktop\Djan Polls\mysite\mysite\settings.py", line 60'APP_DIRS': True,^SyntaxError: invalid syntax--On Fri, Jun 29, 2018 at 6:00 AM, Mikhailo Keda <mriynuk@gmail.com> wrote:show your code--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3d5e9f26-3170-440f-b06b-9b9f7ef976d0%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPkbFbZSz-KFDZ1HdKCAgXCTb-noVmLWPUM-p2ijZxuK0Kjwow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAC3mK7dC44w-vAvPruFcKJ4yQsk%2BROzNHmiFFWb%2Bzq4PqQOLdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: Can't access my django runserver
show your code--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3d5e9f26- .3170-440f-b06b-9b9f7ef976d0% 40googlegroups.com
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPkbFbZSz-KFDZ1HdKCAgXCTb-noVmLWPUM-p2ijZxuK0Kjwow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Friday, June 29, 2018
Database
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAErr1ZUERxGq26gkkhmPG_1iOdKwvMpHCoZdu2uJEhVhjNLXUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
django windows apache tell if apache is working
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/99fc6ee8-b5b3-4da0-b11d-e5d34eff6076%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: django.contrib.admin
How can I override the list_display to add fields in my admin console for users?--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e7613363-d11a-43cb-9849-7af5ef864f04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO1uMikc86%3DRq17QPCtvROyofe8dOfD5NCPH4H%2BfYDSOiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: Django Admin
--Hi Team,
I have created 4 models ( class Company, class Department, class Section, class Employee )
Company Model has : CMP1, CMP2, CMP3, CMP4, CMP5(Year is the foreign key in this model)
Department Model has : DEP1, DEP2,DEP3,DEP4,DEP5 (Company is the foreign key in this model)
Section Model has : SEC1, SEC2,SEC3,SEC4,SEC5 (
Department is the foreign key in this model)
Employee Model has : EMP1,EMP2,EMP3,EMP4,EMP5 (
Section is the foreign key in this model)
Now I have created 2 more models (class Details, Class Map)
Details Model Fields:
salary
Map Model Fields :
Company ( foreign key Company Model)
Department (foreign key Department Model )
Section (foreign key section Model)
Employee (foreign key employee Model)
Details Model will Map salary for the employees
I need to show these two models in admin page ( class Map as the inline model for class Details)
==============================
============================== ===================== ADMIN PAGE looks as below :
Details
select salary range
(drop down)
MAP [ inline Model ] : Need to Map employees who come under the salary range
- select Company select Department select Section select Employee
(drop down) (drop down) (drop down) (drop down)
2. select Company select Department select Section select Employee
(drop down) (drop down) (drop down) (drop down)
3. select Company select Department select Section select Employee
(drop down) (drop down) (drop down) (drop down)
==============================
============================== ==========================
=> On selecting a company, we should display only departments in that company.
=> On selecting Department, we should display only sections in that Department.
=> On selecting Section, we should display only employees in that Section.
I am messed with this implementation, Please help me out in this. If possible please brief me the steps to follow on this implementation
Thanks in Advance
Regards,
Teja Y
LAMP
This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ .SG2PR02MB3532FF8BEF86B8796A035 268FF4E0%40SG2PR02MB3532. apcprd02.prod.outlook.com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEqej2MedgiOTf6uExRKEVzyLNcMU1q_xjCWAw79sr-bDyZo9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.