Re: Confused with deleted migrations

2019-06-16 Thread Mohammad Etemaddar
I got really confused. I don't know how to use version control. I think this might happen again. I need to understand what you did with version control. It would be appreciated if you could post an instructions on here or any blog. Thank you. On Wednesday, June 12, 2019 at 10:57:56 PM UTC+4:30,

Strongly Want to Eat Django

2019-06-16 Thread Mohammad Etemaddar
https://metemaddar.ir/?p=24 -- 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+un

ValueError at /admin/

2019-06-16 Thread anchal agarwal
I recently deleted one of my app from my website directory. For deleting app I removed that app name from settings.py also I removed it's folder I then applied python manage.py migrate But now i am unable to access my admin, it's giving an error ValueError: invalid literal for int() with base 10:

Re: ValueError at /admin/

2019-06-16 Thread Karan Mittal
You can try the sequence of commands, Makemigrations Migrate It solved the problem for me. Karan Mittal On Sun 16 Jun, 2019, 1:38 PM anchal agarwal, wrote: > I recently deleted one of my app from my website directory. For deleting > app I removed that app name from settings.py also I removed it'

Re: ValueError at /admin/

2019-06-16 Thread anchal agarwal
It's still showing the same error , is there any other way to resolve this issue ? On 16-Jun-2019 1:57 pm, "Karan Mittal" wrote: > You can try the sequence of commands, > Makemigrations > Migrate > It solved the problem for me. > Karan Mittal > > On Sun 16 Jun, 2019, 1:38 PM anchal agarwal, > wr

Re: ValueError at /admin/

2019-06-16 Thread Dave Edwards
What's in your urls.py at the project level? Do you have a copy of the urls.py that sit within the deleted app folder? On Sun, 16 Jun 2019, 09:09 anchal agarwal, wrote: > I recently deleted one of my app from my website directory. For deleting > app I removed that app name from settings.py also

Re: ValueError at /admin/

2019-06-16 Thread anchal agarwal
here is my urls.py . I only need music app. from django.contrib import admin from django.urls import path,include from . import settings from django.contrib.staticfiles.urls import static from django.contrib.staticfiles.urls import staticfiles_urlpatterns urlpatterns = [ path('',include('music.url

Re: ValueError at /admin/

2019-06-16 Thread Sai Praneeth
Remove files in migration folder and then try to migrate On Sun 16 Jun, 2019, 1:38 PM anchal agarwal, wrote: > I recently deleted one of my app from my website directory. For deleting > app I removed that app name from settings.py also I removed it's folder > I then applied python manage.py migr

Issue in upgrading Django-cms 3.4.2 to 3.6.0

2019-06-16 Thread Manabendra Sarkar
Hi, Please find the issue details below. I am upgrading my website from *python2.7, django1.8.17, django-cms 3.4.2* to *python2.7, django1.1.21, django-cms 3.6.0* when I run *python manage.py runserver* It gives me following error. *django.template.library.InvalidTemplateLibrary: Invalid temp

Scope of Django in india and freelancing

2019-06-16 Thread Sourabh Raikwar
Hello Guys I'm Currently learning Django. And now i decided to do internship. And i found out that there are no internship on django in my city. Its all mean stack every where. So i am confused now should i stick with django and get experience in it. Or should i start learning MEAN stack -- Y

Re: ValueError at /admin/

2019-06-16 Thread anchal agarwal
I removed all files,and when i applied migrations it's showing me this C:\Users\User\Desktop\mysite>python manage.py makemigrations System check identified some issues: WARNINGS: ?: (urls.W005) URL namespace 'music' isn't unique. You may not be able to reverse all URLs in this namespace Migrations

Signals

2019-06-16 Thread Yoo
Hi. the following code is kinda wonky, so here's the context. I have two models: https://gist.github.com/andrewcw825/f88aa2084e373480f3e63991af7d6c4b The url_id field is supposed to be an auto increment field; however, since it's not the primary key, I can't. Obviously, I could make a function t

Re: Scope of Django in india and freelancing

2019-06-16 Thread Karan Mittal
I recommend that you learn MEAN stack. if you mastered both of these, you will become a full stack developer. I am a college student and got a wonderful opportunity in Django from DataFlair. When learning full stack focus on some things 1. Using AJAX in Django with jQuery 2. Using Bootstrap and mai

Re: Django tests appear to be getting substantially slower

2019-06-16 Thread Simon Charette
Again, it's hard to tell what the slowdown might be caused by without a more detailed investigation. I suggest you use cProfile[0] for that. Given your tests are only running for a small amount of time relative to Django's setup time I assume two things are causing the apparent slowdown: 1. A s

Re: Django App - Database connection

2019-06-16 Thread Travis Risner
Hi Sapna, What works for me (in Django 2.2) is to use the ENGINE setting that Dave suggested: 'ENGINE':'django.db.backends.postgresql', and install the driver that Daniel suggested: psycopg2 Some database drivers are in the standard Python library (e.g. sqlite) while others need t

Internal Ranking System Application

2019-06-16 Thread Derek Dong
How can I integrate OAuth with a ranking system in a Django application? I'm not too familiar with Django design philosophy, which is why I'm asking these questions. The way I understand it, OAuth doesn't let you manipulate information on the server authenticating a user, so I would still need a

Re: Internal Ranking System Application

2019-06-16 Thread Yoo
Based off the context: https://simpleisbetterthancomplex.com/tutorial/2016/11/23/how-to-add-user-profile-to-django-admin.html I'm somewhat confused regarding where this is supposed to go, so here're some random ideas which hopefully might help you start off with some Google searches: The above