Not found DocType in my App folder

Good day!
I created my Apps for my ERPNext site.
Then, using ERPNext tools and forms, I created several new DocType.
Now there is a need to make changes to the files (add a script), but there are no files with the created DocType in my Apps folder.
And in general, I could not find the DocType I created in the form of files in the / frappe-bench folders
help me figure out the following questions.

  1. How to make the created DocType appear in the Apps folder I created?
  2. How do I upload my Apps to GitHub to provide access to specialists?

You have to uncheck custom button.

1 Like


Thanks for the help.
If you mean this flag, then I cannot remove it, since it is gray and inactive.

You have to open the developer mode.

Please tell me how to switch the site to developer mode and then back?

https://frappeframework.com/docs/user/en/guides/app-development/how-enable-developer-mode-in-frappe

You also need to be logged in as Administrator, I believe.

bench —site sitename set-config developer_mode 1

My account has administrator rights and when I enter the command

bench setup requirements --dev

throws the following error

Installing paperless
$ ./env/bin/python -m pip install -q -U -e ./apps/paperless
ERROR: Command errored out with exit status 1:
command: / home / creator / frappe-bench / env / bin / python -c ‘import io, os, sys, setuptools, tokenize; sys.argv [0] = ‘"’" ‘/home/creator/frappe-bench/apps/paperless/setup.py’ "’“‘; file __ = ‘"’" ‘/ home / creator / frappe-bench / apps / paperless / setup.py’ “'”‘; f = getattr (tokenize, ‘"’" ‘open’ "’"', open) ( file) if os.path.exists ( file__) else io.StringIO (’”‘" ‘from setuptools import setup; setup ()’ "’“‘); code = f.read (). replace (’”‘" ‘\ r \ n’ "’“', '”‘" ‘\ n’ "’“'); f.close (); exec (compile (code, file, '”‘" ‘exec’ "’“’ )) ‘egg_info --egg-base / tmp / pip-pip-egg-info-0e6env55
cwd: / home / creator / frappe-bench / apps / paperless /
Complete output (1 lines):
error in paperless setup command: ‘install_requires’ must be a string or list of strings containing valid project / version requirement specifiers; Parse error at "’- https’”: Expected stringEnd

WARNING: Discarding file: /// home / creator / frappe-bench / apps / paperless. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARN: dev-requirements.txt not found in frappe
WARN: dev-requirements.txt not found in erpnext
WARN: dev-requirements.txt not found in wiki
WARN: dev-requirements.txt not found in paperless

you can also enable developer mode by adding the following entry to site_config.json which is inside sites/mysite/

“developer_mode”: true

“developer_mode”: true & “developer_mode”: 1
saves without errors.

Please tell me how to make sure that developer mode is enabled, and how to make sure that the previously created DocType for your Apps is saved in the files in the folder
/ apps / myapps

You need to be logged in as Administrator to turn off “Custom”.

1 Like

the easiest way to check if developer mode work is to hover on any field in any doctype, if the mode work the browser should show you the fieldname of that field

1 Like

I have all rights to the site.
The site is installed on my physical server.
There is no Administrator account on this site.
Hovering over any field shows its name!
Disable the Custom checkbox in DocType does not work, since it is not active ???

Thanks for the help!
Hovering over any field shows its name!

Disable the Custom checkbox in DocType does not work, since it is not active ???

Yes there is, unless you’ve somehow manually overridden it. All installations come with an account called Administrator by default. Having permissions is not enough. You need to be using that specific account to create new doctypes on the file system.

1 Like

thank you very much
changed the password for the Administrator user in the console, and it turned out to uncheck the box.
DocType file - after saving it also appeared in the folder
thanks again

Tell me, how can I upload the folder with my Apps to GitHub ??

bench start : developer mode
bench restart: production

only if you have set up the production mode dependency, if you don’t it will only bench start as dev mode

I am logged in as administrator and still the custom is greyed out. I tried changing password as well, still facing issue. @sherif_nasser

Are you in developer mode?

yes, i changed the developer mode in terminal and also added development : 1 in site config