Re: Trying to make an employee clock-in/clock-out app...

2018-08-16 Thread mazz ahmed
https://docs.djangoproject.com/en/2.1/ref/models/querysets/ On Thu, Aug 16, 2018 at 1:48 AM, Alexander Joseph < alexander.v.jos...@gmail.com> wrote: > I'm trying to make an employee clock-in/clock-out app but running into > some problems. > > Here is my model... > > class ClockPunch(models.Model

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
https://stackoverflow.com/questions/24462007/how-to-deal-with-this-error-1049-unknown-database-users-ohyunjun-work-astra On Fri, Aug 17, 2018 at 11:41 AM, Vikrant Gupta wrote: > I tried it dude. But it’s showing unknown database > > On Aug 17, 2018, at 12:06 PM, mazz ahmed wrote: > > > > DATABA

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
did you created sql and connected with the project On Fri, Aug 17, 2018 at 11:41 AM, mazz ahmed wrote: > $ mysql -u root -p > > mysql> CREATE DATABASE mydb;Query OK, 1 row affected (0.02 sec) > > > > > > > On Fri, Aug 17, 2018 at 11:37 AM, Vikrant Gupta < > vikrantgupta.v...@gmail.com> wrote: >

Re: Help me with this, plz

2018-08-16 Thread Vikrant Gupta
I tried it dude. But it’s showing unknown database > On Aug 17, 2018, at 12:06 PM, mazz ahmed wrote: > > > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': CONFIG.DB_NAME, > 'USER': CONFIG.DB_USER_NAME, > 'PASSWORD': CONFIG.DB

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
$ mysql -u root -p mysql> CREATE DATABASE mydb;Query OK, 1 row affected (0.02 sec) On Fri, Aug 17, 2018 at 11:37 AM, Vikrant Gupta wrote: > Thanks. Be there, let me try. > > On Aug 17, 2018, at 12:06 PM, mazz ahmed wrote: > > > > DATABASES = { > 'default': { > 'ENGINE': 'djang

Re: Help me with this, plz

2018-08-16 Thread Vikrant Gupta
Thanks. Be there, let me try. > On Aug 17, 2018, at 12:06 PM, mazz ahmed wrote: > > > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': CONFIG.DB_NAME, > 'USER': CONFIG.DB_USER_NAME, > 'PASSWORD': CONFIG.DB_PASSWORD, >

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': CONFIG.DB_NAME, 'USER': CONFIG.DB_USER_NAME, 'PASSWORD': CONFIG.DB_PASSWORD, 'HOST': CONFIG.DB_HOST, 'PORT': CONFIG.DB_PORT, 'OPTIONS': { 'init_command':

Re: Unrecognizable error

2018-08-16 Thread mazz ahmed
name of app should in small letters On Fri, Aug 17, 2018 at 11:28 AM, Vikrant Gupta wrote: > For example ? > > On Aug 17, 2018, at 11:57 AM, mazz ahmed wrote: > > this is an error in your install apps > naming the app should be unique > > On Fri, Aug 17, 2018 at 11:25 AM, Vikrant Gupta < > vikr

Re: Help me with this, plz

2018-08-16 Thread Vikrant Gupta
I configured it already… See here. DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': os.path.join(BASE_DIR, 'Django_TestingDB'), 'USER':'root', 'PASSWORD’:’blahblahblah', 'PORT':'3306', 'HOST':'127.0.0.1', } } > On Au

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
python manage.py makemigration and migrate use for db creation On Fri, Aug 17, 2018 at 11:31 AM, mazz ahmed wrote: > if you are using sqlite3 then it will automatically do for you otherwise > configure db > > On Fri, Aug 17, 2018 at 11:30 AM, mazz ahmed wrote: > >> it is related to your databas

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
if you are using sqlite3 then it will automatically do for you otherwise configure db On Fri, Aug 17, 2018 at 11:30 AM, mazz ahmed wrote: > it is related to your database configure in the setting.py > > On Fri, Aug 17, 2018 at 11:28 AM, Vikrant Gupta > wrote: > >> I tried it. Showing following

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
it is related to your database configure in the setting.py On Fri, Aug 17, 2018 at 11:28 AM, Vikrant Gupta wrote: > I tried it. Showing following error… > > > Python manage.py migrate > > Traceback (most recent call last): > File "manage.py", line 15, in > execute_from_command_line(sys.ar

Re: Unrecognizable error

2018-08-16 Thread Vikrant Gupta
For example ? > On Aug 17, 2018, at 11:57 AM, mazz ahmed wrote: > > this is an error in your install apps > naming the app should be unique > > On Fri, Aug 17, 2018 at 11:25 AM, Vikrant Gupta > wrote: > I tried it too… But It didn’t work.showing another erro

Re: Help me with this, plz

2018-08-16 Thread Vikrant Gupta
I tried it. Showing following error… Python manage.py migrate Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/core/management/__init__.py", l

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
remove your "Newtest.apps.Newtestconfig" and see what happens On Fri, Aug 17, 2018 at 11:16 AM, Vikrant Gupta wrote: > sick of this error... what to do? > > antuptasMBP:New_Django vikrantgupta$ python manage.py migrate > Traceback (most recent call last): > File "manage.py", line 15, in >

Re: Unrecognizable error

2018-08-16 Thread mazz ahmed
mention your python version in python manage.py run server On Fri, Aug 17, 2018 at 9:54 AM, Vikrant Gupta wrote: > I'm trying to migrate two Classes in Django using Pycharm. The error is as > follow > > python manage.py makemigrations --name initial polls > File "manage.py", line 16 > )fr

Help me with this, plz

2018-08-16 Thread Vikrant Gupta
sick of this error... what to do? antuptasMBP:New_Django vikrantgupta$ python manage.py migrate Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/

Unrecognizable error

2018-08-16 Thread Vikrant Gupta
I'm trying to migrate two Classes in Django using Pycharm. The error is as follow python manage.py makemigrations --name initial polls File "manage.py", line 16 )from exc ^ SyntaxError: invalid syntax How to solve this error? and classes created are... class student(models.Model)

Re: 3719: 'utf8' is currently an alias for the character set UTF8MB3, which will be replaced by UTF8MB4 - When using MySQL sakila and world DB examples

2018-08-16 Thread Ciaran O'Sullivan
I added a comment with a workaround to the Django Ticket. https://code.djangoproject.com/ticket/29678 Included is the settings.py and the changes made. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop re

Re: '$' is not recongnized

2018-08-16 Thread Anirudh Jain
while copy pasting the command, you must have copied '$' as well and pasted it in the terminal. Remove $ from the begining and try again. I am sure it would work. On Fri, 17 Aug 2018, 01:33 Brandon Hernandez, wrote: > Im trying to follow the tutorial for django, but i cant figure out how to > ma

'$' is not recongnized

2018-08-16 Thread Brandon Hernandez
Im trying to follow the tutorial for django, but i cant figure out how to make my cmd recognize '$' . -- 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-use

Re: 3719: 'utf8' is currently an alias for the character set UTF8MB3, which will be replaced by UTF8MB4 - When using MySQL sakila and world DB examples

2018-08-16 Thread Tim Graham
It looks like some code is promoting MySQL's warnings to exceptions. django.db.backends.mysql had that behavior before Django 1.8: https://code.djangoproject.com/changeset/5bcd292098b4de7bb03ef778e24d9e2f433d0dae/ For anyone reporting this, are you using django.db.backends.mysql or some other da

Re: regarding the installation

2018-08-16 Thread Satheesh Eppalapelli
you can install django using pip carefully read this doc https://docs.djangoproject.com/en/2.1/topics/install/ Kind Regards, Satheesh Eppalapelli On Thu, Aug 16, 2018 at 9:41 AM, muthu sabarish wrote: > how to download django ???can any one help me out ... > > -- > You received this messag

Re: Data Retrieval from sqlite3

2018-08-16 Thread Vikrant Gupta
Hello Ruban, Your code may be something like this var=‘d’ #input from HTML Ans=models.objects.get(name=var) Print(Ans.batch) By, Vikrant > On Aug 16, 2018, at 4:30 PM, ruban bharath wrote: > > Name batch > a one > b two > c

regarding the installation

2018-08-16 Thread muthu sabarish
how to download django ???can any one help me out ... -- 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+unsubscr...@googlegroups.com. To post to this

Re: changes in django appilcation

2018-08-16 Thread mottaz hejaze
You can use git On Thu, 16 Aug 2018, 09:58 Kamal Sharma, wrote: > Hey Django, > > I have deployed the django application on my production VPS, with the help > of this tutorial > https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04

Re: Data Retrieval from sqlite3

2018-08-16 Thread ruban bharath
cursor.execute('SELECT * FROM music_output WHERE username =?', t) name2 = cursor.fetchall() return render(request, "home.html", {'name3': name2}) This one suits me a error for using that *"?" how can i pass parameter to get dynamic input* thats my problem sir On Thursday, August 16, 2018

Re: Data Retrieval from sqlite3

2018-08-16 Thread Jason
I would suggest you go through the django tutorial at https://docs.djangoproject.com/en/2.1/intro/tutorial01/ Your question suggests that you haven't done so, and it should help you find the answer to your question. -- You received this message because you are subscribed to the Google Groups

Data Retrieval from sqlite3

2018-08-16 Thread ruban bharath
*Name batch* a one b two c three d four e five This is my table If i entered "*d*" in the front end (html) my expected output must be like d four what is the django sqlit

Re: App Registeries Not ready

2018-08-16 Thread Vikrant Gupta
What’s the code for importing pymysql database in Django manage.py ? > On Aug 15, 2018, at 6:28 PM, Shashank Parekh > wrote: > > Can you post your apps.py file? > > On Wednesday, August 15, 2018 at 6:22:34 PM UTC+5:30, Vikrant Gupta wrote: > I'm trying to get a name from a column named Artist

changes in django appilcation

2018-08-16 Thread Kamal Sharma
Hey Django, I have deployed the django application on my production VPS, with the help of this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 now it is working fine but i have made some changes in my local django env

Re: changing the django production from 80 to another

2018-08-16 Thread Kamal Sharma
Hey Thanks for this solution it worked for me. Thank you Kamal Sharma On Wed, Aug 15, 2018 at 10:24 PM, Kasper Laudrup wrote: > Hi Kamal, > > On 15/08/2018 16.32, Kamal Sharma wrote: > >> I am facing a problem that at 80 port my tomcat is running and i just want >> to deploy my django applicati