Re: Hire remote Python codeer

2023-12-30 Thread Dennis Alabi
I am a python developer with many years of experience, my only drawback is
i use MYSQL not MongoDB but i am willing to dive into MongoDB because i
have been looking for an opportunity that will make me to explore the much
talked about MongoDB
Website: http://transtech.ga/
Facebook: https://web.facebook.com/transtechno/
Email: i...@transtech.ga
Tell:+2349067180300


On Tue, Oct 24, 2023 at 5:29 PM 许三高  wrote:

> Hire remote Python codeer
>
> We are currently looking for a talented and experienced remote Python
> programmer to join our team. If you have at least three years of work
> experience, the ability to independently develop front-end and back-end
> solutions, strong familiarity with MongoDB, the ability to write automation
> scripts, and proficiency in Linux system maintenance, then we want to hear
> from you .
>
> Require:
>
> At least three years of Python programming experience.
> Proficient in developing front-end and back-end solutions independently.
> Very familiar with MongoDB database administration.
> Ability to write automation scripts to streamline processes.
> Proficient in Linux system maintenance and troubleshooting.
> Have experience in developing web development frameworks flask and django
> salary:
>
> Salary range: $1000-$1500 per month.
> Starting salary: $1,000 per month.
> The probation period is three months, and the salary can be adjusted based
> on work performance.
> Maximum monthly salary is capped at $1,500 based on development skills and
> performance ratings.
> telegram: https://t.me/easychat3
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ec504c58-3352-4ade-a59c-876038dd94fan%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B3GiJj5VDV5N7CQPyhBpRCSjarOutsc3Eek-%2B%3Do572pDgkdVQ%40mail.gmail.com.


How to store a bank account number generated into a model field

2019-06-19 Thread Dennis Alabi
I tried but i don't seem to be getting it, please help

Views.py
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.http import Http404
from django.shortcuts import render, redirect
from .forms import DepositForm, WithdrawalForm
from users.models import Profile 
import random
from . import models

def random_gen():
# return a 10 digit random number
return int(random.uniform(10, 99))


def index(request):
try:
curr_user = Profile.objects.get(user=request.user) # getting details of 
current user
except:
# if no details exist (new user), create new details
curr_user = Profile()
curr_user.account_number = random_gen() # random account number for every 
new user
curr_user.balance = 0
curr_user.user = request.user
curr_user.save()
return render(request, "users/profile.html", {"curr_user": curr_user})

*models.py*
from django.db import models
from django.contrib.auth.models import User
from PIL import Image



class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
image = models.ImageField(default='default.jpg', upload_to='profile_pics')
account_number = models.IntegerField(blank=False,null=False)
balance = models.IntegerField(blank=False,null=False)

def __str__(self):
return f'{self.user.username} Profile'

def save(self, *args, **kwargs):
super(Profile, self).save(*args, **kwargs)

img = Image.open(self.image.path)

if img.height > 300 or img.width > 300:
output_size = (150, 150)
img.thumbnail(output_size)
img.save(self.image.path)













-- 
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 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/9fc94f46-9826-4d85-ab98-ebbb50dad5d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to resolve UPPER_CASE naming issues in pylint

2019-03-31 Thread Dennis Alabi
Thanks for your reply but i change movie_resource to all caps ie
MOVIE_RESOURCE and the problem did not stop. please look at my problem
panel below. Actually i am trying to create an API
[image: api_probem.png]
Website: http://transtech.ga/
Facebook: https://web.facebook.com/transtechno/
Email: i...@transtech.ga
Tell:+2348065698415



On Sun, Mar 31, 2019 at 5:21 AM Babatunde Akinyanmi 
wrote:

> Hi,
> That's pylint telling you to change the variable name 'movie_resource' to
> all caps.
>
> On Sat, 30 Mar 2019, 07:30 Dennis Alabi,  wrote:
>
>> My program throw up this error >>Constant name "movie_resource" doesn't
>> conform to UPPER_CASE naming stylepylint(invalid-name)
>>
>>
>>
>>
>>
>> """vidly URL Configuration
>>
>> The `urlpatterns` list routes URLs to views. For more information please
>> see:
>> https://docs.djangoproject.com/en/2.1/topics/http/urls/
>> Examples:
>> Function views
>> 1. Add an import: from my_app import views
>> 2. Add a URL to urlpatterns: path('', views.home, name='home')
>> Class-based views
>> 1. Add an import: from other_app.views import Home
>> 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
>> Including another URLconf
>> 1. Import the include() function: from django.urls import include, path
>> 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
>> """
>> from django.contrib import admin
>> from django.urls import path, include
>> from api.models import MovieResource
>>
>> movie_resource = MovieResource()
>>
>>
>> urlpatterns = [
>> path('admin/', admin.site.urls),
>> path('movies/', include('movies.urls')),
>> path('api/', include('movie_resource.urls'))
>> ]
>>
>> --
>> 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 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/a91173a8-058c-4b4a-a7db-183be3567e76%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/a91173a8-058c-4b4a-a7db-183be3567e76%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> 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+unsubscr...@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/CA%2BWjgXO_VVMvTq4r_4-%2BhbzNDVjs1HH78mN63HTcBNgUdVcd1A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BWjgXO_VVMvTq4r_4-%2BhbzNDVjs1HH78mN63HTcBNgUdVcd1A%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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+unsubscr...@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/CA%2B3GiJjOwxukADYL3RrEiFE%2B7aaVV%3DpJ3Uf5axZKuF2BgAd0xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to resolve UPPER_CASE naming issues in pylint

2019-03-30 Thread Dennis Alabi
My program throw up this error >>Constant name "movie_resource" doesn't 
conform to UPPER_CASE naming stylepylint(invalid-name)





"""vidly URL Configuration

The `urlpatterns` list routes URLs to views. For more information please 
see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from api.models import MovieResource

movie_resource = MovieResource()


urlpatterns = [
path('admin/', admin.site.urls),
path('movies/', include('movies.urls')),
path('api/', include('movie_resource.urls'))
]

-- 
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 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/a91173a8-058c-4b4a-a7db-183be3567e76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


SyntaxError: keyword argument repeated

2018-11-07 Thread Dennis Alabi

django.setup()
  File 
"C:\Users\User\Anaconda3\envs\myprogv\lib\site-packages\django\__init__.py", 
line 24, in setup
apps.populate(settings.INSTALLED_APPS)
  File 
"C:\Users\User\Anaconda3\envs\myprogv\lib\site-packages\django\apps\registry.py",
 
line 112, in populate
app_config.import_models()
  File 
"C:\Users\User\Anaconda3\envs\myprogv\lib\site-packages\django\apps\config.py", 
line 198, in import_models
self.models_module = import_module(models_module_name)
  File "C:\Users\User\Anaconda3\envs\myprogv\lib\importlib\__init__.py", 
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 955, in _find_and_load_unlocked
  File "", line 665, in _load_unlocked
  File "", line 674, in exec_module
  File "", line 781, in get_code
  File "", line 741, in source_to_code
  File "", line 219, in 
_call_with_frames_removed
  File 
"C:\Users\User\Documents\cctv_project\openCV\cam_project\customers\models.py", 
line 85
on_delete=models.CASCADE,related_name="'zone's", null=True, 
related_name='children'
   ^
SyntaxError: keyword argument repeated


I get the above error and the potion of my code causing it in models.py is 
given below, please help out

# Relationship Fields
user = ForeignKey(
'customers.User',
on_delete=models.CASCADE, related_name="users"
)
parent = ForeignKey(
'customers.Zone',
on_delete=models.CASCADE, related_name="'zone's", null=True, 
related_name='children'
)

-- 
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 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/277c4a05-6744-4d77-b571-db4e5a42386d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Field Name in Models

2018-10-29 Thread Dennis Alabi
I want to start developing a surveillance security system. Please what 
field name should i use for live feed from camera in my models.py. Please 
your response will be appreciated.

-- 
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 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/db847948-fe21-41d8-976c-a5fbf8d4478c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


NOT ABLE TO INSTALL REQUIREMENT FILES

2018-10-27 Thread Dennis Alabi
I'm trying to clone an app into virtual environment but i keep getting the 
error below. Please what should i do about this "  error: command 'cl.exe' 
failed: No such file or directory"

Part of the code is shown below.





rs c:\users\user\envs\ososo\include\site\python3.6\rjsmin:
running install
running build
running build_py
creating build
creating build\lib.win32-3.6
copying .\rjsmin.py -> build\lib.win32-3.6
running build_ext
building '_rjsmin' extension
creating build\temp.win32-3.6
creating build\temp.win32-3.6\Release
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DEXT_MODULE=_rjsmin 
-UEXT_PACKAGE -I_setup/include 
-Ic:\users\user\appdata\local\programs\python\python36-32\include 
-Ic:\users\user\appdata\local\programs\python\python36-32\include 
"-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Include" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" 
"-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" /Tcrjsmin.c 
/Fobuild\temp.win32-3.6\Release\rjsmin.obj
error: command 'cl.exe' failed: No such file or directory

-- 
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 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/f6d67558-a2f5-4b11-b658-2b9f32b2faa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Template Issues

2018-10-21 Thread Dennis Alabi
i am Building Django 2.0 Web Applications, template is not rendering with 
boottrap3.

-- 
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 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/47edff6d-c85e-4a54-af3e-67736f2d72fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: App Sync

2018-10-01 Thread Dennis Alabi
Thanks for your help

On Monday, October 1, 2018 at 3:24:11 PM UTC+1, Jason wrote:
>
> Then I really hope you have a thorough test suite.  otherwise, the 
> possibility of having a rough time with the 2 - 3 migration is pretty high.
>

-- 
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 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/5acdfd09-dc0c-4abb-819c-88bdc80a625d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: App Sync

2018-10-01 Thread Dennis Alabi
Python 2.7 was use to develop the APP

On Monday, October 1, 2018 at 2:35:00 PM UTC+1, Dennis Alabi wrote:
>
> Please can i install an App developed in django 1.7 into django 2.1 
> environment
>
>

-- 
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 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/8c45a53e-468e-4474-a2f1-e6923cca08d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


App Sync

2018-10-01 Thread Dennis Alabi
Please can i install an App developed in django 1.7 into django 2.1 
environment

-- 
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 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/3d867f57-a6e4-4d59-adf0-d133305cfdb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.