Re: What is the work of instance & filename which is passing as parameter?

2021-09-03 Thread Sky Lord
So right here what does the filename changes to? On Fri, Sep 3, 2021, 1:25 PM Tanjina Sharmin wrote: > def path_and_renamecsv(instance, filename): > upload_to = 'attendancesheet' > ext = filename.split('.')[-1] > # get filename > if instance.pk: > filename = '{}.{}'.format(instance.pk, ext) > el

Re: Django WhatsApp Group

2021-07-29 Thread Sky Lord
https://chat.whatsapp.com/FbJxWDIvcsmFdK8mSqXjS0 On Thu, Jul 29, 2021, 2:06 PM Ogara Dennis wrote: > Hello Friends > > -- > 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 a

Re: Please remove me from this user group.

2021-07-29 Thread Sky Lord
Just click on the unsubscribe button On Tue, Jul 27, 2021, 3:16 AM Shirley Nelson wrote: > Please remove me from this user group. Thank you. > > Regards, Shirley Nelson > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe fro

New members..***..

2021-04-20 Thread Sky Lord
Hello On Tue, Apr 20, 2021, 6:07 AM Israr Hussain Rao < israrhussainrao5...@gmail.com> wrote: > use this library and make a folder in your application django.mo and > django.po > django.utils.translation import ugettext > > use this template tag {% trans 'text need to be translate '%} > > > > >

Re: new python dev jobs (was: Try to connect Redis Channel in Django Chat Project)

2021-04-09 Thread Sky Lord
Any YouTube channel to follow up? On Fri, Apr 9, 2021, 8:36 PM Ryan Nowakowski wrote: > Hey Hemanth, > > Welcome to python! Just a note... it's considered bad form to hijack an > existing mailing list thread and change the topic[1]. You should instead > send a brand new email (don't hit the re

Re: I've a issue in django.

2021-04-06 Thread Sky Lord
Hello guys who gonna teach me Django from scratch?? On Mon, Apr 5, 2021, 2:57 PM Abdulfarid Olakunle wrote: > What's it...let me see if I can help > > On Sun, Apr 4, 2021, 15:57 lite book wrote: > >> I've a issue in Django can anyone help me. >> >> https://stackoverflow.com/questions/66938372/w

Re: Class Base View Foreign key

2021-02-28 Thread Sky Lord
What's that, am new please On Sat, Feb 27, 2021, 4:47 PM Rob Wilkinson wrote: > This is what my code looks like and it now works : > > see where it says "example of setting pk..." below: > > def dyn_menu_new(request): > > from .models import menu as menuX > > from .models import buttons

Re: template is not visible properliy

2021-02-28 Thread Sky Lord
Hello am new noob, anyone guide or take me as student? On Sun, Feb 28, 2021, 6:02 AM Mr. X Offencer wrote: > Bro show me your file structure. > > On Sun, 28 Feb 2021, 02:56 Kasper Laudrup, wrote: > >> On 27/02/2021 12.19, Mayursinh Raulji wrote: >> >i have download template from google and

Re: Facebook Like app with Django

2020-01-12 Thread Sky Luv
Thank you Motaz! 2020年1月11日土曜日 14時05分02秒 UTC Motaz Hejaze: > > Ofcourse you can make use of many packages .. > > Djangorestframework > Allauth > > As a start .. > > On Sat, 11 Jan 2020, 3:14 pm Sky Luv, > > wrote: > >> Hi, >> >> I am cre

Facebook Like app with Django

2020-01-11 Thread Sky Luv
Hi, I am creating a social app something like facebook with Django. I do not want to "reinvent the wheel" and I know there are a lot of awesome Django packages. Could you kindly list packages that I should install to my app? Thank a lot in advance! Best -- You received this message because

Re: Django 2.2.6 fails to serve some static files in Windows 10

2019-10-04 Thread red sky
tubre de 2019, 23:13:19 (UTC+2), red sky escribió: > > Thank you, to Ajjet and Desh. > > That solution doesn't work. > > I keep getting the error: [03/Oct/2019 23:08:39] "GET > /static/css/styles.css HTTP/1.1" 404 1767 > > If I request the file "manua

Re: Django 2.2.6 fails to serve some static files in Windows 10

2019-10-03 Thread red sky
, 3 de octubre de 2019, 7:31:07 (UTC+2), Ajeet Kumar Gupt escribió: > > Hi, > > Use the below code > > href="{% static 'css/styles.css' %}" > > On Wed, Oct 2, 2019 at 8:06 PM red sky > > wrote: > >> My system: Windows 10 1903. Py

Bug? django fails to serve static files in Windows 10

2019-10-02 Thread red sky
my system: Windows 10 1903, Python 3.7.4, 64 bit My directory structure %USERPROFILE%/Desktop/myproject/manage.py %USERPROFILE%/Desktop/myproject/some_app/(...) %USERPROFILE%/Desktop/myproject/myproject/sqlite3.db %USERPROFILE%/Desktop/myproject/myproject/static (...) %USERPROFILE%/Desktop/myproj

Django 2.2.6 fails to serve some static files in Windows 10

2019-10-02 Thread red sky
My system: Windows 10 1903. Python 3.7.4, 64 bit. My directory structure: %USERPROFILE%/Desktop/myproject/manage.py %USERPROFILE%/Desktop/myproject/some_app (...) %USERPROFILE%/Desktop/myproject/myproject/db.sqlite3 %USERPROFILE%/Desktop/myproject/myproject/urls.py %USERPROFILE%/Desktop/myproject/

Re: Stuck on "ViewDoesNotExist" last step of tutorial part 4

2012-08-15 Thread Sky
.save() return HttpResponseRedirect(reverse('poll_results', args = (p.id,))) On Thursday, August 16, 2012 11:53:12 AM UTC+8, Kurtis wrote: > > I just noticed another thing here. But, it could just be related to > copying and pasting your source here. See below > > On Tue, A

Re: 回复: Stuck on "ViewDoesNotExist" last step of tutorial part 4

2012-08-15 Thread Sky
Oh, and it works when the url is http://localhost:8000/polls/1/vote/ On Thursday, August 16, 2012 11:19:09 AM UTC+8, Sky wrote: > > I'm pretty sure the source is the same as I copied it out from the editor. > I'm using sqlite3, not sure if that affects anything. I'm not s

Re: 回复: Stuck on "ViewDoesNotExist" last step of tutorial part 4

2012-08-15 Thread Sky
should pick up any changes that you make up > to the structure automatically. > > Can you share the traceback that your web browser shows when you try to > access your Django application? Just make sure to hide any > private/sensetive data: > http://localhost:8000 after executing

Re: 回复: Stuck on "ViewDoesNotExist" last step of tutorial part 4

2012-08-15 Thread Sky
How do I do that? I've tried the commands python manage.py syncdb followed by python manage.py runserver several times but they don't work. On Wednesday, August 15, 2012 9:45:21 PM UTC+8, Melvyn Sopacua wrote: > > On 15-8-2012 10:01, Pengfei Xue wrote: > > there's no function in views.py, you

Re: Stuck on "ViewDoesNotExist" last step of tutorial part 4

2012-08-14 Thread Sky
I've having a similar problem here using Django 1.4 and I can't quite figure what's wrong. The error reads: Could not import polls.views.index. View does not exist in module polls.views. urls.py from django.conf.urls import patterns, include, url from django.views.generic import DetailView, Lis

Django Web Application Cost So Many memory

2011-03-30 Thread bird sky
Hello Everybody: I encounter a problem that my Django project, it has more than 60 app modules, and some models are very large, more than 30 fields . And when I startup my project, regardless of in development server, fast cgi(flup),or mod_wsgi. i found it cost at least 60M memory per instance

Re: Django admin Error at /admin/auth/user/1/?

2008-04-05 Thread Sky
I think I solved this problem after I upgrade my python version from 2.3 to 2.5. before I used python2.3 on Dreamhost, /admin/auth/user/1/ raise a http404 exception thanks! On Apr 6, 7:31 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, Apr 5, 2008 at 1:43 AM, Sk

Django admin Error at /admin/auth/user/1/?

2008-04-04 Thread Sky
my site is hosted by Dreamhost, Dreamhost can use DATABASE_ENGINE = 'mysql_old' for djngo, my django admin panel broken at /admin/auth/ user/1/ , but /admin/auth/user/1/password/ is fine and on my local compute I used DATABASE_ENGINE = 'mysql' are works fine, why?? My django version is the newest